PHP Class eZ\Publish\Core\FieldType\BinaryFile\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

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.
toHash ( eZ\Publish\SPI\FieldType\Value $value ) : mixed Converts a $Value to a hash.

Méthodes protégées

Méthode Description
completeValue ( Basevalue $value ) Attempts to complete the data in $value.
createValue ( array $inputValue ) : Value Creates a specific value of the derived class from $inputValue.

Method Details

completeValue() protected méthode

Attempts to complete the data in $value.
protected completeValue ( Basevalue $value )
$value Basevalue

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

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