Method | Description | |
---|---|---|
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 ( ) : |
Returns the fallback default value of field type when no such default value is provided in the field definition in content types. | |
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. | |
isSearchable ( ) : boolean | Returns whether the field type is searchable. | |
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. |
Method | Description | |
---|---|---|
checkValueStructure ( |
Throws an exception if value structure is not of expected format. | |
createValueFromInput ( mixed $inputValue ) : |
Inspects given $inputValue and potentially converts it into a dedicated value object. | |
getSortInfo ( |
Returns information for FieldValue->$sortKey relevant to the field type. |
protected checkValueStructure ( |
||
$value |
protected createValueFromInput ( mixed $inputValue ) : |
||
$inputValue | mixed | |
return | The potentially converted and structurally plausible value. |
public fromPersistenceValue ( eZ\Publish\SPI\Persistence\Content\FieldValue $fieldValue ) : |
||
$fieldValue | eZ\Publish\SPI\Persistence\Content\FieldValue | |
return |
public getEmptyValue ( ) : |
||
return |
public getFieldTypeIdentifier ( ) : string | ||
return | string |
protected getSortInfo ( |
||
$value | ||
return | array |
public isSearchable ( ) : boolean | ||
return | boolean |
public toPersistenceValue ( eZ\Publish\SPI\FieldType\Value $value ) : eZ\Publish\SPI\Persistence\Content\FieldValue | ||
$value | eZ\Publish\SPI\FieldType\Value | |
return | eZ\Publish\SPI\Persistence\Content\FieldValue |