PHP 클래스 Neos\Flow\Persistence\Generic\Query

상속: implements Neos\Flow\Persistence\QueryInterface
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$classSchema Neos\Flow\Reflection\ClassSchema
$constraint Qom\Constraint
$distinct boolean
$limit integer
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$offset integer
$orderings array The property names to order the result by. Expected like this: array( 'foo' => \Neos\Flow\Persistence\QueryInterface::ORDER_ASCENDING, 'bar' => \Neos\Flow\Persistence\QueryInterface::ORDER_DESCENDING )
$qomFactory Neos\Flow\Persistence\Generic\Qom\QueryObjectModelFactory
$type string

공개 메소드들

메소드 설명
__construct ( string $type, ReflectionService $reflectionService ) Constructs a query object working on the given type
contains ( string $propertyName, mixed $operand ) : Comparison Returns a "contains" criterion used for matching objects against a query.
count ( ) : integer Returns the query result count
equals ( string $propertyName, mixed $operand, boolean $caseSensitive = true ) : object Returns an equals criterion used for matching objects against a query.
execute ( boolean $cacheResult = false ) : Neos\Flow\Persistence\QueryResultInterface Executes the query and returns the result
getConstraint ( ) : Qom\Constraint Gets the constraint for this query.
getLimit ( ) : integer Returns the maximum size of the result set to limit.
getOffset ( ) : integer Returns the start offset of the result set.
getOrderings ( ) : array Returns the property names to order the result by, like this: array( 'foo' => \Neos\Flow\Persistence\QueryInterface::ORDER_ASCENDING, 'bar' => \Neos\Flow\Persistence\QueryInterface::ORDER_DESCENDING )
getType ( ) : string Returns the type this query cares for.
greaterThan ( string $propertyName, mixed $operand ) : Comparison Returns a greater than criterion used for matching objects against a query
greaterThanOrEqual ( string $propertyName, mixed $operand ) : Comparison Returns a greater than or equal criterion used for matching objects against a query
in ( string $propertyName, mixed $operand ) : Comparison Returns an "in" criterion used for matching objects against a query. It matches if the property's value is contained in the multivalued operand.
injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $qomFactory ) : void Injects the Flow object factory
injectQomFactory ( QueryObjectModelFactory $qomFactory ) : void Injects the Flow QOM factory
isDistinct ( ) : boolean Returns the DISTINCT flag for this query.
isEmpty ( string $propertyName ) : boolean Returns an "isEmpty" criterion used for matching objects against a query.
lessThan ( string $propertyName, mixed $operand ) : Comparison Returns a less than criterion used for matching objects against a query
lessThanOrEqual ( string $propertyName, mixed $operand ) : Comparison Returns a less or equal than criterion used for matching objects against a query
like ( string $propertyName, string $operand, boolean $caseSensitive = true ) : object Returns a like criterion used for matching objects against a query.
logicalAnd ( mixed $constraint1 ) : LogicalAnd Performs a logical conjunction of the two given constraints. The method takes one or more contraints and concatenates them with a boolean AND.
logicalNot ( object $constraint ) : LogicalNot Performs a logical negation of the given constraint
logicalOr ( object $constraint1 ) : LogicalOr Performs a logical disjunction of the two given constraints. The method takes one or more constraints and concatenates them with a boolean OR.
matching ( Qom\Constraint $constraint ) : Neos\Flow\Persistence\QueryInterface The constraint used to limit the result set. Returns $this to allow for chaining (fluid interface)
setDistinct ( boolean $distinct = true ) : Neos\Flow\Persistence\QueryInterface Sets the DISTINCT flag for this query.
setLimit ( integer $limit ) : Neos\Flow\Persistence\QueryInterface Sets the maximum size of the result set to limit. Returns $this to allow for chaining (fluid interface)
setOffset ( integer $offset ) : Neos\Flow\Persistence\QueryInterface Sets the start offset of the result set to $offset. Returns $this to allow for chaining (fluid interface)
setOrderings ( array $orderings ) : Neos\Flow\Persistence\QueryInterface Sets the property names to order the result by. Expected like this: array( 'foo' => \Neos\Flow\Persistence\QueryInterface::ORDER_ASCENDING, 'bar' => \Neos\Flow\Persistence\QueryInterface::ORDER_DESCENDING )

메소드 상세

__construct() 공개 메소드

Constructs a query object working on the given type
public __construct ( string $type, ReflectionService $reflectionService )
$type string
$reflectionService Neos\Flow\Reflection\ReflectionService

contains() 공개 메소드

It matches if the multivalued property contains the given operand. If NULL is given as $operand, there will never be a match!
public contains ( string $propertyName, mixed $operand ) : Comparison
$propertyName string The name of the multivalued property to compare against
$operand mixed The value to compare with
리턴 Neos\Flow\Persistence\Generic\Qom\Comparison

count() 공개 메소드

Returns the query result count
public count ( ) : integer
리턴 integer The query result count

equals() 공개 메소드

It matches if the $operand equals the value of the property named $propertyName. If $operand is NULL a strict check for NULL is done. For strings the comparison can be done with or without case-sensitivity.
public equals ( string $propertyName, mixed $operand, boolean $caseSensitive = true ) : object
$propertyName string The name of the property to compare against
$operand mixed The value to compare with
$caseSensitive boolean Whether the equality test should be done case-sensitive for strings
리턴 object

execute() 공개 메소드

Executes the query and returns the result
public execute ( boolean $cacheResult = false ) : Neos\Flow\Persistence\QueryResultInterface
$cacheResult boolean If the result cache should be used
리턴 Neos\Flow\Persistence\QueryResultInterface The query result

getConstraint() 공개 메소드

Gets the constraint for this query.
public getConstraint ( ) : Qom\Constraint
리턴 Qom\Constraint the constraint, or null if none

getLimit() 공개 메소드

Returns the maximum size of the result set to limit.
public getLimit ( ) : integer
리턴 integer

getOffset() 공개 메소드

Returns the start offset of the result set.
public getOffset ( ) : integer
리턴 integer

getOrderings() 공개 메소드

Returns the property names to order the result by, like this: array( 'foo' => \Neos\Flow\Persistence\QueryInterface::ORDER_ASCENDING, 'bar' => \Neos\Flow\Persistence\QueryInterface::ORDER_DESCENDING )
public getOrderings ( ) : array
리턴 array

getType() 공개 메소드

Returns the type this query cares for.
public getType ( ) : string
리턴 string

greaterThan() 공개 메소드

Returns a greater than criterion used for matching objects against a query
public greaterThan ( string $propertyName, mixed $operand ) : Comparison
$propertyName string The name of the property to compare against
$operand mixed The value to compare with
리턴 Neos\Flow\Persistence\Generic\Qom\Comparison

greaterThanOrEqual() 공개 메소드

Returns a greater than or equal criterion used for matching objects against a query
public greaterThanOrEqual ( string $propertyName, mixed $operand ) : Comparison
$propertyName string The name of the property to compare against
$operand mixed The value to compare with
리턴 Neos\Flow\Persistence\Generic\Qom\Comparison

in() 공개 메소드

Returns an "in" criterion used for matching objects against a query. It matches if the property's value is contained in the multivalued operand.
public in ( string $propertyName, mixed $operand ) : Comparison
$propertyName string The name of the property to compare against
$operand mixed The value to compare with, multivalued
리턴 Neos\Flow\Persistence\Generic\Qom\Comparison

injectObjectManager() 공개 메소드

Injects the Flow object factory
public injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $qomFactory ) : void
$qomFactory Neos\Flow\ObjectManagement\ObjectManagerInterface
리턴 void

injectQomFactory() 공개 메소드

Injects the Flow QOM factory
public injectQomFactory ( QueryObjectModelFactory $qomFactory ) : void
$qomFactory Neos\Flow\Persistence\Generic\Qom\QueryObjectModelFactory
리턴 void

isDistinct() 공개 메소드

Returns the DISTINCT flag for this query.
public isDistinct ( ) : boolean
리턴 boolean

isEmpty() 공개 메소드

It matches if the multivalued property contains no values or is NULL.
public isEmpty ( string $propertyName ) : boolean
$propertyName string The name of the multivalued property to check
리턴 boolean

lessThan() 공개 메소드

Returns a less than criterion used for matching objects against a query
public lessThan ( string $propertyName, mixed $operand ) : Comparison
$propertyName string The name of the property to compare against
$operand mixed The value to compare with
리턴 Neos\Flow\Persistence\Generic\Qom\Comparison

lessThanOrEqual() 공개 메소드

Returns a less or equal than criterion used for matching objects against a query
public lessThanOrEqual ( string $propertyName, mixed $operand ) : Comparison
$propertyName string The name of the property to compare against
$operand mixed The value to compare with
리턴 Neos\Flow\Persistence\Generic\Qom\Comparison

like() 공개 메소드

Matches if the property named $propertyName is like the $operand, using standard SQL wildcards.
public like ( string $propertyName, string $operand, boolean $caseSensitive = true ) : object
$propertyName string The name of the property to compare against
$operand string The value to compare with
$caseSensitive boolean Whether the matching should be done case-sensitive
리턴 object

logicalAnd() 공개 메소드

It also accepts a single array of constraints to be concatenated.
public logicalAnd ( mixed $constraint1 ) : LogicalAnd
$constraint1 mixed The first of multiple constraints or an array of constraints.
리턴 Neos\Flow\Persistence\Generic\Qom\LogicalAnd

logicalNot() 공개 메소드

Performs a logical negation of the given constraint
public logicalNot ( object $constraint ) : LogicalNot
$constraint object Constraint to negate
리턴 Neos\Flow\Persistence\Generic\Qom\LogicalNot

logicalOr() 공개 메소드

It also accepts a single array of constraints to be concatenated.
public logicalOr ( object $constraint1 ) : LogicalOr
$constraint1 object The first of multiple constraints or an array of constraints.
리턴 Neos\Flow\Persistence\Generic\Qom\LogicalOr

matching() 공개 메소드

The constraint used to limit the result set. Returns $this to allow for chaining (fluid interface)
public matching ( Qom\Constraint $constraint ) : Neos\Flow\Persistence\QueryInterface
$constraint Qom\Constraint
리턴 Neos\Flow\Persistence\QueryInterface

setDistinct() 공개 메소드

Sets the DISTINCT flag for this query.
public setDistinct ( boolean $distinct = true ) : Neos\Flow\Persistence\QueryInterface
$distinct boolean
리턴 Neos\Flow\Persistence\QueryInterface

setLimit() 공개 메소드

Sets the maximum size of the result set to limit. Returns $this to allow for chaining (fluid interface)
public setLimit ( integer $limit ) : Neos\Flow\Persistence\QueryInterface
$limit integer
리턴 Neos\Flow\Persistence\QueryInterface

setOffset() 공개 메소드

Sets the start offset of the result set to $offset. Returns $this to allow for chaining (fluid interface)
public setOffset ( integer $offset ) : Neos\Flow\Persistence\QueryInterface
$offset integer
리턴 Neos\Flow\Persistence\QueryInterface

setOrderings() 공개 메소드

Sets the property names to order the result by. Expected like this: array( 'foo' => \Neos\Flow\Persistence\QueryInterface::ORDER_ASCENDING, 'bar' => \Neos\Flow\Persistence\QueryInterface::ORDER_DESCENDING )
public setOrderings ( array $orderings ) : Neos\Flow\Persistence\QueryInterface
$orderings array The property names to order by
리턴 Neos\Flow\Persistence\QueryInterface

프로퍼티 상세

$classSchema 보호되어 있는 프로퍼티

protected ClassSchema,Neos\Flow\Reflection $classSchema
리턴 Neos\Flow\Reflection\ClassSchema

$constraint 보호되어 있는 프로퍼티

protected Qom\Constraint $constraint
리턴 Qom\Constraint

$distinct 보호되어 있는 프로퍼티

protected bool $distinct
리턴 boolean

$limit 보호되어 있는 프로퍼티

protected int $limit
리턴 integer

$objectManager 보호되어 있는 프로퍼티

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
리턴 Neos\Flow\ObjectManagement\ObjectManagerInterface

$offset 보호되어 있는 프로퍼티

protected int $offset
리턴 integer

$orderings 보호되어 있는 프로퍼티

The property names to order the result by. Expected like this: array( 'foo' => \Neos\Flow\Persistence\QueryInterface::ORDER_ASCENDING, 'bar' => \Neos\Flow\Persistence\QueryInterface::ORDER_DESCENDING )
protected array $orderings
리턴 array

$qomFactory 보호되어 있는 프로퍼티

protected QueryObjectModelFactory,Neos\Flow\Persistence\Generic\Qom $qomFactory
리턴 Neos\Flow\Persistence\Generic\Qom\QueryObjectModelFactory

$type 보호되어 있는 프로퍼티

protected string $type
리턴 string