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

Public Member Functions | |
| __construct ($settings=array(), $generate=false) | |
| connect () | |
| dispose () | |
| generate_users () | |
| generate_data () | |
| generate_courses () | |
| generate_modules ($courses) | |
| generate_questions ($courses, $modules) | |
| generate_role_assignments ($users, $courses) | |
| generate_forum_posts ($course_users, $modules) | |
| generate_grades ($course_users, $courses, $modules) | |
| generate_module_content ($course_users, $courses, $modules) | |
| verbose ($string) | |
| data_cleanup () | |
| get ($setting) | |
| set ($setting, $value) | |
| get_module_type ($modulename) | |
Data Fields | |
| $modules_to_ignore = array('hotpot', 'lams', 'journal', 'scorm', 'exercise', 'dialogue') | |
| $modules_list | |
| $resource_types = array('text', 'file', 'html', 'repository', 'directory', 'ims') | |
| $glossary_formats = array('continuous', 'encyclopedia', 'entrylist', 'faq', 'fullwithauthor', 'fullwithoutauthor', 'dictionary') | |
| $assignment_types = array('upload', 'uploadsingle', 'online', 'offline') | |
| $forum_types = array('general') | |
| $resource_type_counter = 0 | |
| $assignment_type_counter = 0 | |
| $forum_type_counter = 0 | |
| $settings = array() | |
| $eolchar = '<br />' | |
| $do_generation = false | |
| $starttime | |
| $original_db | |
Controller class for data generation
Definition at line 38 of file locallib.php.
| __construct | ( | $ | settings = array(), |
| $ | generate = false |
||
| ) |
Reimplemented in generator_cli.
Definition at line 72 of file locallib.php.

| connect | ( | ) |
| data_cleanup | ( | ) |
Attempts to delete all generated test data. WARNING: THIS WILL COMPLETELY MESS UP A "REAL" SITE, AND IS INTENDED ONLY FOR DEVELOPMENT PURPOSES
Definition at line 1011 of file locallib.php.

| dispose | ( | ) |
| generate_courses | ( | ) |
Definition at line 339 of file locallib.php.


| generate_data | ( | ) |
FINISHING SCRIPT
Reimplemented in generator_cli.
Definition at line 275 of file locallib.php.


| generate_forum_posts | ( | $ | course_users, |
| $ | modules | ||
| ) |
Definition at line 732 of file locallib.php.


| generate_grades | ( | $ | course_users, |
| $ | courses, | ||
| $ | modules | ||
| ) |
ASSIGNMENT GRADES GENERATION
QUIZ GRADES GENERATION
Definition at line 816 of file locallib.php.


| generate_module_content | ( | $ | course_users, |
| $ | courses, | ||
| $ | modules | ||
| ) |
Definition at line 880 of file locallib.php.


| generate_modules | ( | $ | courses | ) |
Definition at line 381 of file locallib.php.


| generate_questions | ( | $ | courses, |
| $ | modules | ||
| ) |
Definition at line 617 of file locallib.php.


| generate_role_assignments | ( | $ | users, |
| $ | courses | ||
| ) |
Definition at line 693 of file locallib.php.


| generate_users | ( | ) |
USER GENERATION
Definition at line 190 of file locallib.php.


| get | ( | $ | setting | ) |
Definition at line 1025 of file locallib.php.
| get_module_type | ( | $ | modulename | ) |
| set | ( | $ | setting, |
| $ | value | ||
| ) |
Definition at line 1033 of file locallib.php.
| verbose | ( | $ | string | ) |
If verbose is switched on, prints a string terminated by the global eolchar string.
| string | $string | The string to STDOUT |
Definition at line 1000 of file locallib.php.

| $assignment_type_counter = 0 |
Definition at line 63 of file locallib.php.
| $assignment_types = array('upload', 'uploadsingle', 'online', 'offline') |
Definition at line 59 of file locallib.php.
| $do_generation = false |
Definition at line 68 of file locallib.php.
| $eolchar = '<br />' |
Reimplemented in generator_web, and generator_cli.
Definition at line 67 of file locallib.php.
| $forum_type_counter = 0 |
Definition at line 64 of file locallib.php.
| $forum_types = array('general') |
Definition at line 60 of file locallib.php.
| $glossary_formats = array('continuous', 'encyclopedia', 'entrylist', 'faq', 'fullwithauthor', 'fullwithoutauthor', 'dictionary') |
Definition at line 58 of file locallib.php.
| $modules_list |
array('forum' => 'forum', 'assignment' => 'assignment', 'chat' => 'chat', 'data' => 'data', 'glossary' => 'glossary', 'quiz' => 'quiz', 'comments' => 'comments', 'feedback' => 'feedback', 'label' => 'label', 'lesson' => 'lesson', 'chat' => 'chat', 'choice' => 'choice', 'resource' => 'resource', 'survey' => 'survey', 'wiki' => 'wiki', 'workshop' => 'workshop')
Definition at line 40 of file locallib.php.
| $modules_to_ignore = array('hotpot', 'lams', 'journal', 'scorm', 'exercise', 'dialogue') |
Definition at line 39 of file locallib.php.
| $original_db |
Definition at line 70 of file locallib.php.
| $resource_type_counter = 0 |
Definition at line 62 of file locallib.php.
| $resource_types = array('text', 'file', 'html', 'repository', 'directory', 'ims') |
Definition at line 57 of file locallib.php.
| $settings = array() |
Definition at line 66 of file locallib.php.
| $starttime |
Definition at line 69 of file locallib.php.