Property | Type | Description | |
---|---|---|---|
$validatorConfigurationSchema |
Method | Description | |
---|---|---|
fromHash ( mixed $hash ) : eZ\Publish\Core\FieldType\BinaryBase\Value | Converts an $hash to the Value defined by the field type. | |
fromPersistenceValue ( eZ\Publish\SPI\Persistence\Content\FieldValue $fieldValue ) : eZ\Publish\Core\FieldType\BinaryBase\Value | Converts a persistence $fieldValue to a Value. | |
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. | |
validate ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition, eZ\Publish\SPI\FieldType\Value $fieldValue ) : eZ\Publish\SPI\FieldType\ValidationError[] | Validates a field based on the validators in the field definition. | |
validateValidatorConfiguration ( mixed $validatorConfiguration ) : eZ\Publish\SPI\FieldType\ValidationError[] | Validates the validatorConfiguration of a FieldDefinitionCreateStruct or FieldDefinitionUpdateStruct. |
Method | Description | |
---|---|---|
checkValueStructure ( |
Throws an exception if value structure is not of expected format. | |
completeValue ( |
Attempts to complete the data in $value. | |
createValue ( array $inputValue ) : eZ\Publish\Core\FieldType\BinaryBase\Value | Creates a specific value of the derived class from $inputValue. | |
createValueFromInput ( string | array | eZ\Publish\Core\FieldType\BinaryBase\Value $inputValue ) : eZ\Publish\Core\FieldType\BinaryBase\Value | Inspects given $inputValue and potentially converts it into a dedicated value object. | |
getSortInfo ( |
BinaryBase does not support sorting. |
protected checkValueStructure ( |
||
$value |
protected completeValue ( |
||
$value |
abstract protected createValue ( array $inputValue ) : eZ\Publish\Core\FieldType\BinaryBase\Value | ||
$inputValue | array | |
return | eZ\Publish\Core\FieldType\BinaryBase\Value |
protected createValueFromInput ( string | array | eZ\Publish\Core\FieldType\BinaryBase\Value $inputValue ) : eZ\Publish\Core\FieldType\BinaryBase\Value | ||
$inputValue | string | array | eZ\Publish\Core\FieldType\BinaryBase\Value | |
return | eZ\Publish\Core\FieldType\BinaryBase\Value | The potentially converted and structurally plausible value. |
public fromPersistenceValue ( eZ\Publish\SPI\Persistence\Content\FieldValue $fieldValue ) : eZ\Publish\Core\FieldType\BinaryBase\Value | ||
$fieldValue | eZ\Publish\SPI\Persistence\Content\FieldValue | |
return | eZ\Publish\Core\FieldType\BinaryBase\Value |
protected getSortInfo ( |
||
$value | ||
return | boolean |
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 | The value of the field type |
return | eZ\Publish\SPI\Persistence\Content\FieldValue | the value processed by the storage engine |
public validate ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition, eZ\Publish\SPI\FieldType\Value $fieldValue ) : eZ\Publish\SPI\FieldType\ValidationError[] | ||
$fieldDefinition | eZ\Publish\API\Repository\Values\ContentType\FieldDefinition | The field definition of the field |
$fieldValue | eZ\Publish\SPI\FieldType\Value | The field value for which an action is performed |
return | eZ\Publish\SPI\FieldType\ValidationError[] |
public validateValidatorConfiguration ( mixed $validatorConfiguration ) : eZ\Publish\SPI\FieldType\ValidationError[] | ||
$validatorConfiguration | mixed | |
return | eZ\Publish\SPI\FieldType\ValidationError[] |