Skip to content

Commit

Permalink
PHPCR:
Browse files Browse the repository at this point in the history
* ported some more parts of the QOM
  • Loading branch information
kdambekalns committed Nov 5, 2008
1 parent 1808e82 commit b7bb53a
Show file tree
Hide file tree
Showing 8 changed files with 350 additions and 8 deletions.
53 changes: 53 additions & 0 deletions Classes/Query/QOM/F3_PHPCR_Query_QOM_AndInterface.php
@@ -0,0 +1,53 @@
<?php
declare(ENCODING = 'utf-8');
namespace F3::PHPCR::Query::QOM;

/* *
* This script is part of the TYPO3 project - inspiring people to share! *
* *
* TYPO3 is free software; you can redistribute it and/or modify it under *
* the terms of the GNU General Public License version 2 as published by *
* the Free Software Foundation. *
* *
* This script is distributed in the hope that it will be useful, but *
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- *
* TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
* Public License for more details. *
* */

/**
* @package PHPCR
* @subpackage Query
* @version $Id$
*/

/**
* Performs a logical conjunction of two other constraints.
*
* To satisfy the And constraint, a node-tuple must satisfy both constraint1 and
* constraint2.
*
* @package PHPCR
* @subpackage Query
* @version $Id$
* @license http://opensource.org/licenses/gpl-license.php GNU Public License, version 2
*/
interface AndInterface extends F3::PHPCR::Query::QOM::ConstraintInterface {

/**
* Gets the first constraint.
*
* @return F3::PHPCR::Query::QOM::ConstraintInterface the constraint; non-null
*/
public function getConstraint1();

/**
* Gets the second constraint.
*
* @return F3::PHPCR::Query::QOM::ConstraintInterface the constraint; non-null
*/
public function getConstraint2();

}

?>
48 changes: 48 additions & 0 deletions Classes/Query/QOM/F3_PHPCR_Query_QOM_LengthInterface.php
@@ -0,0 +1,48 @@
<?php
declare(ENCODING = 'utf-8');
namespace F3::PHPCR::Query::QOM;

/* *
* This script is part of the TYPO3 project - inspiring people to share! *
* *
* TYPO3 is free software; you can redistribute it and/or modify it under *
* the terms of the GNU General Public License version 2 as published by *
* the Free Software Foundation. *
* *
* This script is distributed in the hope that it will be useful, but *
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- *
* TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
* Public License for more details. *
* */

/**
* @package PHPCR
* @subpackage Query
* @version $Id$
*/

/**
* Evaluates to the length (or lengths, if multi-valued) of a property.
*
* The length should be computed as though the getLength method (or getLengths,
* if multi-valued) of F3::PHPCR::PropertyInterface were called.
*
* If propertyValue evaluates to null, the Length operand also evaluates to null.
*
* @package PHPCR
* @subpackage Query
* @version $Id$
* @license http://opensource.org/licenses/gpl-license.php GNU Public License, version 2
*/
interface LengthInterface extends F3::PHPCR::Query::QOM::DynamicOperandInterface {

/**
* Gets the property value for which to compute the length.
*
* @return F3::PHPCR::Query::QOM::PropertyValueInterface the property value; non-null
*/
public function getPropertyValue();

}

?>
43 changes: 43 additions & 0 deletions Classes/Query/QOM/F3_PHPCR_Query_QOM_LiteralInterface.php
@@ -0,0 +1,43 @@
<?php
declare(ENCODING = 'utf-8');
namespace F3::PHPCR::Query::QOM;

/* *
* This script is part of the TYPO3 project - inspiring people to share! *
* *
* TYPO3 is free software; you can redistribute it and/or modify it under *
* the terms of the GNU General Public License version 2 as published by *
* the Free Software Foundation. *
* *
* This script is distributed in the hope that it will be useful, but *
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- *
* TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
* Public License for more details. *
* */

/**
* @package PHPCR
* @subpackage Query
* @version $Id$
*/

/**
* Evaluates to a literal value.
*
* @package PHPCR
* @subpackage Query
* @version $Id$
* @license http://opensource.org/licenses/gpl-license.php GNU Public License, version 2
*/
interface LiteralInterface extends F3::PHPCR::Query::QOM::StaticOperandInterface {

/**
* Gets the value of the literal.
*
* @return string the literal value; non-null
*/
public function getLiteralValue();

}

?>
49 changes: 49 additions & 0 deletions Classes/Query/QOM/F3_PHPCR_Query_QOM_LowerCaseInterface.php
@@ -0,0 +1,49 @@
<?php
declare(ENCODING = 'utf-8');
namespace F3::PHPCR::Query::QOM;

/* *
* This script is part of the TYPO3 project - inspiring people to share! *
* *
* TYPO3 is free software; you can redistribute it and/or modify it under *
* the terms of the GNU General Public License version 2 as published by *
* the Free Software Foundation. *
* *
* This script is distributed in the hope that it will be useful, but *
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- *
* TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
* Public License for more details. *
* */

/**
* @package PHPCR
* @subpackage Query
* @version $Id$
*/

/**
* Evaluates to the lower-case string value (or values, if multi-valued) of
* operand.
*
* If operand does not evaluate to a string value, its value is first converted
* to a string.
*
* If operand evaluates to null, the LowerCase operand also evaluates to null.
*
* @package PHPCR
* @subpackage Query
* @version $Id$
* @license http://opensource.org/licenses/gpl-license.php GNU Public License, version 2
*/
interface LowerCaseInterface extends F3::PHPCR::Query::QOM::ConstraintInterface {

/**
* Gets the operand whose value is converted to a lower-case string.
*
* @return F3::PHPCR::Query::QOM::DynamicOperandInterface the operand; non-null
*/
public function getOperand();

}

?>
45 changes: 45 additions & 0 deletions Classes/Query/QOM/F3_PHPCR_Query_QOM_NotInterface.php
@@ -0,0 +1,45 @@
<?php
declare(ENCODING = 'utf-8');
namespace F3::PHPCR::Query::QOM;

/* *
* This script is part of the TYPO3 project - inspiring people to share! *
* *
* TYPO3 is free software; you can redistribute it and/or modify it under *
* the terms of the GNU General Public License version 2 as published by *
* the Free Software Foundation. *
* *
* This script is distributed in the hope that it will be useful, but *
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- *
* TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
* Public License for more details. *
* */

/**
* @package PHPCR
* @subpackage Query
* @version $Id$
*/

/**
* Performs a logical negation of another constraint.
*
* To satisfy the Not constraint, the node-tuple must not satisfy constraint.
*
* @package PHPCR
* @subpackage Query
* @version $Id$
* @license http://opensource.org/licenses/gpl-license.php GNU Public License, version 2
*/
interface NotInterface extends F3::PHPCR::Query::QOM::ConstraintInterface {

/**
* Gets the constraint negated by this Not constraint.
*
* @return F3::PHPCR::Query::QOM::ConstraintInterface the constraint; non-null
*/
public function getConstraint();

}

?>
55 changes: 55 additions & 0 deletions Classes/Query/QOM/F3_PHPCR_Query_QOM_OrInterface.php
@@ -0,0 +1,55 @@
<?php
declare(ENCODING = 'utf-8');
namespace F3::PHPCR::Query::QOM;

/* *
* This script is part of the TYPO3 project - inspiring people to share! *
* *
* TYPO3 is free software; you can redistribute it and/or modify it under *
* the terms of the GNU General Public License version 2 as published by *
* the Free Software Foundation. *
* *
* This script is distributed in the hope that it will be useful, but *
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- *
* TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
* Public License for more details. *
* */

/**
* @package PHPCR
* @subpackage Query
* @version $Id$
*/

/**
* Performs a logical disjunction of two other constraints.
*
* To satisfy the Or constraint, the node-tuple must either:
* satisfy constraint1 but not constraint2, or
* satisfy constraint2 but not constraint1, or
* satisfy both constraint1 and constraint2.
*
* @package PHPCR
* @subpackage Query
* @version $Id$
* @license http://opensource.org/licenses/gpl-license.php GNU Public License, version 2
*/
interface OrInterface extends F3::PHPCR::Query::QOM::ConstraintInterface {

/**
* Gets the first constraint.
*
* @return F3::PHPCR::Query::QOM::ConstraintInterface the constraint; non-null
*/
public function getConstraint1();

/**
* Gets the second constraint.
*
* @return F3::PHPCR::Query::QOM::ConstraintInterface the constraint; non-null
*/
public function getConstraint2();

}

?>
49 changes: 49 additions & 0 deletions Classes/Query/QOM/F3_PHPCR_Query_QOM_UpperCaseInterface.php
@@ -0,0 +1,49 @@
<?php
declare(ENCODING = 'utf-8');
namespace F3::PHPCR::Query::QOM;

/* *
* This script is part of the TYPO3 project - inspiring people to share! *
* *
* TYPO3 is free software; you can redistribute it and/or modify it under *
* the terms of the GNU General Public License version 2 as published by *
* the Free Software Foundation. *
* *
* This script is distributed in the hope that it will be useful, but *
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- *
* TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
* Public License for more details. *
* */

/**
* @package PHPCR
* @subpackage Query
* @version $Id$
*/

/**
* Evaluates to the upper-case string value (or values, if multi-valued) of
* operand.
*
* If operand does not evaluate to a string value, its value is first converted
* to a string.
*
* If operand evaluates to null, the UpperCase operand also evaluates to null.
*
* @package PHPCR
* @subpackage Query
* @version $Id$
* @license http://opensource.org/licenses/gpl-license.php GNU Public License, version 2
*/
interface UpperCaseInterface extends F3::PHPCR::Query::QOM::ConstraintInterface {

/**
* Gets the operand whose value is converted to a upper-case string.
*
* @return F3::PHPCR::Query::QOM::DynamicOperandInterface the operand; non-null
*/
public function getOperand();

}

?>

0 comments on commit b7bb53a

Please sign in to comment.