| 1 | <?php |
||
| 7 | class SortConverter |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param string $value |
||
| 11 | * @return int|null |
||
| 12 | */ |
||
| 13 | public function hash2SortField($value) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param int $value |
||
| 30 | * @return string |
||
| 31 | * @throws \Exception |
||
| 32 | */ |
||
| 33 | public function sortField2Hash($value) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Get the sort order based on the current value and the value in the DSL definition. |
||
| 47 | * |
||
| 48 | * @see \eZ\Publish\API\Repository\Values\Content\Location::SORT_ORDER_* |
||
| 49 | * |
||
| 50 | * @param string $value ASC|DESC |
||
| 51 | * @return int |
||
| 52 | */ |
||
| 53 | public function hash2SortOrder($value) |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @param int $value |
||
| 70 | * @return string |
||
| 71 | */ |
||
| 72 | public function sortOrder2Hash($value) |
||
| 80 | } |
||
| 81 |