| [ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 87 lines (3 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
core_question_generator:: (3 methods):
reset()
create_question_category()
create_question()
Class: core_question_generator - X-Ref
Quiz module test data generator class| reset() X-Ref |
| create_question_category($record = null) X-Ref |
| Create a new question category. param: array|stdClass $record return: stdClass question_categories record. |
| create_question($qtype, $which = null, $overrides = null) X-Ref |
| Create a new question. The question is initialised using one of the examples from the appropriate {@link question_test_helper} subclass. Then, any files you want to change from the value in the base example you can override using $overrides. param: string $qtype the question type to create an example of. param: string $which as for the corresponding argument of param: array|stdClass $overrides any fields that should be different from the base example. |
| Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |