| @@ 345-357 (lines=13) @@ | ||
| 342 | * |
|
| 343 | * @return array|false false on error |
|
| 344 | */ |
|
| 345 | public function fetchArray($reset = false) |
|
| 346 | { |
|
| 347 | if ($reset === true) { |
|
| 348 | $this->reset(); |
|
| 349 | } |
|
| 350 | ||
| 351 | $row = mysqli_fetch_assoc($this->_result); |
|
| 352 | if ($row) { |
|
| 353 | return $this->cast($row); |
|
| 354 | } |
|
| 355 | ||
| 356 | return false; |
|
| 357 | } |
|
| 358 | ||
| 359 | /** |
|
| 360 | * fetch as Arrayy-Object |
|
| @@ 366-378 (lines=13) @@ | ||
| 363 | * |
|
| 364 | * @return Arrayy|false false on error |
|
| 365 | */ |
|
| 366 | public function fetchArrayy($reset = false) |
|
| 367 | { |
|
| 368 | if ($reset === true) { |
|
| 369 | $this->reset(); |
|
| 370 | } |
|
| 371 | ||
| 372 | $row = mysqli_fetch_assoc($this->_result); |
|
| 373 | if ($row) { |
|
| 374 | return Arrayy::create($this->cast($row)); |
|
| 375 | } |
|
| 376 | ||
| 377 | return false; |
|
| 378 | } |
|
| 379 | ||
| 380 | /** |
|
| 381 | * getAll |
|