| @@ 368-380 (lines=13) @@ | ||
| 365 | * |
|
| 366 | * @return array|false false on error |
|
| 367 | */ |
|
| 368 | public function fetchArray($reset = false) |
|
| 369 | { |
|
| 370 | if ($reset === true) { |
|
| 371 | $this->reset(); |
|
| 372 | } |
|
| 373 | ||
| 374 | $row = \mysqli_fetch_assoc($this->_result); |
|
| 375 | if ($row) { |
|
| 376 | return $this->cast($row); |
|
| 377 | } |
|
| 378 | ||
| 379 | return false; |
|
| 380 | } |
|
| 381 | ||
| 382 | /** |
|
| 383 | * Fetch as "Arrayy"-object. |
|
| @@ 389-401 (lines=13) @@ | ||
| 386 | * |
|
| 387 | * @return Arrayy|false false on error |
|
| 388 | */ |
|
| 389 | public function fetchArrayy($reset = false) |
|
| 390 | { |
|
| 391 | if ($reset === true) { |
|
| 392 | $this->reset(); |
|
| 393 | } |
|
| 394 | ||
| 395 | $row = \mysqli_fetch_assoc($this->_result); |
|
| 396 | if ($row) { |
|
| 397 | return Arrayy::create($this->cast($row)); |
|
| 398 | } |
|
| 399 | ||
| 400 | return false; |
|
| 401 | } |
|
| 402 | ||
| 403 | /** |
|
| 404 | * alias for "Result->fetchAll()" |
|