PHP Class eZ\Publish\Core\Search\Common\FieldRegistry

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

Protected Properties

Property Type Description
$types Registered field types.

Public Methods

Method Description
__construct ( array $types = [] ) Construct from optional Indexable type array.
getType ( string $name ) : eZ\Publish\SPI\FieldType\Indexable Get Indexable type.
registerType ( string $name, eZ\Publish\SPI\FieldType\Indexable $type ) Register another indexable type.

Method Details

__construct() public method

Construct from optional Indexable type array.
public __construct ( array $types = [] )
$types array

getType() public method

Get Indexable type.
public getType ( string $name ) : eZ\Publish\SPI\FieldType\Indexable
$name string
return eZ\Publish\SPI\FieldType\Indexable

registerType() public method

Register another indexable type.
public registerType ( string $name, eZ\Publish\SPI\FieldType\Indexable $type )
$name string
$type eZ\Publish\SPI\FieldType\Indexable

Property Details

$types protected property

Registered field types.
protected $types