| @@ 163-175 (lines=13) @@ | ||
| 160 | * |
|
| 161 | * @return array |
|
| 162 | */ |
|
| 163 | public function fetchAll($result) |
|
| 164 | { |
|
| 165 | $ret = []; |
|
| 166 | if (false === $result) { |
|
| 167 | throw new Exception('Error while fetching result: '.$this->error()); |
|
| 168 | } |
|
| 169 | ||
| 170 | while ($row = $this->fetchObject($result)) { |
|
| 171 | $ret[] = $row; |
|
| 172 | } |
|
| 173 | ||
| 174 | return $ret; |
|
| 175 | } |
|
| 176 | ||
| 177 | /** |
|
| 178 | * Number of rows in a result. |
|
| @@ 179-191 (lines=13) @@ | ||
| 176 | * |
|
| 177 | * @return array |
|
| 178 | */ |
|
| 179 | public function fetchAll($result) |
|
| 180 | { |
|
| 181 | $ret = []; |
|
| 182 | if (false === $result) { |
|
| 183 | throw new Exception('Error while fetching result: '.$this->error()); |
|
| 184 | } |
|
| 185 | ||
| 186 | while ($row = $this->fetchObject($result)) { |
|
| 187 | $ret[] = $row; |
|
| 188 | } |
|
| 189 | ||
| 190 | return $ret; |
|
| 191 | } |
|
| 192 | ||
| 193 | /** |
|
| 194 | * Number of rows in a result. |
|
| @@ 166-178 (lines=13) @@ | ||
| 163 | * |
|
| 164 | * @return array |
|
| 165 | */ |
|
| 166 | public function fetchAll($result) |
|
| 167 | { |
|
| 168 | $ret = []; |
|
| 169 | if (false === $result) { |
|
| 170 | throw new Exception('Error while fetching result: '.$this->error()); |
|
| 171 | } |
|
| 172 | ||
| 173 | while ($row = $this->fetchObject($result)) { |
|
| 174 | $ret[] = $row; |
|
| 175 | } |
|
| 176 | ||
| 177 | return $ret; |
|
| 178 | } |
|
| 179 | ||
| 180 | /** |
|
| 181 | * Number of rows in a result. |
|
| @@ 186-198 (lines=13) @@ | ||
| 183 | * |
|
| 184 | * @return array |
|
| 185 | */ |
|
| 186 | public function fetchAll($result) |
|
| 187 | { |
|
| 188 | $ret = []; |
|
| 189 | if (false === $result) { |
|
| 190 | throw new Exception('Error while fetching result: '.$this->error()); |
|
| 191 | } |
|
| 192 | ||
| 193 | while ($row = $this->fetchObject($result)) { |
|
| 194 | $ret[] = $row; |
|
| 195 | } |
|
| 196 | ||
| 197 | return $ret; |
|
| 198 | } |
|
| 199 | ||
| 200 | /** |
|
| 201 | * Number of rows in a result. |
|