| @@ 10-17 (lines=8) @@ | ||
| 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) |
|
| @@ 43-50 (lines=8) @@ | ||
| 40 | ||
| 41 | public function __construct($params) |
|
| 42 | { |
|
| 43 | if(isset($params['filter'])) |
|
| 44 | { |
|
| 45 | $this->filter = new \Data\Filter($params['filter']); |
|
| 46 | } |
|
| 47 | else if(isset($params['$filter'])) |
|
| 48 | { |
|
| 49 | $this->filter = new \Data\Filter($params['$filter']); |
|
| 50 | } |
|
| 51 | ||
| 52 | if(isset($params['$expand'])) |
|
| 53 | { |
|