@@ -176,8 +176,8 @@ be aware of the tradeoffs associated with it.
176
176
$csv = $file->openFile('w');
177
177
178
178
while ($row = $query->getUnbufferedRow('array'))
179
- {
180
- $csv->fputcsv($row);
179
+ {
180
+ $csv->fputcsv($row);
181
181
}
182
182
183
183
$db->resultMode = MYSQLI_STORE_RESULT; // return to default mode
@@ -364,9 +364,9 @@ Class Reference
364
364
365
365
.. php :method :: getResult([$type = 'object'])
366
366
367
- :param string $type: Type of requested results - array, object, or class name
368
- :returns: Array containing the fetched rows
369
- :rtype: array
367
+ :param string $type: Type of requested results - array, object, or class name
368
+ :returns: Array containing the fetched rows
369
+ :rtype: array
370
370
371
371
A wrapper for the ``getResultArray() ``, ``getResultObject() ``
372
372
and ``getCustomResultObject() `` methods.
@@ -375,8 +375,8 @@ Class Reference
375
375
376
376
.. php :method :: getResultArray()
377
377
378
- :returns: Array containing the fetched rows
379
- :rtype: array
378
+ :returns: Array containing the fetched rows
379
+ :rtype: array
380
380
381
381
Returns the query results as an array of rows, where each
382
382
row is itself an associative array.
@@ -385,8 +385,8 @@ Class Reference
385
385
386
386
.. php :method :: getResultObject()
387
387
388
- :returns: Array containing the fetched rows
389
- :rtype: array
388
+ :returns: Array containing the fetched rows
389
+ :rtype: array
390
390
391
391
Returns the query results as an array of rows, where each
392
392
row is an object of type ``stdClass ``.
@@ -395,19 +395,19 @@ Class Reference
395
395
396
396
.. php :method :: getCustomResultObject($class_name)
397
397
398
- :param string $class_name: Class name for the resulting rows
399
- :returns: Array containing the fetched rows
400
- :rtype: array
398
+ :param string $class_name: Class name for the resulting rows
399
+ :returns: Array containing the fetched rows
400
+ :rtype: array
401
401
402
402
Returns the query results as an array of rows, where each
403
403
row is an instance of the specified class.
404
404
405
405
.. php :method :: getRow([$n = 0[, $type = 'object']])
406
406
407
- :param int $n: Index of the query results row to be returned
408
- :param string $type: Type of the requested result - array, object, or class name
409
- :returns: The requested row or null if it doesn't exist
410
- :rtype: mixed
407
+ :param int $n: Index of the query results row to be returned
408
+ :param string $type: Type of the requested result - array, object, or class name
409
+ :returns: The requested row or null if it doesn't exist
410
+ :rtype: mixed
411
411
412
412
A wrapper for the ``getRowArray() ``, ``getRowObject() `` and
413
413
``getCustomRowObject() `` methods.
@@ -416,9 +416,9 @@ Class Reference
416
416
417
417
.. php :method :: getUnbufferedRow([$type = 'object'])
418
418
419
- :param string $type: Type of the requested result - array, object, or class name
420
- :returns: Next row from the result set or null if it doesn't exist
421
- :rtype: mixed
419
+ :param string $type: Type of the requested result - array, object, or class name
420
+ :returns: Next row from the result set or null if it doesn't exist
421
+ :rtype: mixed
422
422
423
423
Fetches the next result row and returns it in the
424
424
requested form.
@@ -427,19 +427,19 @@ Class Reference
427
427
428
428
.. php :method :: getRowArray([$n = 0])
429
429
430
- :param int $n: Index of the query results row to be returned
431
- :returns: The requested row or null if it doesn't exist
432
- :rtype: array
430
+ :param int $n: Index of the query results row to be returned
431
+ :returns: The requested row or null if it doesn't exist
432
+ :rtype: array
433
433
434
434
Returns the requested result row as an associative array.
435
435
436
436
Usage: see `Result Rows `_.
437
437
438
438
.. php :method :: getRowObject([$n = 0])
439
439
440
- :param int $n: Index of the query results row to be returned
441
- :returns: The requested row or null if it doesn't exist
442
- :rtype: stdClass
440
+ :param int $n: Index of the query results row to be returned
441
+ :returns: The requested row or null if it doesn't exist
442
+ :rtype: stdClass
443
443
444
444
Returns the requested result row as an object of type
445
445
``stdClass ``.
@@ -448,99 +448,99 @@ Class Reference
448
448
449
449
.. php :method :: getCustomRowObject($n, $type)
450
450
451
- :param int $n: Index of the results row to return
452
- :param string $class_name: Class name for the resulting row
453
- :returns: The requested row or null if it doesn't exist
454
- :rtype: $type
451
+ :param int $n: Index of the results row to return
452
+ :param string $class_name: Class name for the resulting row
453
+ :returns: The requested row or null if it doesn't exist
454
+ :rtype: $type
455
455
456
456
Returns the requested result row as an instance of the
457
457
requested class.
458
458
459
459
.. php :method :: dataSeek([$n = 0])
460
460
461
- :param int $n: Index of the results row to be returned next
462
- :returns: true on success, false on failure
463
- :rtype: bool
461
+ :param int $n: Index of the results row to be returned next
462
+ :returns: true on success, false on failure
463
+ :rtype: bool
464
464
465
465
Moves the internal results row pointer to the desired offset.
466
466
467
467
Usage: see `Result Helper Methods `_.
468
468
469
469
.. php :method :: setRow($key[, $value = null])
470
470
471
- :param mixed $key: Column name or array of key/value pairs
472
- :param mixed $value: Value to assign to the column, $key is a single field name
473
- :rtype: void
471
+ :param mixed $key: Column name or array of key/value pairs
472
+ :param mixed $value: Value to assign to the column, $key is a single field name
473
+ :rtype: void
474
474
475
475
Assigns a value to a particular column.
476
476
477
477
.. php :method :: getNextRow([$type = 'object'])
478
478
479
- :param string $type: Type of the requested result - array, object, or class name
480
- :returns: Next row of result set, or null if it doesn't exist
481
- :rtype: mixed
479
+ :param string $type: Type of the requested result - array, object, or class name
480
+ :returns: Next row of result set, or null if it doesn't exist
481
+ :rtype: mixed
482
482
483
483
Returns the next row from the result set.
484
484
485
485
.. php :method :: getPreviousRow([$type = 'object'])
486
486
487
- :param string $type: Type of the requested result - array, object, or class name
488
- :returns: Previous row of result set, or null if it doesn't exist
489
- :rtype: mixed
487
+ :param string $type: Type of the requested result - array, object, or class name
488
+ :returns: Previous row of result set, or null if it doesn't exist
489
+ :rtype: mixed
490
490
491
491
Returns the previous row from the result set.
492
492
493
493
.. php :method :: getFirstRow([$type = 'object'])
494
494
495
- :param string $type: Type of the requested result - array, object, or class name
496
- :returns: First row of result set, or null if it doesn't exist
497
- :rtype: mixed
495
+ :param string $type: Type of the requested result - array, object, or class name
496
+ :returns: First row of result set, or null if it doesn't exist
497
+ :rtype: mixed
498
498
499
499
Returns the first row from the result set.
500
500
501
501
.. php :method :: getLastRow([$type = 'object'])
502
502
503
- :param string $type: Type of the requested result - array, object, or class name
504
- :returns: Last row of result set, or null if it doesn't exist
505
- :rtype: mixed
503
+ :param string $type: Type of the requested result - array, object, or class name
504
+ :returns: Last row of result set, or null if it doesn't exist
505
+ :rtype: mixed
506
506
507
507
Returns the last row from the result set.
508
508
509
509
.. php :method :: getFieldCount()
510
510
511
- :returns: Number of fields in the result set
512
- :rtype: int
511
+ :returns: Number of fields in the result set
512
+ :rtype: int
513
513
514
514
Returns the number of fields in the result set.
515
515
516
516
Usage: see `Result Helper Methods `_.
517
517
518
518
.. php :method :: getFieldNames()
519
519
520
- :returns: Array of column names
521
- :rtype: array
520
+ :returns: Array of column names
521
+ :rtype: array
522
522
523
523
Returns an array containing the field names in the
524
524
result set.
525
525
526
526
.. php :method :: getFieldData()
527
527
528
- :returns: Array containing field meta-data
529
- :rtype: array
528
+ :returns: Array containing field meta-data
529
+ :rtype: array
530
530
531
531
Generates an array of ``stdClass `` objects containing
532
532
field meta-data.
533
533
534
534
.. php :method :: getNumRows()
535
535
536
- :returns: Number of rows in result set
537
- :rtype: int
536
+ :returns: Number of rows in result set
537
+ :rtype: int
538
538
539
539
Returns number of rows returned by the query
540
540
541
541
.. php :method :: freeResult()
542
542
543
- :rtype: void
543
+ :rtype: void
544
544
545
545
Frees a result set.
546
546
0 commit comments