ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Settings for LO courses. More...
Public Member Functions | |
__construct ($a_container_id) | |
Constructor. More... | |
getContainerId () | |
getSettings () | |
get objective settings More... | |
getAssignments () | |
Get assignments. More... | |
getAssignmentsByType ($a_type) | |
getTests () | |
Get all assigned tests. More... | |
getTestByObjective ($a_objective_id, $a_type) | |
isSeparateTest ($a_test_ref_id) | |
getTypeByTest ($a_test_ref_id) | |
Get test type by test id. More... | |
getAssignmentByObjective ($a_objective_id, $a_type) | |
Get assignment by objective. More... | |
toXml (ilXmlWriter $writer, $a_objective_id) | |
to xml More... | |
Static Public Member Functions | |
static | getInstance ($a_container_id) |
Get instance by container id. More... | |
static | lookupContainerForTest ($a_test_ref_id) |
static | deleteByContainer ($a_container_id) |
Delete assignments by container id (obj_id of course) type $ilDB. More... | |
static | lookupObjectivesForTest ($a_test_ref_id) |
Get all objectives that are assigned to given test. More... | |
Protected Member Functions | |
readTestAssignments () | |
Read assignments type $ilDB. More... | |
Private Attributes | |
$container_id = 0 | |
$assignments = array() | |
$settings = null | |
Static Private Attributes | |
static | $instances = array() |
ilLOTestAssignments::__construct | ( | $a_container_id | ) |
Constructor.
type | $a_container_id |
Definition at line 24 of file class.ilLOTestAssignments.php.
References ilLOSettings\getInstanceByObjId(), readTestAssignments(), and settings().
|
static |
Delete assignments by container id (obj_id of course) type $ilDB.
type | $a_container_id |
Definition at line 94 of file class.ilLOTestAssignments.php.
ilLOTestAssignments::getAssignmentByObjective | ( | $a_objective_id, | |
$a_type | |||
) |
Get assignment by objective.
type | $a_objective_id | |
type | initial or final |
Definition at line 241 of file class.ilLOTestAssignments.php.
References $a_type.
Referenced by getTestByObjective().
ilLOTestAssignments::getAssignments | ( | ) |
Get assignments.
Definition at line 84 of file class.ilLOTestAssignments.php.
References $assignments.
Referenced by toXml().
ilLOTestAssignments::getAssignmentsByType | ( | $a_type | ) |
ilLOTestAssignments::getContainerId | ( | ) |
Definition at line 66 of file class.ilLOTestAssignments.php.
References $container_id.
Referenced by readTestAssignments().
|
static |
Get instance by container id.
type | $a_container_id |
Definition at line 39 of file class.ilLOTestAssignments.php.
Referenced by ilLOTestQuestionAdapter\__construct(), ilLOEditorStatus\__construct(), ilCourseObjectiveMaterials\_getAssignableMaterials(), ilLOMemberTestResultTableGUI\createTestResultLink(), ilLOEditorGUI\deleteAssignments(), ilLOTestAssignmentForm\getAssignableTests(), ilTestLearningObjectivesStatusGUI\getUsersObjectivesStatus(), ilCourseObjective\ilClone(), ilLOTestAssignmentForm\initForm(), ilContainerObjectiveGUI\initTestAssignments(), ilLOUtils\lookupObjectiveRequiredPercentage(), ilLOTestQuestionAdapter\lookupRelevantObjectiveIdsForTest(), ilCourseObjectivesTableGUI\parse(), ilContainerObjectiveGUI\parseLOUserResults(), ilLOTestAssignmentTableGUI\parseMultipleAssignments(), ilPortfolioPageGUI\parseObjectives(), ilCourseObjectiveResult\reset(), ilContainerObjectiveGUI\showMaterials(), and ilCourseObjective\toXml().
ilLOTestAssignments::getSettings | ( | ) |
get objective settings
Definition at line 75 of file class.ilLOTestAssignments.php.
References $settings.
Referenced by getTestByObjective(), getTests(), getTypeByTest(), and isSeparateTest().
ilLOTestAssignments::getTestByObjective | ( | $a_objective_id, | |
$a_type | |||
) |
type | $a_objective_id | |
type | $a_type |
Definition at line 144 of file class.ilLOTestAssignments.php.
References $a_type, getAssignmentByObjective(), getSettings(), ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.
ilLOTestAssignments::getTests | ( | ) |
Get all assigned tests.
Definition at line 120 of file class.ilLOTestAssignments.php.
References array, and getSettings().
ilLOTestAssignments::getTypeByTest | ( | $a_test_ref_id | ) |
Get test type by test id.
type | $a_test_ref_id |
Definition at line 194 of file class.ilLOTestAssignments.php.
References getSettings(), ilLOSettings\TYPE_TEST_INITIAL, ilLOSettings\TYPE_TEST_QUALIFIED, and ilLOSettings\TYPE_TEST_UNDEFINED.
ilLOTestAssignments::isSeparateTest | ( | $a_test_ref_id | ) |
Definition at line 171 of file class.ilLOTestAssignments.php.
References getSettings().
|
static |
type | $a_test_ref_id |
Definition at line 52 of file class.ilLOTestAssignments.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLOSettings\isObjectiveTest().
|
static |
Get all objectives that are assigned to given test.
int | $a_test_ref_id |
Definition at line 308 of file class.ilLOTestAssignments.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilTestLP\resetCustomLPDataForUserIds().
|
protected |
Read assignments type $ilDB.
Definition at line 261 of file class.ilLOTestAssignments.php.
References $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, and getContainerId().
Referenced by __construct().
ilLOTestAssignments::toXml | ( | ilXmlWriter | $writer, |
$a_objective_id | |||
) |
to xml
ilXmlWriter | $writer |
Definition at line 281 of file class.ilLOTestAssignments.php.
References array, getAssignments(), ilLOXmlWriter\TYPE_TST_PO, and ilXmlWriter\xmlElement().
|
private |
Definition at line 15 of file class.ilLOTestAssignments.php.
Referenced by getAssignments().
|
private |
Definition at line 14 of file class.ilLOTestAssignments.php.
Referenced by getContainerId().
|
staticprivate |
Definition at line 12 of file class.ilLOTestAssignments.php.
|
private |
Definition at line 17 of file class.ilLOTestAssignments.php.
Referenced by getSettings().