Property | Type | Description | |
---|---|---|---|
$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. |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
getCoreFieldType ( string $identifier ) : eZ\Publish\SPI\FieldType\FieldType | Instantiates a FieldType object. |
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. |
protected getCoreFieldType ( string $identifier ) : eZ\Publish\SPI\FieldType\FieldType | ||
$identifier | string | |
return | eZ\Publish\SPI\FieldType\FieldType |
public getFieldType ( string $identifier ) : eZ\Publish\SPI\Persistence\FieldType | ||
$identifier | string | |
return | eZ\Publish\SPI\Persistence\FieldType |
protected mixed $coreFieldTypeMap | ||
return | mixed |