ILIAS
Release_5_0_x_branch Revision 61816
|
Settings for LO courses. More...
Public Member Functions | |
worksWithInitialTest () | |
Check if the loc is configured for initial tests. | |
isGeneralQualifiedTestVisible () | |
Check if qualified test for all objectives is visible. | |
setGeneralQualifiedTestVisibility ($a_stat) | |
Check if qualified test for all objectives is visible. | |
isQualifiedTestPerObjectiveVisible () | |
setQualifiedTestPerObjectiveVisibility ($a_stat) | |
settingsExist () | |
getObjId () | |
setType ($a_type) | |
getType () | |
getTestByType ($a_type) | |
getTests () | |
Get assigned tests. | |
isRandomTestType ($a_type) | |
Check if test is of type random test. | |
setInitialTest ($a_id) | |
set initial test id | |
getInitialTest () | |
setQualifiedTest ($a_id) | |
getQualifiedTest () | |
resetResults ($a_status) | |
isResetResultsEnabled () | |
create () | |
Create new entry. | |
update () | |
update settings type $ilDB | |
updateStartObjects (ilContainerStartObjects $start) | |
Update start objects Depends on course objective settings. |
Static Public Member Functions | |
static | getInstanceByObjId ($a_obj_id) |
get singleton instance | |
static | isObjectiveTest ($a_trst_ref_id) |
Check if test ref_id is used in an objective course. | |
static | cloneSettings ($a_copy_id, $a_container_id, $a_new_container_id) |
Clone settings. |
Data Fields | |
const | TYPE_TEST_INITIAL = 1 |
const | TYPE_TEST_QUALIFIED = 2 |
const | QT_VISIBLE_ALL = 0 |
const | QT_VISIBLE_OBJECTIVE = 1 |
const | LOC_INITIAL_ALL = 1 |
const | LOC_INITIAL_SEL = 2 |
const | LOC_QUALIFIED = 3 |
const | LOC_PRACTISE = 4 |
Protected Member Functions | |
__construct ($a_cont_id) | |
Constructor. | |
read () | |
Read. |
Private Attributes | |
$container_id = 0 | |
$type = 0 | |
$initial_test = 0 | |
$qualified_test = 0 | |
$qt_visible_all = true | |
$qt_visible_lo = false | |
$reset_results = true | |
$entry_exists = false |
Static Private Attributes | |
static | $instances = array() |
|
protected |
Constructor.
int | $a_cont_id |
Definition at line 43 of file class.ilLOSettings.php.
References read().
|
static |
Clone settings.
type | $a_copy_id | |
type | $a_container_id | |
type | $a_new_container_id |
Definition at line 88 of file class.ilLOSettings.php.
References $options, ilCopyWizardOptions\_getInstance(), and getInstanceByObjId().
ilLOSettings::create | ( | ) |
Create new entry.
Definition at line 260 of file class.ilLOSettings.php.
References $ilDB, $query, getInitialTest(), getObjId(), getQualifiedTest(), getType(), isGeneralQualifiedTestVisible(), isQualifiedTestPerObjectiveVisible(), and isResetResultsEnabled().
Referenced by update().
ilLOSettings::getInitialTest | ( | ) |
Definition at line 232 of file class.ilLOSettings.php.
References $initial_test.
Referenced by create(), getTestByType(), getTests(), read(), update(), and updateStartObjects().
|
static |
get singleton instance
int | $a_obj_id |
Definition at line 54 of file class.ilLOSettings.php.
Referenced by ilLOTestQuestionAdapter\__construct(), ilLOTestAssignmentTableGUI\__construct(), ilLOEditorStatus\__construct(), ilLOEditorGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilCourseObjectiveQuestionAssignmentTableGUI\__construct(), ilCourseObjectiveMaterials\_getAssignableMaterials(), cloneSettings(), ilLOEditorGUI\confirmDeleteTest(), ilLOEditorGUI\deleteTest(), ilLOEditorStatus\getHTML(), ilContainerObjectiveGUI\getMainContent(), ilCourseObjectivesGUI\ilCourseObjectivesGUI(), ilLOEditorGUI\initSettingsForm(), ilLOUtils\isCompleted(), ilLOUtils\lookupMaxAttempts(), ilLOUtils\lookupObjectiveRequiredPercentage(), ilObjCourseGUI\redirectLocToTestConfirmation(), ilObjCourseGUI\redirectLocToTestObject(), ilPortfolioPageGUI\renderMyCourses(), ilCourseObjectiveResult\reset(), ilTestLP\resetCustomLPDataForUserIds(), ilObjCourseGUI\resetObject(), ilLOEditorGUI\saveSettings(), ilLOEditorGUI\saveTest(), ilLOEditorGUI\setTabs(), ilContainerObjectiveGUI\showObjectives(), and ilLOEditorGUI\testOverview().
ilLOSettings::getObjId | ( | ) |
Definition at line 165 of file class.ilLOSettings.php.
References $container_id.
Referenced by create(), read(), and update().
ilLOSettings::getQualifiedTest | ( | ) |
Definition at line 242 of file class.ilLOSettings.php.
References $qualified_test.
Referenced by create(), getTestByType(), getTests(), read(), update(), and updateStartObjects().
ilLOSettings::getTestByType | ( | $a_type | ) |
Definition at line 181 of file class.ilLOSettings.php.
References getInitialTest(), and getQualifiedTest().
Referenced by isRandomTestType().
ilLOSettings::getTests | ( | ) |
Get assigned tests.
Definition at line 197 of file class.ilLOSettings.php.
References $tests, getInitialTest(), and getQualifiedTest().
ilLOSettings::getType | ( | ) |
Definition at line 175 of file class.ilLOSettings.php.
References $type.
Referenced by create(), update(), updateStartObjects(), and worksWithInitialTest().
ilLOSettings::isGeneralQualifiedTestVisible | ( | ) |
Check if qualified test for all objectives is visible.
Definition at line 131 of file class.ilLOSettings.php.
References $qt_visible_all.
Referenced by create(), and update().
|
static |
Check if test ref_id is used in an objective course.
int | ref_id |
Definition at line 67 of file class.ilLOSettings.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilTestOutputGUI\getObjectiveOrientedContainerId(), ilObjTestListGUI\modifyTitleLink(), and ilTestLP\resetCustomLPDataForUserIds().
ilLOSettings::isQualifiedTestPerObjectiveVisible | ( | ) |
Definition at line 146 of file class.ilLOSettings.php.
References $qt_visible_lo.
Referenced by create(), and update().
ilLOSettings::isRandomTestType | ( | $a_type | ) |
Check if test is of type random test.
type | $a_type |
Definition at line 216 of file class.ilLOSettings.php.
References ilObject\_lookupObjId(), ilObjTest\_lookupRandomTest(), and getTestByType().
ilLOSettings::isResetResultsEnabled | ( | ) |
Definition at line 252 of file class.ilLOSettings.php.
References $reset_results.
Referenced by create(), and update().
|
protected |
Read.
Definition at line 354 of file class.ilLOSettings.php.
References $GLOBALS, $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, getInitialTest(), getObjId(), getQualifiedTest(), resetResults(), setInitialTest(), setQualifiedTest(), setQualifiedTestPerObjectiveVisibility(), and setType().
Referenced by __construct().
ilLOSettings::resetResults | ( | $a_status | ) |
Definition at line 247 of file class.ilLOSettings.php.
Referenced by read().
ilLOSettings::setGeneralQualifiedTestVisibility | ( | $a_stat | ) |
Check if qualified test for all objectives is visible.
Definition at line 140 of file class.ilLOSettings.php.
ilLOSettings::setInitialTest | ( | $a_id | ) |
set initial test id
type | $a_id |
Definition at line 227 of file class.ilLOSettings.php.
Referenced by read().
ilLOSettings::setQualifiedTest | ( | $a_id | ) |
Definition at line 237 of file class.ilLOSettings.php.
Referenced by read().
ilLOSettings::setQualifiedTestPerObjectiveVisibility | ( | $a_stat | ) |
Definition at line 151 of file class.ilLOSettings.php.
Referenced by read().
ilLOSettings::settingsExist | ( | ) |
ilLOSettings::setType | ( | $a_type | ) |
Definition at line 170 of file class.ilLOSettings.php.
Referenced by read().
ilLOSettings::update | ( | ) |
update settings type $ilDB
Definition at line 282 of file class.ilLOSettings.php.
References $ilDB, $query, create(), getInitialTest(), getObjId(), getQualifiedTest(), getType(), isGeneralQualifiedTestVisible(), isQualifiedTestPerObjectiveVisible(), and isResetResultsEnabled().
ilLOSettings::updateStartObjects | ( | ilContainerStartObjects | $start | ) |
Update start objects Depends on course objective settings.
ilContainerStartObjects |
Definition at line 309 of file class.ilLOSettings.php.
References ilContainerStartObjects\add(), ilContainerStartObjects\deleteItem(), ilContainerStartObjects\exists(), getInitialTest(), getQualifiedTest(), and getType().
ilLOSettings::worksWithInitialTest | ( | ) |
Check if the loc is configured for initial tests.
Definition at line 119 of file class.ilLOSettings.php.
References getType().
|
private |
Definition at line 27 of file class.ilLOSettings.php.
Referenced by getObjId().
|
private |
Definition at line 36 of file class.ilLOSettings.php.
Referenced by settingsExist().
|
private |
Definition at line 29 of file class.ilLOSettings.php.
Referenced by getInitialTest().
|
staticprivate |
Definition at line 25 of file class.ilLOSettings.php.
|
private |
Definition at line 31 of file class.ilLOSettings.php.
Referenced by isGeneralQualifiedTestVisible().
|
private |
Definition at line 32 of file class.ilLOSettings.php.
Referenced by isQualifiedTestPerObjectiveVisible().
|
private |
Definition at line 30 of file class.ilLOSettings.php.
Referenced by getQualifiedTest().
|
private |
Definition at line 33 of file class.ilLOSettings.php.
Referenced by isResetResultsEnabled().
|
private |
Definition at line 28 of file class.ilLOSettings.php.
Referenced by getType().
const ilLOSettings::LOC_INITIAL_ALL = 1 |
Definition at line 19 of file class.ilLOSettings.php.
Referenced by ilLOEditorGUI\initSettingsForm().
const ilLOSettings::LOC_INITIAL_SEL = 2 |
Definition at line 20 of file class.ilLOSettings.php.
Referenced by ilLOEditorGUI\initSettingsForm(), and ilContainerObjectiveGUI\renderObjective().
const ilLOSettings::LOC_PRACTISE = 4 |
Definition at line 22 of file class.ilLOSettings.php.
Referenced by ilLOEditorGUI\initSettingsForm().
const ilLOSettings::LOC_QUALIFIED = 3 |
Definition at line 21 of file class.ilLOSettings.php.
Referenced by ilLOEditorGUI\initSettingsForm().
const ilLOSettings::QT_VISIBLE_ALL = 0 |
Definition at line 15 of file class.ilLOSettings.php.
Referenced by ilLOEditorGUI\initSettingsForm(), and ilLOEditorGUI\saveSettings().
const ilLOSettings::QT_VISIBLE_OBJECTIVE = 1 |
Definition at line 16 of file class.ilLOSettings.php.
Referenced by ilLOEditorGUI\initSettingsForm(), and ilLOEditorGUI\saveSettings().
const ilLOSettings::TYPE_TEST_INITIAL = 1 |
Definition at line 12 of file class.ilLOSettings.php.
Referenced by ilLOEditorGUI\confirmDeleteTest(), ilLOEditorGUI\deleteTest(), ilLOEditorStatus\getFirstFailedStep(), ilCourseObjectivesGUI\initFormRandom(), ilLOEditorGUI\initTestForm(), ilLOTestQuestionAdapter\initUserResult(), ilCourseObjectivesGUI\initWizard(), ilCourseObjectivesTableGUI\parse(), ilCourseObjectivesGUI\saveRandom(), ilCourseObjectivesGUI\selfAssessmentAssignment(), ilContainerObjectiveGUI\showObjectives(), ilLOEditorGUI\testOverview(), ilLOEditorGUI\testSettings(), and ilLOTestQuestionAdapter\updateRandomQuestions().
const ilLOSettings::TYPE_TEST_QUALIFIED = 2 |
Definition at line 13 of file class.ilLOSettings.php.
Referenced by ilLOEditorGUI\confirmDeleteTest(), ilLOEditorGUI\deleteTest(), ilCourseObjectivesGUI\finalTestAssignment(), ilLOEditorStatus\getFirstFailedStep(), ilLOEditorGUI\initTestForm(), ilLOTestQuestionAdapter\initUserResult(), ilCourseObjectivesGUI\initWizard(), ilLOUtils\lookupObjectiveRequiredPercentage(), ilCourseObjectivesTableGUI\parse(), ilCourseObjectivesGUI\saveRandom(), ilLOEditorGUI\testOverview(), ilLOEditorGUI\testSettings(), and ilLOTestQuestionAdapter\updateRandomQuestions().