1 | <?php |
||
13 | class Converter implements ConverterInterface |
||
14 | { |
||
15 | /** |
||
16 | * Converts data from $value to $storageFieldValue. |
||
17 | * |
||
18 | * @param \eZ\Publish\SPI\Persistence\Content\FieldValue $value |
||
19 | * @param \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldValue $storageFieldValue |
||
20 | */ |
||
21 | public function toStorageValue(FieldValue $value, StorageFieldValue $storageFieldValue) |
||
24 | |||
25 | /** |
||
26 | * Converts data from $value to $fieldValue. |
||
27 | * |
||
28 | * @param \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldValue $value |
||
29 | * @param \eZ\Publish\SPI\Persistence\Content\FieldValue $fieldValue |
||
30 | */ |
||
31 | public function toFieldValue(StorageFieldValue $value, FieldValue $fieldValue) |
||
34 | |||
35 | /** |
||
36 | * Converts field definition data in $fieldDef into $storageFieldDef. |
||
37 | * |
||
38 | * @param \eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDef |
||
39 | * @param \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition $storageDef |
||
40 | */ |
||
41 | public function toStorageFieldDefinition(FieldDefinition $fieldDef, StorageFieldDefinition $storageDef) |
||
50 | |||
51 | /** |
||
52 | * Converts field definition data in $storageDef into $fieldDef. |
||
53 | * |
||
54 | * @param \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition $storageDef |
||
55 | * @param \eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDef |
||
56 | */ |
||
57 | public function toFieldDefinition(StorageFieldDefinition $storageDef, FieldDefinition $fieldDef) |
||
74 | |||
75 | /** |
||
76 | * Returns the name of the index column in the attribute table. |
||
77 | * |
||
78 | * Returns the name of the index column the datatype uses, which is either |
||
79 | * "sort_key_int" or "sort_key_string". This column is then used for |
||
80 | * filtering and sorting for this type. |
||
81 | * |
||
82 | * If the indexing is not supported, this method must return false. |
||
83 | * |
||
84 | * @return string|false |
||
85 | */ |
||
86 | public function getIndexColumn() |
||
90 | } |
||
91 |