|
ILIAS
Release_3_10_x_branch Revision 61812
|
Data loader for load tests. More...
Collaboration diagram for ilDataLoader:Public Member Functions | |
| setEnableLog ($a_val) | |
| Set enable log (currently echoes directly to the screen) | |
| getEnableLog () | |
| Get enable log. | |
| log ($a_str) | |
| Log. | |
| generateUsers ($a_login_base="learner", $a_start=1, $a_end=1000, $a_firstname="John", $a_lastname_base="Learner", $a_pw="learnerpw", $a_email="de@de.de", $a_gender="m", $a_lang="en") | |
| Generate Users. | |
| generateCategories ($a_start=1, $a_end=500, $a_sub_cats_per_cat=10, $a_title_base="Category", $a_node="", $a_init_cnt=true, $a_depth=1) | |
| Generate Categories. | |
| generateCourses ($a_start=1, $a_end=500, $a_course_per_cat=10, $a_title_base="Course") | |
| Generate courses. | |
| generateFiles ($a_test_file, $a_files_per_course=10, $a_title_base="File") | |
| Generate files. | |
| generateCalendarEntries ($a_num_per_course=10) | |
| Generate Calendar Entries. | |
| loadSqlTemplate ($file) | |
| Load SQL Template. | |
| getline ($fp, $delim) | |
| Get line from file. | |
| createDump ($a_target_file, $a_dump_cmd, $a_db_user="root", $a_db_pw="", $a_db_name="loadtest") | |
| Create dump. | |
| writeUserCsv ($a_target_file, $a_user_base_name="learner") | |
| Write User CSV. | |
| writeCourseCsv ($a_target_file) | |
| Write Course CSV. | |
| writeCategoryCsv ($a_target_file) | |
| Write Category CSV. | |
| assignUsersAsCourseMembers ($a_user_login_base="learner", $a_start=1, $a_end=100) | |
| Assign users as course members. | |
| removeAllDesktopItems () | |
| Remove all desktop items. | |
| deactivateCalendarsOnPersonalDesktop () | |
| Deactivate calendars on personal desktops. | |
Data loader for load tests.
Initializes an ILIAS client with a number of users, objects etc.
Definition at line 12 of file class.ilDataLoader.php.
| ilDataLoader::assignUsersAsCourseMembers | ( | $a_user_login_base = "learner", |
|
$a_start = 1, |
|||
$a_end = 100 |
|||
| ) |
Assign users as course members.
Definition at line 481 of file class.ilDataLoader.php.
References $rest, ilCourseParticipants\_getInstanceByObjId(), ilUtil\_getObjectsByOperations(), ilObject\_lookupObjId(), and log().
Here is the call graph for this function:| ilDataLoader::createDump | ( | $a_target_file, | |
| $a_dump_cmd, | |||
$a_db_user = "root", |
|||
$a_db_pw = "", |
|||
$a_db_name = "loadtest" |
|||
| ) |
Create dump.
Definition at line 373 of file class.ilDataLoader.php.
Here is the call graph for this function:| ilDataLoader::deactivateCalendarsOnPersonalDesktop | ( | ) |
Deactivate calendars on personal desktops.
Definition at line 531 of file class.ilDataLoader.php.
References log().
Here is the call graph for this function:| ilDataLoader::generateCalendarEntries | ( | $a_num_per_course = 10 | ) |
Generate Calendar Entries.
| @return |
Definition at line 239 of file class.ilDataLoader.php.
References ilUtil\_getObjectsByOperations(), ilCalendarCategories\_lookupCategoryIdByObjId(), ilObject\_lookupObjId(), IL_CAL_DAY, IL_CAL_HOUR, IL_CAL_UNIX, and log().
Here is the call graph for this function:| ilDataLoader::generateCategories | ( | $a_start = 1, |
|
$a_end = 500, |
|||
$a_sub_cats_per_cat = 10, |
|||
$a_title_base = "Category", |
|||
$a_node = "", |
|||
$a_init_cnt = true, |
|||
$a_depth = 1 |
|||
| ) |
Generate Categories.
| @return |
Definition at line 93 of file class.ilDataLoader.php.
References log().
Here is the call graph for this function:| ilDataLoader::generateCourses | ( | $a_start = 1, |
|
$a_end = 500, |
|||
$a_course_per_cat = 10, |
|||
$a_title_base = "Course" |
|||
| ) |
Generate courses.
| @return |
Definition at line 149 of file class.ilDataLoader.php.
References log(), and ilUtil\sortArray().
Here is the call graph for this function:| ilDataLoader::generateFiles | ( | $a_test_file, | |
$a_files_per_course = 10, |
|||
$a_title_base = "File" |
|||
| ) |
Generate files.
| @return |
Definition at line 198 of file class.ilDataLoader.php.
References ilUtil\_getObjectsByOperations(), and log().
Here is the call graph for this function:| ilDataLoader::generateUsers | ( | $a_login_base = "learner", |
|
$a_start = 1, |
|||
$a_end = 1000, |
|||
$a_firstname = "John", |
|||
$a_lastname_base = "Learner", |
|||
$a_pw = "learnerpw", |
|||
$a_email = "de@de.de", |
|||
$a_gender = "m", |
|||
$a_lang = "en" |
|||
| ) |
Generate Users.
| @return |
Definition at line 55 of file class.ilDataLoader.php.
References $user, IL_PASSWD_PLAIN, log(), and ilUtil\now().
Here is the call graph for this function:| ilDataLoader::getEnableLog | ( | ) |
Get enable log.
Definition at line 30 of file class.ilDataLoader.php.
Referenced by log().
Here is the caller graph for this function:| ilDataLoader::getline | ( | $fp, | |
| $delim | |||
| ) |
Get line from file.
Definition at line 355 of file class.ilDataLoader.php.
References $result.
Referenced by loadSqlTemplate().
Here is the caller graph for this function:| ilDataLoader::loadSqlTemplate | ( | $file | ) |
Load SQL Template.
| @return |
Definition at line 288 of file class.ilDataLoader.php.
References $file, getline(), and log().
Here is the call graph for this function:| ilDataLoader::log | ( | $a_str | ) |
Log.
| @return |
Definition at line 41 of file class.ilDataLoader.php.
References getEnableLog().
Referenced by assignUsersAsCourseMembers(), createDump(), deactivateCalendarsOnPersonalDesktop(), generateCalendarEntries(), generateCategories(), generateCourses(), generateFiles(), generateUsers(), loadSqlTemplate(), removeAllDesktopItems(), writeCategoryCsv(), writeCourseCsv(), and writeUserCsv().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDataLoader::removeAllDesktopItems | ( | ) |
Remove all desktop items.
Definition at line 520 of file class.ilDataLoader.php.
References log().
Here is the call graph for this function:| ilDataLoader::setEnableLog | ( | $a_val | ) |
Set enable log (currently echoes directly to the screen)
| boolean | enable log |
Definition at line 20 of file class.ilDataLoader.php.
| ilDataLoader::writeCategoryCsv | ( | $a_target_file | ) |
Write Category CSV.
| @return |
Definition at line 454 of file class.ilDataLoader.php.
References $file, ilUtil\_getObjectsByOperations(), and log().
Here is the call graph for this function:| ilDataLoader::writeCourseCsv | ( | $a_target_file | ) |
Write Course CSV.
| @return |
Definition at line 425 of file class.ilDataLoader.php.
References $file, ilUtil\_getObjectsByOperations(), and log().
Here is the call graph for this function:| ilDataLoader::writeUserCsv | ( | $a_target_file, | |
$a_user_base_name = "learner" |
|||
| ) |
Write User CSV.
| @return |
Definition at line 394 of file class.ilDataLoader.php.
Here is the call graph for this function: