PHP Класс eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\MediaConverter

Наследование: extends BinaryFileConverter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
create ( ) : MediaConverter Factory for current class.
getIndexColumn ( ) : string Returns the name of the index column in the attribute table.
toFieldDefinition ( StorageFieldDefinition $storageDef, eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDef ) Converts field definition data in $storageDef into $fieldDef.
toStorageFieldDefinition ( eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDef, StorageFieldDefinition $storageDef ) Converts field definition data in $fieldDef into $storageFieldDef.

Описание методов

create() публичный статический Метод

Note: Class should instead be configured as service if it gains dependencies.
public static create ( ) : MediaConverter
Результат MediaConverter

getIndexColumn() публичный Метод

Returns the name of the index column the datatype uses, which is either "sort_key_int" or "sort_key_string". This column is then used for filtering and sorting for this type.
public getIndexColumn ( ) : string
Результат string

toFieldDefinition() публичный Метод

Converts field definition data in $storageDef into $fieldDef.
public toFieldDefinition ( StorageFieldDefinition $storageDef, eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDef )
$storageDef eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition
$fieldDef eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition

toStorageFieldDefinition() публичный Метод

Converts field definition data in $fieldDef into $storageFieldDef.
public toStorageFieldDefinition ( eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDef, StorageFieldDefinition $storageDef )
$fieldDef eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition
$storageDef eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition