| 1 | <?php |
||
| 4 | trait OrderByBuilder { |
||
| 5 | use AbstractDB; |
||
| 6 | |||
| 7 | /** |
||
| 8 | * @var array |
||
| 9 | */ |
||
| 10 | private $orderBy = array(); |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param string $expression |
||
| 14 | * @param string $direction |
||
| 15 | * @return $this |
||
| 16 | */ |
||
| 17 | public function orderBy($expression, $direction = 'asc') { |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param string $query |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | protected function buildOrder($query) { |
||
| 51 | } |
||
| 52 |