| @@ 28-36 (lines=9) @@ | ||
| 25 | * |
|
| 26 | * @return array |
|
| 27 | */ |
|
| 28 | public function findAll() |
|
| 29 | { |
|
| 30 | $this->db->select() |
|
| 31 | ->from($this->getSource()); |
|
| 32 | ||
| 33 | $this->db->execute(); |
|
| 34 | $this->db->setFetchModeClass(__CLASS__); |
|
| 35 | return $this->db->fetchAll(); |
|
| 36 | } |
|
| 37 | ||
| 38 | /** |
|
| 39 | * Get object properties. |
|
| @@ 209-215 (lines=7) @@ | ||
| 206 | * |
|
| 207 | * @return $this |
|
| 208 | */ |
|
| 209 | public function execute($params = []) |
|
| 210 | { |
|
| 211 | $this->db->execute($this->db->getSQL(), $params); |
|
| 212 | $this->db->setFetchModeClass(__CLASS__); |
|
| 213 | ||
| 214 | return $this->db->fetchAll(); |
|
| 215 | } |
|
| 216 | } |
|
| 217 | ||