Class

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\PageConverter

class PageConverter implements Converter

Methods

toStorageValue(FieldValue $value, StorageFieldValue $storageFieldValue)

Converts data from $value to $storageFieldValue.

toFieldValue(StorageFieldValue $value, FieldValue $fieldValue)

Converts data from $value to $fieldValue.

toStorageFieldDefinition(FieldDefinition $fieldDef, StorageFieldDefinition $storageDef)

Converts field definition data in $fieldDef into $storageFieldDef.

toFieldDefinition(StorageFieldDefinition $storageDef, FieldDefinition $fieldDef)

Converts field definition data in $storageDef into $fieldDef.

string getIndexColumn()

Returns the name of the index column in the attribute table.

string generateXmlString(Page $page)

Generates XML string from $page object to be stored in storage engine.

Page restoreValueFromXmlString(string $xmlString)

Restores value from XML string.

Details

at line 29
public toStorageValue(FieldValue $value, StorageFieldValue $storageFieldValue)

Converts data from $value to $storageFieldValue.

Parameters

FieldValue $value
StorageFieldValue $storageFieldValue

at line 42
public toFieldValue(StorageFieldValue $value, FieldValue $fieldValue)

Converts data from $value to $fieldValue.

Parameters

StorageFieldValue $value
FieldValue $fieldValue

at line 55
public toStorageFieldDefinition(FieldDefinition $fieldDef, StorageFieldDefinition $storageDef)

Converts field definition data in $fieldDef into $storageFieldDef.

Parameters

FieldDefinition $fieldDef
StorageFieldDefinition $storageDef

at line 68
public toFieldDefinition(StorageFieldDefinition $storageDef, FieldDefinition $fieldDef)

Converts field definition data in $storageDef into $fieldDef.

Parameters

StorageFieldDefinition $storageDef
FieldDefinition $fieldDef

at line 86
public string getIndexColumn()

Returns the name of the index column in the attribute table.

Returns the name of the index column the datatype uses, which is either "sortkeyint" or "sortkeystring". This column is then used for filtering and sorting for this type.

Return Value

string

at line 98
public string generateXmlString(Page $page)

Generates XML string from $page object to be stored in storage engine.

Parameters

Page $page

Return Value

string

at line 348
public Page restoreValueFromXmlString(string $xmlString)

Restores value from XML string.

Parameters

string $xmlString

Return Value

Page