eZPublishCommunityProject  2013.9
eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\FieldValue\HandlerRegistry Class Reference

Registry for Criterion field value handlers. More...

Public Member Functions

 __construct (array $map)
 Create field value handler registry with handler map. More...
 
 get ($fieldTypeIdentifier)
 Returns handler for given $fieldTypeIdentifier. More...
 
 has ($fieldTypeIdentifier)
 Checks if handler is registered for the given $fieldTypeIdentifier. More...
 
 register ($fieldTypeIdentifier, $handler)
 Register $handler for $fieldTypeIdentifier. More...
 

Protected Attributes

 $map = array()
 

Detailed Description

Registry for Criterion field value handlers.

Constructor & Destructor Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\FieldValue\HandlerRegistry::__construct ( array  $map)

Create field value handler registry with handler map.

Parameters
\eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\FieldValue\Handler[]$map Map of Criterion field value handlers where key is field type identifier and value field value handler

Member Function Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\FieldValue\HandlerRegistry::get (   $fieldTypeIdentifier)

Returns handler for given $fieldTypeIdentifier.

Exceptions
\OutOfBoundsExceptionIf handler is not registered for a given $fieldTypeIdentifier
Parameters
string$fieldTypeIdentifier
Returns
eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\FieldValue\HandlerRegistry::has (   $fieldTypeIdentifier)

Checks if handler is registered for the given $fieldTypeIdentifier.

Parameters
string$fieldTypeIdentifier
Returns
boolean
eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\FieldValue\HandlerRegistry::register (   $fieldTypeIdentifier,
  $handler 
)

Register $handler for $fieldTypeIdentifier.

Parameters
string$fieldTypeIdentifier
\eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\FieldValue\Handler$handler
Returns
void

Member Data Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\FieldValue\HandlerRegistry::$map = array()
protected

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