Свойство | Тип | Описание | |
---|---|---|---|
$hashConverter | |||
$pageService | |||
$settingsSchema | array |
Метод | Описание | |
---|---|---|
__construct ( |
||
fromHash ( mixed $hash ) : |
Converts an $hash to the Value defined by the field type. | |
fromPersistenceValue ( eZ\Publish\SPI\Persistence\Content\FieldValue $fieldValue ) : |
Converts a persistence $fieldValue to a Value. | |
getEmptyValue ( ) : mixed | Returns the empty value for this field type. | |
getFieldTypeIdentifier ( ) : string | Returns the field type identifier for this field type. | |
getName ( eZ\Publish\SPI\FieldType\Value $value ) : string | Returns the name of the given field value. | |
isEmptyValue ( eZ\Publish\SPI\FieldType\Value $value ) : boolean | Returns if the given $value is considered empty by the field type. | |
toHash ( eZ\Publish\SPI\FieldType\Value $value ) : mixed | Converts a Value to a hash. | |
toPersistenceValue ( eZ\Publish\SPI\FieldType\Value $value ) : eZ\Publish\SPI\Persistence\Content\FieldValue | Converts a $value to a persistence value. | |
validateFieldSettings ( mixed $fieldSettings ) : eZ\Publish\SPI\FieldType\ValidationError[] | Validates the fieldSettings of a FieldDefinitionCreateStruct or FieldDefinitionUpdateStruct. |
Метод | Описание | |
---|---|---|
checkValueStructure ( |
Throws an exception if value structure is not of expected format. | |
createValueFromInput ( |
Inspects given $inputValue and potentially converts it into a dedicated value object. | |
getSortInfo ( |
Returns information for FieldValue->$sortKey relevant to the field type. |
public __construct ( |
||
$pageService | ||
$hashConverter |
protected checkValueStructure ( |
||
$value |
protected createValueFromInput ( |
||
$inputValue | ||
Результат | The potentially converted and structurally plausible value. |
public fromPersistenceValue ( eZ\Publish\SPI\Persistence\Content\FieldValue $fieldValue ) : |
||
$fieldValue | eZ\Publish\SPI\Persistence\Content\FieldValue | |
Результат |
public getEmptyValue ( ) : mixed | ||
Результат | mixed |
public getFieldTypeIdentifier ( ) : string | ||
Результат | string |
protected getSortInfo ( |
||
$value | ||
Результат | mixed |
public isEmptyValue ( eZ\Publish\SPI\FieldType\Value $value ) : boolean | ||
$value | eZ\Publish\SPI\FieldType\Value | |
Результат | boolean |
public toPersistenceValue ( eZ\Publish\SPI\FieldType\Value $value ) : eZ\Publish\SPI\Persistence\Content\FieldValue | ||
$value | eZ\Publish\SPI\FieldType\Value | |
Результат | eZ\Publish\SPI\Persistence\Content\FieldValue |
public validateFieldSettings ( mixed $fieldSettings ) : eZ\Publish\SPI\FieldType\ValidationError[] | ||
$fieldSettings | mixed | |
Результат | eZ\Publish\SPI\FieldType\ValidationError[] |
protected HashConverter,eZ\Publish\Core\FieldType\Page $hashConverter | ||
Результат |
protected PageService,eZ\Publish\Core\FieldType\Page $pageService | ||
Результат |