Свойство | Type | Description | |
---|---|---|---|
$settingsSchema |
Méthode | Description | |
---|---|---|
fieldSettingsFromHash ( array | hash | scalar | null $fieldSettingsHash ) : mixed | Converts the given $fieldSettingsHash to field settings of the type. | |
fieldSettingsToHash ( mixed $fieldSettings ) : array | hash | scalar | null | Converts the given $fieldSettings to a simple hash format. | |
fromHash ( mixed $hash ) : |
Converts an $hash to the Value defined by the field type. | |
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. | |
validateFieldSettings ( mixed $fieldSettings ) : eZ\Publish\SPI\FieldType\ValidationError[] | Validates the fieldSettings of a FieldDefinitionCreateStruct or FieldDefinitionUpdateStruct. |
Méthode | Description | |
---|---|---|
checkValueStructure ( |
Throws an exception if value structure is not of expected format. | |
createValueFromInput ( string | integer | DateTim\DateTime | |
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 ( string | integer | DateTim\DateTime | |
||
$inputValue | string | integer | DateTim\DateTime | |
|
Résultat | The potentially converted and structurally plausible value. |
public getEmptyValue ( ) : |
||
Résultat |
public getFieldTypeIdentifier ( ) : string | ||
Résultat | string |
protected getSortInfo ( |
||
$value | ||
Résultat | array |
public isSearchable ( ) : boolean | ||
Résultat | boolean |
public validateFieldSettings ( mixed $fieldSettings ) : eZ\Publish\SPI\FieldType\ValidationError[] | ||
$fieldSettings | mixed | |
Résultat | eZ\Publish\SPI\FieldType\ValidationError[] |