| @@ 587-601 (lines=15) @@ | ||
| 584 | $columnData = ''; |
|
| 585 | ||
| 586 | $data = $this->fetchAllArrayy()->reverse(); |
|
| 587 | foreach ($data as $_row) { |
|
| 588 | ||
| 589 | if ($skipNullValues === true) { |
|
| 590 | if (isset($_row[$column]) === false) { |
|
| 591 | continue; |
|
| 592 | } |
|
| 593 | } else { |
|
| 594 | if (array_key_exists($column, $_row) === false) { |
|
| 595 | break; |
|
| 596 | } |
|
| 597 | } |
|
| 598 | ||
| 599 | $columnData = $_row[$column]; |
|
| 600 | break; |
|
| 601 | } |
|
| 602 | ||
| 603 | return $columnData; |
|
| 604 | } |
|
| @@ 612-625 (lines=14) @@ | ||
| 609 | ||
| 610 | $data = $this->fetchAllArray(); |
|
| 611 | ||
| 612 | foreach ($data as $_row) { |
|
| 613 | ||
| 614 | if ($skipNullValues === true) { |
|
| 615 | if (isset($_row[$column]) === false) { |
|
| 616 | continue; |
|
| 617 | } |
|
| 618 | } else { |
|
| 619 | if (array_key_exists($column, $_row) === false) { |
|
| 620 | break; |
|
| 621 | } |
|
| 622 | } |
|
| 623 | ||
| 624 | $columnData[] = $_row[$column]; |
|
| 625 | } |
|
| 626 | ||
| 627 | return $columnData; |
|
| 628 | } |
|