@@ 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() |
@@ 87-94 (lines=8) @@ | ||
84 | */ |
|
85 | protected function processFilter($params) |
|
86 | { |
|
87 | if(isset($params['filter'])) |
|
88 | { |
|
89 | $this->filter = new \Flipside\Data\Filter($params['filter']); |
|
90 | } |
|
91 | else if(isset($params['$filter'])) |
|
92 | { |
|
93 | $this->filter = new \Flipside\Data\Filter($params['$filter']); |
|
94 | } |
|
95 | } |
|
96 | ||
97 | /** |