Simple class that implements the moodle_recordset API based on an array of test data.
More...
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/tests/testquestionattemptstep.php for an example of how this is used.
- Copyright
- 2011 The Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
question_test_recordset::__construct |
( |
array |
$table | ) |
|
◆ close()
question_test_recordset::close |
( |
| ) |
|
Did we reach the end?
- Return values
-
boolean | Free resources and connections, recordset can not be used anymore. |
void | |
Reimplemented from moodle_recordset.
◆ rewind()
moodle_recordset::rewind |
( |
| ) |
|
|
inherited |
Returns current record - fields as object properties, lowercase.
- Return values
-
object | Returns the key of current row |
int | current row Moves forward to next row |
void | Rewinds are not supported! |
void | |
The documentation for this class was generated from the following file: