| @@ 288-302 (lines=15) @@ | ||
| 285 | * |
|
| 286 | * @return array|false false on error |
|
| 287 | */ |
|
| 288 | public function fetchArray($reset = false) |
|
| 289 | { |
|
| 290 | if ($reset === true) { |
|
| 291 | $this->reset(); |
|
| 292 | } |
|
| 293 | ||
| 294 | if ($this->_result) { |
|
| 295 | $row = mysqli_fetch_assoc($this->_result); |
|
| 296 | if ($row) { |
|
| 297 | return $row; |
|
| 298 | } |
|
| 299 | } |
|
| 300 | ||
| 301 | return false; |
|
| 302 | } |
|
| 303 | ||
| 304 | /** |
|
| 305 | * fetch as Arrayy-Object |
|
| @@ 311-325 (lines=15) @@ | ||
| 308 | * |
|
| 309 | * @return Arrayy|false false on error |
|
| 310 | */ |
|
| 311 | public function fetchArrayy($reset = false) |
|
| 312 | { |
|
| 313 | if ($reset === true) { |
|
| 314 | $this->reset(); |
|
| 315 | } |
|
| 316 | ||
| 317 | if ($this->_result) { |
|
| 318 | $row = mysqli_fetch_assoc($this->_result); |
|
| 319 | if ($row) { |
|
| 320 | return Arrayy::create($row); |
|
| 321 | } |
|
| 322 | } |
|
| 323 | ||
| 324 | return false; |
|
| 325 | } |
|
| 326 | ||
| 327 | /** |
|
| 328 | * getAll |
|