PHP Class eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler\FieldValue\HandlerRegistry

Show file Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$map Handler[] Map of Criterion field value handlers where key is field type identifier and value is field value handler.

Public Methods

Method Description
__construct ( array $map = [] ) Create field value handler registry with handler map.
get ( string $fieldTypeIdentifier ) : Handler Returns handler for given $fieldTypeIdentifier.
has ( string $fieldTypeIdentifier ) : boolean Checks if handler is registered for the given $fieldTypeIdentifier.
register ( string $fieldTypeIdentifier, Handler $handler ) Register $handler for $fieldTypeIdentifier.

Method Details

__construct() public method

Create field value handler registry with handler map.
public __construct ( array $map = [] )
$map array Map of Criterion field value handlers where key is field type identifier and value field value handler

get() public method

Returns handler for given $fieldTypeIdentifier.
public get ( string $fieldTypeIdentifier ) : Handler
$fieldTypeIdentifier string
return Handler

has() public method

Checks if handler is registered for the given $fieldTypeIdentifier.
public has ( string $fieldTypeIdentifier ) : boolean
$fieldTypeIdentifier string
return boolean

register() public method

Register $handler for $fieldTypeIdentifier.
public register ( string $fieldTypeIdentifier, Handler $handler )
$fieldTypeIdentifier string
$handler Handler

Property Details

$map protected property

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