| @@ 253-275 (lines=23) @@ | ||
| 250 | /** |
|
| 251 | * {@inheritdoc} |
|
| 252 | */ |
|
| 253 | public function fetchAll($fetchMode = null, $fetchArgument = null, $ctorArgs = null) |
|
| 254 | { |
|
| 255 | $rows = []; |
|
| 256 | ||
| 257 | switch ($fetchMode) { |
|
| 258 | case \PDO::FETCH_CLASS: |
|
| 259 | while ($row = call_user_func_array([$this, 'fetch'], func_get_args())) { |
|
| 260 | $rows[] = $row; |
|
| 261 | } |
|
| 262 | break; |
|
| 263 | case \PDO::FETCH_COLUMN: |
|
| 264 | while ($row = $this->fetchColumn()) { |
|
| 265 | $rows[] = $row; |
|
| 266 | } |
|
| 267 | break; |
|
| 268 | default: |
|
| 269 | while ($row = $this->fetch($fetchMode)) { |
|
| 270 | $rows[] = $row; |
|
| 271 | } |
|
| 272 | } |
|
| 273 | ||
| 274 | return $rows; |
|
| 275 | } |
|
| 276 | ||
| 277 | /** |
|
| 278 | * {@inheritdoc} |
|
| @@ 238-260 (lines=23) @@ | ||
| 235 | /** |
|
| 236 | * {@inheritdoc} |
|
| 237 | */ |
|
| 238 | public function fetchAll($fetchMode = null, $fetchArgument = null, $ctorArgs = null) |
|
| 239 | { |
|
| 240 | $rows = []; |
|
| 241 | ||
| 242 | switch ($fetchMode) { |
|
| 243 | case PDO::FETCH_CLASS: |
|
| 244 | while ($row = call_user_func_array([$this, 'fetch'], func_get_args())) { |
|
| 245 | $rows[] = $row; |
|
| 246 | } |
|
| 247 | break; |
|
| 248 | case PDO::FETCH_COLUMN: |
|
| 249 | while ($row = $this->fetchColumn()) { |
|
| 250 | $rows[] = $row; |
|
| 251 | } |
|
| 252 | break; |
|
| 253 | default: |
|
| 254 | while ($row = $this->fetch($fetchMode)) { |
|
| 255 | $rows[] = $row; |
|
| 256 | } |
|
| 257 | } |
|
| 258 | ||
| 259 | return $rows; |
|
| 260 | } |
|
| 261 | ||
| 262 | /** |
|
| 263 | * {@inheritdoc} |
|
| @@ 336-358 (lines=23) @@ | ||
| 333 | /** |
|
| 334 | * {@inheritdoc} |
|
| 335 | */ |
|
| 336 | public function fetchAll($fetchMode = null, $fetchArgument = null, $ctorArgs = null) |
|
| 337 | { |
|
| 338 | $rows = []; |
|
| 339 | ||
| 340 | switch ($fetchMode) { |
|
| 341 | case PDO::FETCH_CLASS: |
|
| 342 | while ($row = call_user_func_array([$this, 'fetch'], func_get_args())) { |
|
| 343 | $rows[] = $row; |
|
| 344 | } |
|
| 345 | break; |
|
| 346 | case PDO::FETCH_COLUMN: |
|
| 347 | while ($row = $this->fetchColumn()) { |
|
| 348 | $rows[] = $row; |
|
| 349 | } |
|
| 350 | break; |
|
| 351 | default: |
|
| 352 | while ($row = $this->fetch($fetchMode)) { |
|
| 353 | $rows[] = $row; |
|
| 354 | } |
|
| 355 | } |
|
| 356 | ||
| 357 | return $rows; |
|
| 358 | } |
|
| 359 | ||
| 360 | /** |
|
| 361 | * {@inheritdoc} |
|