26 require_once
'./Modules/Test/classes/class.ilObjTest.php';
29 $test_object->setType(
'tst');
30 $test_object->setTitle(
'Prüfung');
31 $test_object->setDescription(
"");
32 $test_object->create(
true);
33 $test_object->createReference();
34 $test_object->putInTree($input_params[
'crsRefId']);
35 $test_object->setPermissions($input_params[
'crsRefId']);
36 $test_object->setFixedParticipants(1);
37 $test_object->createMetaData();
38 $test_object->updateMetaData();
39 $test_object->saveToDb();
41 $retval =
array($output_params[0] => $test_object->getRefId());
54 require_once
'./Modules/Test/classes/class.ilObjTest.php';
61 $usr_id_list =
array();
63 if(isset($input_params[
'usrIdList']))
65 $usr_id_list = $input_params[
'usrIdList'];
67 if(isset($input_params[
'discloseMap']))
69 foreach($input_params[
'discloseMap'] as $map_entry)
71 $usr_id_list[] = $map_entry[
'Anon User'];
75 $test_object =
new ilObjTest($input_params[
'tstRefId']);
76 foreach($usr_id_list as $user_id)
78 $test_object->inviteUser($user_id);
Class ilModulesTestTasks.
static createTestInCourse($context, $params)
Create styles array
The data for the language used.
static assignUsersToTest($context, $params)