eZPublishCommunityProject  2013.9
eZ\Publish\API\Repository\Values\Content\Query\CriterionInterface Interface Reference
+ Inheritance diagram for eZ\Publish\API\Repository\Values\Content\Query\CriterionInterface:

Public Member Functions

 getSpecifications ()
 Criterion description function. More...
 

Static Public Member Functions

static createFromQueryBuilder ($target, $operator, $value)
 Creates a new Criterion for $target with operator $operator on $value. More...
 

Member Function Documentation

static eZ\Publish\API\Repository\Values\Content\Query\CriterionInterface::createFromQueryBuilder (   $target,
  $operator,
  $value 
)
static

Creates a new Criterion for $target with operator $operator on $value.

Parameters
string$targetThe target (field identifier for a field, metadata identifier, etc)
string$operatorThe criterion operator, from Criterion
mixed$valueThe Criterion value, either as an individual item or an array
Returns
CriterionInterface

Implemented in eZ\Publish\API\Repository\Values\Content\Query\Criterion\UrlAlias, eZ\Publish\API\Repository\Values\Content\Query\Criterion\Subtree, eZ\Publish\API\Repository\Values\Content\Query\Criterion\Visibility, eZ\Publish\API\Repository\Values\Content\Query\Criterion\LocationId, eZ\Publish\API\Repository\Values\Content\Query\Criterion\MoreLikeThis, eZ\Publish\API\Repository\Values\Content\Query\Criterion\ParentLocationId, eZ\Publish\API\Repository\Values\Content\Query\Criterion\ContentTypeIdentifier, eZ\Publish\API\Repository\Values\Content\Query\Criterion\FullText, eZ\Publish\API\Repository\Values\Content\Query\Criterion\ContentTypeGroupId, eZ\Publish\API\Repository\Values\Content\Query\Criterion\LanguageCode, eZ\Publish\API\Repository\Values\Content\Query\Criterion\LocationRemoteId, eZ\Publish\API\Repository\Values\Content\Query\Criterion\ObjectStateId, eZ\Publish\API\Repository\Values\Content\Query\Criterion\RemoteId, eZ\Publish\API\Repository\Values\Content\Query\Criterion\SectionId, eZ\Publish\API\Repository\Values\Content\Query\Criterion\ContentTypeId, eZ\Publish\API\Repository\Values\Content\Query\Criterion\LocationPriority, and eZ\Publish\API\Repository\Values\Content\Query\Criterion\ContentId.

eZ\Publish\API\Repository\Values\Content\Query\CriterionInterface::getSpecifications ( )

Criterion description function.

Returns the combination of the Criterion's supported operator/value, as an array of eZ objects

  • Operator is one supported Operator, as an Operator::* constant
  • ValueType is the type of input value this operator requires, either array or single
  • SupportedTypes is an array of types the operator will accept
  • ValueCountLimitation is an integer saying how many values are expected.

// IN and EQ are supported return array( // The EQ operator expects a single value, either as an integer or a string new Specifications( Operator::EQ, Specifications::INPUT_TYPE_SINGLE, array( Specifications::INPUT_VALUE_INTEGER, Specifications::INPUT_VALUE_STRING ), ), // The IN operator expects an array of values, of either integers or strings new Specifications( Operator::IN, Specifications::INPUT_TYPE_ARRAY, array( Specifications::INPUT_VALUE_INTEGER, Specifications::INPUT_VALUE_STRING ) ) )*

Returns
[]

Implemented in eZ\Publish\API\Repository\Values\Content\Query\Criterion\UserMetadata, eZ\Publish\API\Repository\Values\Content\Query\Criterion\DateMetadata, eZ\Publish\API\Repository\Values\Content\Query\Criterion\Visibility, eZ\Publish\API\Repository\Values\Content\Query\Criterion\FullText, eZ\Publish\API\Repository\Values\Content\Query\Criterion\MoreLikeThis, eZ\Publish\API\Repository\Values\Content\Query\Criterion\Subtree, eZ\Publish\API\Repository\Values\Content\Query\Criterion\UrlAlias, eZ\Publish\API\Repository\Values\Content\Query\Criterion\ContentTypeGroupId, eZ\Publish\API\Repository\Values\Content\Query\Criterion\ContentTypeId, eZ\Publish\API\Repository\Values\Content\Query\Criterion\LocationId, eZ\Publish\API\Repository\Values\Content\Query\Criterion\ParentLocationId, eZ\Publish\API\Repository\Values\Content\Query\Criterion\ContentTypeIdentifier, eZ\Publish\API\Repository\Values\Content\Query\Criterion\ContentId, eZ\Publish\API\Repository\Values\Content\Query\Criterion\LanguageCode, eZ\Publish\API\Repository\Values\Content\Query\Criterion\LocationPriority, eZ\Publish\API\Repository\Values\Content\Query\Criterion\LocationRemoteId, eZ\Publish\API\Repository\Values\Content\Query\Criterion\ObjectStateId, eZ\Publish\API\Repository\Values\Content\Query\Criterion\RemoteId, eZ\Publish\API\Repository\Values\Content\Query\Criterion\SectionId, and eZ\Publish\API\Repository\Values\Content\Query\Criterion\Field.


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