Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
44 | public function getOrderQuery(array $getVars) |
||
45 | { |
||
46 | if (isset($getVars['o'])) |
||
47 | { |
||
48 | $this->orderQuery = $getVars['o']; |
||
49 | $match = array(); |
||
50 | if (preg_match('/(.*)(ASC|DESC)$/', $this->orderQuery , $match)) |
||
51 | { |
||
52 | $orderArray=array($match[1] => $match[2]); |
||
53 | echo "$match[1] => $match[2]"; |
||
54 | $this->setOrder($orderArray); |
||
55 | } |
||
65 | } |