PHP Класс eZ\Publish\Core\Persistence\FieldTypeRegistry

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$coreFieldTypeMap mixed Map of FieldTypes where key is field type identifier and value is FieldType object complying to {@link \eZ\Publish\SPI\FieldType\FieldType} interface or callable callback to generate one.
$fieldTypeMap eZ\Publish\SPI\Persistence\FieldType[] Map of FieldTypes where key is field type identifier and value is FieldType object.

Открытые методы

Метод Описание
__construct ( array $fieldTypeMap ) Creates FieldType registry.
getFieldType ( string $identifier ) : eZ\Publish\SPI\Persistence\FieldType Returns the FieldType object for given $identifier.
register ( $identifier, mixed $fieldType ) Register $fieldType with $identifier.

Защищенные методы

Метод Описание
getCoreFieldType ( string $identifier ) : eZ\Publish\SPI\FieldType\FieldType Instantiates a FieldType object.

Описание методов

__construct() публичный Метод

In $fieldTypeMap a mapping of field type identifier to object / callable is expected, in case of callable factory it should return the FieldType object. The FieldType object must comply to the {@link \eZ\Publish\SPI\FieldType\FieldType} interface.
public __construct ( array $fieldTypeMap )
$fieldTypeMap array A map where key is field type identifier and value is a callable factory to get FieldType OR FieldType object.

getCoreFieldType() защищенный Метод

Instantiates a FieldType object.
protected getCoreFieldType ( string $identifier ) : eZ\Publish\SPI\FieldType\FieldType
$identifier string
Результат eZ\Publish\SPI\FieldType\FieldType

getFieldType() публичный Метод

Returns the FieldType object for given $identifier.
public getFieldType ( string $identifier ) : eZ\Publish\SPI\Persistence\FieldType
$identifier string
Результат eZ\Publish\SPI\Persistence\FieldType

register() публичный Метод

For $fieldType an object / callable is expected, in case of callable factory it should return the FieldType object. The FieldType object must comply to the {@link \eZ\Publish\SPI\FieldType\FieldType} interface.
public register ( $identifier, mixed $fieldType )
$identifier
$fieldType mixed Callable or FieldType instance.

Описание свойств

$coreFieldTypeMap защищенное свойство

Map of FieldTypes where key is field type identifier and value is FieldType object complying to {@link \eZ\Publish\SPI\FieldType\FieldType} interface or callable callback to generate one.
protected mixed $coreFieldTypeMap
Результат mixed

$fieldTypeMap защищенное свойство

Map of FieldTypes where key is field type identifier and value is FieldType object.
protected FieldType[],eZ\Publish\SPI\Persistence $fieldTypeMap
Результат eZ\Publish\SPI\Persistence\FieldType[]