class QueryObjectModelFactory (View source)

deprecated since Flow 6.0

The Query Object Model Factory

Properties

protected ObjectManagerInterface $objectManager

Methods

void
injectObjectManager(ObjectManagerInterface $objectManager)

Injects the object factory

_and(Constraint $constraint1, Constraint $constraint2)

Performs a logical conjunction of two other constraints.

_or(Constraint $constraint1, Constraint $constraint2)

Performs a logical disjunction of two other constraints.

not(Constraint $constraint)

Performs a logical negation of another constraint.

comparison(DynamicOperand $operand1, string $operator, mixed $operand2 = null)

Filters tuples based on the outcome of a binary operation.

propertyValue(string $propertyName, string $selectorName = '')

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

lowerCase(DynamicOperand $operand)

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

upperCase(DynamicOperand $operand)

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

Details

void injectObjectManager(ObjectManagerInterface $objectManager)

Injects the object factory

Parameters

ObjectManagerInterface $objectManager

Return Value

void

LogicalAnd _and(Constraint $constraint1, Constraint $constraint2)

Performs a logical conjunction of two other constraints.

Parameters

Constraint $constraint1

the first constraint; non-null

Constraint $constraint2

the second constraint; non-null

Return Value

LogicalAnd

the And constraint; non-null

LogicalOr _or(Constraint $constraint1, Constraint $constraint2)

Performs a logical disjunction of two other constraints.

Parameters

Constraint $constraint1

the first constraint; non-null

Constraint $constraint2

the second constraint; non-null

Return Value

LogicalOr

the Or constraint; non-null

LogicalNot not(Constraint $constraint)

Performs a logical negation of another constraint.

Parameters

Constraint $constraint

the constraint to be negated; non-null

Return Value

LogicalNot

the Not constraint; non-null

Comparison comparison(DynamicOperand $operand1, string $operator, mixed $operand2 = null)

Filters tuples based on the outcome of a binary operation.

Parameters

DynamicOperand $operand1

the first operand; non-null

string $operator

the operator; one of QueryObjectModelConstants.JCROPERATOR*

mixed $operand2

the second operand; non-null

Return Value

Comparison

the constraint; non-null

PropertyValue propertyValue(string $propertyName, string $selectorName = '')

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

Parameters

string $propertyName

the property name; non-null

string $selectorName

the selector name; non-null

Return Value

PropertyValue

the operand; non-null

LowerCase lowerCase(DynamicOperand $operand)

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

Parameters

DynamicOperand $operand

the operand whose value is converted to a lower-case string; non-null

Return Value

LowerCase

the operand; non-null

UpperCase upperCase(DynamicOperand $operand)

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

Parameters

DynamicOperand $operand

the operand whose value is converted to a upper-case string; non-null

Return Value

UpperCase

the operand; non-null