| @@ 53-63 (lines=11) @@ | ||
| 50 | $this->processSearch($params); |
|
| 51 | } |
|
| 52 | ||
| 53 | protected function processFilter($params) |
|
| 54 | { |
|
| 55 | if(isset($params['filter'])) |
|
| 56 | { |
|
| 57 | $this->filter = new \Data\Filter($params['filter']); |
|
| 58 | } |
|
| 59 | else if(isset($params['$filter'])) |
|
| 60 | { |
|
| 61 | $this->filter = new \Data\Filter($params['$filter']); |
|
| 62 | } |
|
| 63 | } |
|
| 64 | ||
| 65 | protected function processExpand($params) |
|
| 66 | { |
|
| @@ 8-18 (lines=11) @@ | ||
| 5 | { |
|
| 6 | protected $pdo; |
|
| 7 | ||
| 8 | function __construct($params) |
|
| 9 | { |
|
| 10 | if(isset($params['user'])) |
|
| 11 | { |
|
| 12 | $this->pdo = new \PDO($params['dsn'], $params['user'], $params['pass']); |
|
| 13 | } |
|
| 14 | else |
|
| 15 | { |
|
| 16 | $this->pdo = new \PDO($params['dsn']); |
|
| 17 | } |
|
| 18 | } |
|
| 19 | ||
| 20 | function _get_row_count_for_query($sql) |
|
| 21 | { |
|