| @@ 105-112 (lines=8) @@ | ||
| 102 | protected function realFetchAll()/*# : array */ |
|
| 103 | { |
|
| 104 | $result = []; |
|
| 105 | while(true) { |
|
| 106 | $row = $this->getOneRow(); |
|
| 107 | if (is_array($row)) { |
|
| 108 | $result[] = $row; |
|
| 109 | } else { |
|
| 110 | break; |
|
| 111 | } |
|
| 112 | } |
|
| 113 | return $result; |
|
| 114 | } |
|
| 115 | ||
| @@ 123-130 (lines=8) @@ | ||
| 120 | { |
|
| 121 | $count = 0; |
|
| 122 | $result = []; |
|
| 123 | while ($count++ < $rowCount) { |
|
| 124 | $row = $this->getOneRow(); |
|
| 125 | if (is_array($row)) { |
|
| 126 | $result[] = $row; |
|
| 127 | } else { |
|
| 128 | break; |
|
| 129 | } |
|
| 130 | } |
|
| 131 | return $result; |
|
| 132 | } |
|
| 133 | ||