PHP 클래스 eZ\Publish\Core\Persistence\FieldTypeRegistry

파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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[]