|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct (array $table) | |
| __destruct () | |
| current () | |
| key () | |
| next () | |
| valid () | |
| close () | |
Protected Attributes | |
| $records | |
Simple class that implements the moodle_recordset API based on an array of test data.
See the question_attempt_step_db_test class in question/engine/simpletest/testquestionattemptstep.php for an example of how this is used.
Definition at line 566 of file simpletestlib.php.
| __construct | ( | array $ | table | ) |
Constructor
| $table | as for testing_db_record_builder::build_db_records() but does not need a unique first column. |
Definition at line 574 of file simpletestlib.php.
| __destruct | ( | ) |
| close | ( | ) |
Did we reach the end?
Reimplemented from moodle_recordset.
Definition at line 614 of file simpletestlib.php.

| current | ( | ) |
| key | ( | ) |
Definition at line 598 of file simpletestlib.php.


| next | ( | ) |
Definition at line 606 of file simpletestlib.php.
| valid | ( | ) |
$records [protected] |
Definition at line 567 of file simpletestlib.php.