eZPublishCommunityProject  2012.12
eZ\Publish\API\Repository\Values\Content\Query\Criterion Class Reference
+ Inheritance diagram for eZ\Publish\API\Repository\Values\Content\Query\Criterion:

Public Member Functions

 __construct ($target, $operator, $value)
 Performs operator validation based on the Criterion specifications returned by {. More...
 

Static Public Member Functions

static createFromQueryBuilder ($target, $operator, $value)
 

Public Attributes

 $operator
 
 $target
 
 $value
 

Private Member Functions

 getValueTypeCheckCallback ($valueTypes)
 Returns a callback that checks the values types depending on the operator specifications. More...
 

Constructor & Destructor Documentation

eZ\Publish\API\Repository\Values\Content\Query\Criterion::__construct (   $target,
  $operator,
  $value 
)

Performs operator validation based on the Criterion specifications returned by {.

See Also
getSpecifications()}
Parameters
string | null$targetThe target the Criterion applies to: metadata identifier, field identifier...
string | null$operatorThe operator the Criterion uses. If null is given, will default to Operator::IN if $value is an array, Operator::IN if it is not.
string[]|int[]|int|string$value
Todo:
Add a dedicated exception
Exceptions
\InvalidArgumentExceptionif the provided operator isn't supported

Member Function Documentation

static eZ\Publish\API\Repository\Values\Content\Query\Criterion::createFromQueryBuilder (   $target,
  $operator,
  $value 
)
static
eZ\Publish\API\Repository\Values\Content\Query\Criterion::getValueTypeCheckCallback (   $valueTypes)
private

Returns a callback that checks the values types depending on the operator specifications.

Parameters
int$valueTypesThe accepted values, as a bit field of Specifications::TYPE_* constants
Returns

Referenced by eZ\Publish\API\Repository\Values\Content\Query\Criterion\__construct().

Member Data Documentation

eZ\Publish\API\Repository\Values\Content\Query\Criterion::$value

Referenced by eZ\Publish\API\Repository\Values\Content\Query\Criterion\Subtree\__construct(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\ContentId\__construct(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\Field\__construct(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\LocationRemoteId\__construct(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\ObjectStateId\__construct(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\LanguageCode\__construct(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\RemoteId\__construct(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\SectionId\__construct(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\LocationId\__construct(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\ContentTypeId\__construct(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\ParentLocationId\__construct(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\ContentTypeGroupId\__construct(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\UrlAlias\__construct(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\Visibility\__construct(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\MoreLikeThis\__construct(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\FullText\__construct(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\Status\__construct(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\__construct(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\DateMetadata\__construct(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\UserMetadata\__construct(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\ContentId\createFromQueryBuilder(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\ContentTypeId\createFromQueryBuilder(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\LocationRemoteId\createFromQueryBuilder(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\ContentTypeGroupId\createFromQueryBuilder(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\LanguageCode\createFromQueryBuilder(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\ObjectStateId\createFromQueryBuilder(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\RemoteId\createFromQueryBuilder(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\SectionId\createFromQueryBuilder(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\FullText\createFromQueryBuilder(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\LocationId\createFromQueryBuilder(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\MoreLikeThis\createFromQueryBuilder(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\ParentLocationId\createFromQueryBuilder(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\Visibility\createFromQueryBuilder(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\Subtree\createFromQueryBuilder(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\UrlAlias\createFromQueryBuilder(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\Status\createFromQueryBuilder(), eZ\Publish\API\Repository\Values\Content\Query\Criterion\createFromQueryBuilder(), and eZ\Publish\API\Repository\Values\Content\Query\Criterion\getValueTypeCheckCallback().


The documentation for this class was generated from the following file: