1 | <?php |
||
4 | trait OrderByBuilder { |
||
5 | use AbstractDB; |
||
6 | |||
7 | /** @var array */ |
||
8 | private $orderBy = array(); |
||
9 | |||
10 | /** |
||
11 | * @param string $expression |
||
12 | * @param string $direction |
||
13 | * @return $this |
||
14 | */ |
||
15 | public function orderBy($expression, $direction = 'asc') { |
||
32 | |||
33 | /** |
||
34 | */ |
||
35 | public function orderByValues($fieldName, array $values) { |
||
43 | |||
44 | /** |
||
45 | * @param string $query |
||
46 | * @return string |
||
47 | */ |
||
48 | protected function buildOrder($query) { |
||
60 | } |
||
61 |