@@ 86-93 (lines=8) @@ | ||
83 | */ |
|
84 | protected function processFilter($params) |
|
85 | { |
|
86 | if(isset($params['filter'])) |
|
87 | { |
|
88 | $this->filter = new \Data\Filter($params['filter']); |
|
89 | } |
|
90 | else if(isset($params['$filter'])) |
|
91 | { |
|
92 | $this->filter = new \Data\Filter($params['$filter']); |
|
93 | } |
|
94 | } |
|
95 | ||
96 | /** |
@@ 17-24 (lines=8) @@ | ||
14 | public function __construct($params) |
|
15 | { |
|
16 | $this->params = $params; |
|
17 | if(isset($params['user'])) |
|
18 | { |
|
19 | $this->pdo = new \PDO($params['dsn'], $params['user'], $params['pass']); |
|
20 | } |
|
21 | else |
|
22 | { |
|
23 | $this->pdo = new \PDO($params['dsn']); |
|
24 | } |
|
25 | } |
|
26 | ||
27 | public function __sleep() |