PHP Class eZ\Publish\Core\FieldType\Media\Type

This field type represents a simple string.
Inheritance: extends eZ\Publish\Core\FieldType\BinaryBase\Type
Afficher le fichier Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Свойство Type Description
$settingsSchema array

Méthodes publiques

Méthode Description
fromPersistenceValue ( eZ\Publish\SPI\Persistence\Content\FieldValue $fieldValue ) : Value Converts a persistence $fieldValue to a Value.
getEmptyValue ( ) : Value 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.
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éthodes protégées

Méthode Description
checkValueStructure ( Value $value ) Throws an exception if value structure is not of expected format.
completeValue ( Value $value ) Attempts to complete the data in $value.
createValue ( array $inputValue ) : Value Creates a specific value of the derived class from $inputValue.

Method Details

checkValueStructure() protected méthode

Throws an exception if value structure is not of expected format.
protected checkValueStructure ( Value $value )
$value eZ\Publish\Core\FieldType\Value

completeValue() protected méthode

Attempts to complete the data in $value.
protected completeValue ( Value $value )
$value eZ\Publish\Core\FieldType\Value

createValue() protected méthode

Creates a specific value of the derived class from $inputValue.
protected createValue ( array $inputValue ) : Value
$inputValue array
Résultat Value

fromPersistenceValue() public méthode

This method builds a field type value from the $data and $externalData properties.
public fromPersistenceValue ( eZ\Publish\SPI\Persistence\Content\FieldValue $fieldValue ) : Value
$fieldValue eZ\Publish\SPI\Persistence\Content\FieldValue
Résultat Value

getEmptyValue() public méthode

Returns the fallback default value of field type when no such default value is provided in the field definition in content types.
public getEmptyValue ( ) : Value
Résultat Value

getFieldTypeIdentifier() public méthode

Returns the field type identifier for this field type.
public getFieldTypeIdentifier ( ) : string
Résultat string

isSearchable() public méthode

Returns whether the field type is searchable.
public isSearchable ( ) : boolean
Résultat boolean

toHash() public méthode

Converts a $Value to a hash.
public toHash ( eZ\Publish\SPI\fieldType\Value $value ) : mixed
$value eZ\Publish\SPI\fieldType\Value
Résultat mixed

validateFieldSettings() public méthode

Validates the fieldSettings of a FieldDefinitionCreateStruct or FieldDefinitionUpdateStruct.
public validateFieldSettings ( mixed $fieldSettings ) : eZ\Publish\SPI\FieldType\ValidationError[]
$fieldSettings mixed
Résultat eZ\Publish\SPI\FieldType\ValidationError[]

Property Details

$settingsSchema protected_oe property

protected array $settingsSchema
Résultat array