TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
QueryObjectModelFactory Class Reference
Inheritance diagram for QueryObjectModelFactory:
SingletonInterface

Public Member Functions

 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 selector ($nodeTypeName, $selectorName= '')
 
 statement ($statement, array $boundVariables=[])
 
 join (SourceInterface $left, SourceInterface $right, $joinType, JoinConditionInterface $joinCondition)
 
 equiJoinCondition ($selector1Name, $property1Name, $selector2Name, $property2Name)
 
 _and (ConstraintInterface $constraint1, ConstraintInterface $constraint2)
 
 _or (ConstraintInterface $constraint1, ConstraintInterface $constraint2)
 
 not (ConstraintInterface $constraint)
 
 comparison (PropertyValueInterface $operand1, $operator, $operand2)
 
 propertyValue ($propertyName, $selectorName= '')
 
 lowerCase (PropertyValueInterface $operand)
 
 upperCase (PropertyValueInterface $operand)
 
 ascending (DynamicOperandInterface $operand)
 
 descending (DynamicOperandInterface $operand)
 
 bindVariable ($bindVariableName)
 

Protected Attributes

 $objectManager
 

Detailed Description

The Query Object Model Factory

Definition at line 20 of file QueryObjectModelFactory.php.

Member Function Documentation

_and ( ConstraintInterface  $constraint1,
ConstraintInterface  $constraint2 
)

Performs a logical conjunction of two other constraints.

Parameters
ConstraintInterface$constraint1the first constraint; non-null
ConstraintInterface$constraint2the second constraint; non-null
Returns
the And constraint; non-null
Exceptions
TYPO3 if the operation otherwise fails

Definition at line 100 of file QueryObjectModelFactory.php.

_or ( ConstraintInterface  $constraint1,
ConstraintInterface  $constraint2 
)

Performs a logical disjunction of two other constraints.

Parameters
ConstraintInterface$constraint1the first constraint; non-null
ConstraintInterface$constraint2the second constraint; non-null
Returns
the Or constraint; non-null
Exceptions
TYPO3 if the operation otherwise fails

Definition at line 113 of file QueryObjectModelFactory.php.

ascending ( DynamicOperandInterface  $operand)

Orders by the value of the specified operand, in ascending order.

The query is invalid if $operand does not evaluate to a scalar value.

Parameters
DynamicOperandInterface$operandthe operand by which to order; non-null
Returns
OrderingInterface the ordering
Exceptions
TYPO3 if the operation otherwise fails

Definition at line 190 of file QueryObjectModelFactory.php.

References QueryInterface\ORDER_ASCENDING.

bindVariable (   $bindVariableName)

Evaluates to the value of a bind variable.

Parameters
string$bindVariableNamethe bind variable name; non-null
Returns
BindVariableValueInterface the operand; non-null
Exceptions
TYPO3 if the operation otherwise fails

Definition at line 216 of file QueryObjectModelFactory.php.

comparison ( PropertyValueInterface  $operand1,
  $operator,
  $operand2 
)

Filters node-tuples based on the outcome of a binary operation.

Parameters
PropertyValueInterface$operand1the first operand; non-null
string$operatorthe operator; one of QueryObjectModelConstants.JCR_OPERATOR_*
\TYPO3\CMS\Extbase\Persistence\Generic\Qom\StaticOperandInterface$operand2the second operand; non-null
Returns
the constraint; non-null
Exceptions
TYPO3 if the operation otherwise fails

Definition at line 139 of file QueryObjectModelFactory.php.

descending ( DynamicOperandInterface  $operand)

Orders by the value of the specified operand, in descending order.

The query is invalid if $operand does not evaluate to a scalar value.

Parameters
DynamicOperandInterface$operandthe operand by which to order; non-null
Returns
OrderingInterface the ordering
Exceptions
TYPO3 if the operation otherwise fails

Definition at line 204 of file QueryObjectModelFactory.php.

References QueryInterface\ORDER_DESCENDING.

equiJoinCondition (   $selector1Name,
  $property1Name,
  $selector2Name,
  $property2Name 
)

Tests whether the value of a property in a first selector is equal to the value of a property in a second selector.

Parameters
string$selector1Namethe name of the first selector; non-null
string$property1Namethe property name in the first selector; non-null
string$selector2Namethe name of the second selector; non-null
string$property2Namethe property name in the second selector; non-null
Returns
the constraint; non-null
Exceptions
TYPO3 if the operation otherwise fails

Definition at line 87 of file QueryObjectModelFactory.php.

injectObjectManager ( \TYPO3\CMS\Extbase\Object\ObjectManagerInterface  $objectManager)
Parameters
\TYPO3\CMS\Extbase\Object\ObjectManagerInterface$objectManager

Definition at line 30 of file QueryObjectModelFactory.php.

References QueryObjectModelFactory\$objectManager.

join ( SourceInterface  $left,
SourceInterface  $right,
  $joinType,
JoinConditionInterface  $joinCondition 
)

Performs a join between two node-tuple sources.

Parameters
SourceInterface$leftthe left node-tuple source; non-null
SourceInterface$rightthe right node-tuple source; non-null
string$joinTypeone of QueryObjectModelConstants.JCR_JOIN_TYPE_*
JoinConditionInterface$joinCondition
Returns
the join; non-null

Definition at line 72 of file QueryObjectModelFactory.php.

lowerCase ( PropertyValueInterface  $operand)

Evaluates to the lower-case string value (or values, if multi-valued) of an operand.

Parameters
PropertyValueInterface$operandthe operand whose value is converted to a lower-case string; non-null
Returns
the operand; non-null
Exceptions
TYPO3 if the operation otherwise fails

Definition at line 164 of file QueryObjectModelFactory.php.

not ( ConstraintInterface  $constraint)

Performs a logical negation of another constraint.

Parameters
ConstraintInterface$constraintthe constraint to be negated; non-null
Returns
the Not constraint; non-null
Exceptions
TYPO3 if the operation otherwise fails

Definition at line 125 of file QueryObjectModelFactory.php.

propertyValue (   $propertyName,
  $selectorName = '' 
)

Evaluates to the value (or values, if multi-valued) of a property in the specified or default selector.

Parameters
string$propertyNamethe property name; non-null
string$selectorNamethe selector name; non-null
Returns
the operand; non-null
Exceptions
TYPO3 if the operation otherwise fails

Definition at line 152 of file QueryObjectModelFactory.php.

selector (   $nodeTypeName,
  $selectorName = '' 
)

Selects a subset of the nodes in the repository based on node type.

Parameters
string$nodeTypeNamethe name of the required node type; non-null
string$selectorNamethe selector name; optional
Returns
the selector
Exceptions
TYPO3 if the operation otherwise fails

Definition at line 43 of file QueryObjectModelFactory.php.

statement (   $statement,
array  $boundVariables = [] 
)

Sets a statement as constraint. This is not part of the JCR 2.0 Specification!

Parameters
string | \TYPO3\CMS\Core\Database\PreparedStatement$statementThe statement
array$boundVariablesAn array of variables to bind to the statement
Returns

Definition at line 58 of file QueryObjectModelFactory.php.

upperCase ( PropertyValueInterface  $operand)

Evaluates to the upper-case string value (or values, if multi-valued) of an operand.

Parameters
PropertyValueInterface$operandthe operand whose value is converted to an upper-case string; non-null
Returns
the operand; non-null
Exceptions
TYPO3 if the operation otherwise fails

Definition at line 176 of file QueryObjectModelFactory.php.

Member Data Documentation

$objectManager
protected