Свойство | Тип | Описание | |
---|---|---|---|
$fieldTypeIdentifier | string | Identifier for the field type this stuff is mocking. |
Метод | Описание | |
---|---|---|
__construct ( string $fieldTypeIdentifier ) : |
Constructs field type object, initializing internal data structures. | |
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. |
Метод | Описание | |
---|---|---|
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 ( string $fieldTypeIdentifier ) : |
||
$fieldTypeIdentifier | string | |
Результат |
protected checkValueStructure ( |
||
$value |
protected createValueFromInput ( |
||
$inputValue | ||
Результат | The potentially converted and structurally plausible value. |
public getEmptyValue ( ) : |
||
Результат |
public getFieldTypeIdentifier ( ) : string | ||
Результат | string |
protected getSortInfo ( |
||
$value | ||
Результат | array |
public isSearchable ( ) : boolean | ||
Результат | boolean |
protected string $fieldTypeIdentifier | ||
Результат | string |