| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 128 | public function all($table) |
||
| 129 | { |
||
| 130 | $this->table = (string)$table; |
||
| 131 | |||
| 132 | |||
| 133 | $this->read = DB::connect()->prepare("SELECT * FROM {$this->table}"); |
||
| 134 | $this->read->execute(); |
||
| 135 | $this->rows = $this->read->rowCount(); |
||
| 136 | return $this->result = $this->read->fetchAll(\PDO::FETCH_OBJ); |
||
| 137 | |||
| 138 | return $this; |
||
| 139 | |||
| 180 | } |