ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilLOEditorGUI. More...
Public Member Functions | |
__construct ($a_parent_obj) | |
Constructor. More... | |
executeCommand () | |
Execute command. More... | |
getParentObject () | |
getSettings () | |
Settings. More... | |
setTestType ($a_type) | |
getTestType () | |
Data Fields | |
const | TEST_TYPE_IT = 1 |
const | TEST_TYPE_QT = 2 |
const | TEST_NEW = 1 |
const | TEST_ASSIGN = 2 |
const | SETTINGS_TEMPLATE_IT = 'il_astpl_loc_initial' |
const | SETTINGS_TEMPLATE_QT = 'il_astpl_loc_qualified' |
Protected Member Functions | |
returnFromObjectives () | |
Return from objectives. More... | |
settings (ilPropertyFormGUI $form=null) | |
Objective Settings. More... | |
deleteAssignments ($a_type) | |
Delete assignments. More... | |
updateTestAssignments (ilLOSettings $settings) | |
Update Test assignments. More... | |
saveSettings () | |
initSettingsForm () | |
Init settings form. More... | |
materials () | |
testsOverview () | |
View test assignments () More... | |
testOverview () | |
Show test overview. More... | |
confirmDeleteTests () | |
Show delete test confirmation. More... | |
confirmDeleteTest () | |
Show delete confirmation screen. More... | |
deleteTests () | |
Delete test assignments. More... | |
deleteTest () | |
Delete test assignment. More... | |
testAssignment (ilPropertyFormGUI $form=null) | |
new test assignment More... | |
testSettings (ilPropertyFormGUI $form=null) | |
Show test settings. More... | |
applySettingsTemplate (ilObjTest $tst) | |
Apply auto generated setttings template. More... | |
updateStartObjects () | |
Add Test as start object. More... | |
saveMultiTestAssignment () | |
updateMaterialAssignments (ilObjTest $test) | |
saveTest () | |
Save Test. More... | |
listObjectives () | |
List all abvailable objectives. More... | |
showObjectiveCreation (ilPropertyFormGUI $form=null) | |
Show objective creation form. More... | |
initSimpleObjectiveForm () | |
Show objective creation form. More... | |
saveObjectiveCreation () | |
saveSorting () | |
save position More... | |
askDeleteObjectives () | |
Confirm delete objectives. More... | |
activateObjectives () | |
activate chosen objectives More... | |
deactivateObjectives () | |
activate chosen objectives More... | |
deleteObjectives () | |
Delete objectives type $rbacsystem. More... | |
showStatus ($a_section) | |
Show status panel. More... | |
setTabs ($a_section='') | |
Set tabs. More... | |
Private Attributes | |
$logger = null | |
$parent_obj | |
$settings = null | |
$lng = null | |
$ctrl = null | |
$test_type = 0 | |
Class ilLOEditorGUI.
ilLOEditorGUI: ilObjCourseGUI ilLOEditorGUI: ilCourseObjectivesGUI, ilContainerStartObjectsGUI, ilConditionHandlerGUI ilLOEditorGUI: ilLOPageGUI
Definition at line 19 of file class.ilLOEditorGUI.php.
ilLOEditorGUI::__construct | ( | $a_parent_obj | ) |
Constructor.
type | $a_parent_obj |
Definition at line 49 of file class.ilLOEditorGUI.php.
References $GLOBALS, ilLOSettings\getInstanceByObjId(), ilLoggerFactory\getLogger(), getParentObject(), and settings().
|
protected |
activate chosen objectives
Definition at line 1189 of file class.ilLOEditorGUI.php.
References ilCourseObjective\_getObjectiveIds(), ilLPStatusWrapper\_refreshStatus(), array, getParentObject(), and ilUtil\sendSuccess().
|
protected |
Apply auto generated setttings template.
ilObjTest | $tst |
Definition at line 834 of file class.ilLOEditorGUI.php.
References $template, ilSettingsTemplate\getAllSettingsTemplates(), ilObjAssessmentFolderGUI\getSettingsTemplateConfig(), getTestType(), and ilObjTest\setTemplate().
Referenced by saveMultiTestAssignment(), and saveTest().
|
protected |
Confirm delete objectives.
Definition at line 1160 of file class.ilLOEditorGUI.php.
References $_POST, $GLOBALS, $name, getParentObject(), ilLOEditorStatus\SECTION_OBJECTIVES, and showStatus().
|
protected |
Show delete confirmation screen.
Definition at line 635 of file class.ilLOEditorGUI.php.
References $GLOBALS, $settings, ilObject\_lookupObjId(), ilObject\_lookupTitle(), array, ilLOSettings\getInstanceByObjId(), getParentObject(), getTestType(), ilLOEditorStatus\SECTION_ITES, ilLOEditorStatus\SECTION_QTEST, ilUtil\sendFailure(), setTestType(), showStatus(), TEST_TYPE_IT, ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.
|
protected |
Show delete test confirmation.
Definition at line 586 of file class.ilLOEditorGUI.php.
References $GLOBALS, $settings, ilObject\_lookupObjId(), ilObject\_lookupTitle(), array, ilLOSettings\getInstanceByObjId(), getParentObject(), getTestType(), ilLOEditorStatus\SECTION_ITES, ilLOEditorStatus\SECTION_QTEST, ilUtil\sendFailure(), setTestType(), showStatus(), ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.
|
protected |
activate chosen objectives
Definition at line 1213 of file class.ilLOEditorGUI.php.
References ilCourseObjective\_getObjectiveIds(), ilLPStatusWrapper\_refreshStatus(), array, getParentObject(), and ilUtil\sendSuccess().
|
protected |
Delete assignments.
type | $a_type |
Definition at line 244 of file class.ilLOEditorGUI.php.
References $a_type, ilLOTestAssignments\getInstance(), and getParentObject().
Referenced by updateTestAssignments().
|
protected |
Delete objectives type $rbacsystem.
Definition at line 1239 of file class.ilLOEditorGUI.php.
References $_POST, ilLPStatusWrapper\_refreshStatus(), getParentObject(), and ilUtil\sendSuccess().
|
protected |
Delete test assignment.
Definition at line 722 of file class.ilLOEditorGUI.php.
References $GLOBALS, $settings, array, ilCourseObjectiveQuestion\deleteTest(), ilLOSettings\getInstanceByObjId(), getParentObject(), getTestType(), ilUtil\sendSuccess(), setTestType(), ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.
|
protected |
Delete test assignments.
Definition at line 680 of file class.ilLOEditorGUI.php.
References $GLOBALS, $settings, array, ilCourseObjectiveQuestion\deleteTest(), ilLOSettings\getInstanceByObjId(), getParentObject(), getTestType(), ilUtil\sendSuccess(), setTestType(), ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.
ilLOEditorGUI::executeCommand | ( | ) |
Execute command.
Definition at line 63 of file class.ilLOEditorGUI.php.
References $GLOBALS, $ilCtrl, $ret, ilPageObject\_exists(), array, ilObjStyleSheet\getContentStylePath(), ilObjStyleSheet\getEffectiveContentStyleId(), ilLOEditorStatus\getInstance(), getParentObject(), ilCourseObjective\lookupObjectiveTitle(), and setTabs().
ilLOEditorGUI::getParentObject | ( | ) |
Definition at line 200 of file class.ilLOEditorGUI.php.
References $parent_obj.
Referenced by __construct(), activateObjectives(), askDeleteObjectives(), confirmDeleteTest(), confirmDeleteTests(), deactivateObjectives(), deleteAssignments(), deleteObjectives(), deleteTest(), deleteTests(), executeCommand(), listObjectives(), materials(), saveMultiTestAssignment(), saveObjectiveCreation(), saveSettings(), saveSorting(), saveTest(), setTabs(), showStatus(), testAssignment(), testOverview(), testSettings(), testsOverview(), updateMaterialAssignments(), and updateStartObjects().
ilLOEditorGUI::getSettings | ( | ) |
Settings.
Definition at line 209 of file class.ilLOEditorGUI.php.
References $settings.
Referenced by initSettingsForm(), saveTest(), and updateStartObjects().
ilLOEditorGUI::getTestType | ( | ) |
Definition at line 219 of file class.ilLOEditorGUI.php.
References $test_type.
Referenced by applySettingsTemplate(), confirmDeleteTest(), confirmDeleteTests(), deleteTest(), deleteTests(), saveMultiTestAssignment(), saveTest(), testAssignment(), testOverview(), testSettings(), and testsOverview().
|
protected |
Init settings form.
Definition at line 365 of file class.ilLOEditorGUI.php.
References $form, getSettings(), ilLOSettings\HIDE_PASSED_OBJECTIVE_QST, ilLOSettings\MARK_PASSED_OBJECTIVE_QST, ilRadioOption\setInfo(), ilFormPropertyGUI\setRequired(), ilCheckboxInputGUI\setValue(), ilRadioGroupInputGUI\setValue(), ilLOSettings\TYPE_INITIAL_NONE, ilLOSettings\TYPE_INITIAL_PLACEMENT_ALL, ilLOSettings\TYPE_INITIAL_PLACEMENT_SELECTED, ilLOSettings\TYPE_INITIAL_QUALIFYING_ALL, ilLOSettings\TYPE_INITIAL_QUALIFYING_SELECTED, ilLOSettings\TYPE_QUALIFYING_ALL, and ilLOSettings\TYPE_QUALIFYING_SELECTED.
Referenced by saveSettings(), and settings().
|
protected |
Show objective creation form.
Definition at line 1097 of file class.ilLOEditorGUI.php.
References $form, $txt, and array.
Referenced by saveObjectiveCreation(), and showObjectiveCreation().
|
protected |
List all abvailable objectives.
Definition at line 1044 of file class.ilLOEditorGUI.php.
References $_SESSION, $GLOBALS, $table, ilCourseObjective\_getObjectiveIds(), getParentObject(), ilCourseObjectivesGUI\MODE_UNDEFINED, ilLOEditorStatus\SECTION_OBJECTIVES, showObjectiveCreation(), and showStatus().
Referenced by returnFromObjectives(), and saveSorting().
|
protected |
Definition at line 460 of file class.ilLOEditorGUI.php.
References $GLOBALS, array, getParentObject(), ilLOEditorStatus\SECTION_MATERIALS, and showStatus().
|
protected |
Return from objectives.
Definition at line 190 of file class.ilLOEditorGUI.php.
References $_SESSION, listObjectives(), and ilCourseObjectivesGUI\MODE_UNDEFINED.
|
protected |
Definition at line 887 of file class.ilLOEditorGUI.php.
References $form, $settings, applySettingsTemplate(), ilLOSettings\getInstanceByObjId(), getParentObject(), getTestType(), ilUtil\sendFailure(), ilUtil\sendSuccess(), setTestType(), testAssignment(), updateMaterialAssignments(), and updateStartObjects().
|
protected |
Definition at line 1114 of file class.ilLOEditorGUI.php.
References $form, $GLOBALS, $title, array, getParentObject(), initSimpleObjectiveForm(), ilLOEditorStatus\SECTION_OBJECTIVES, ilUtil\sendSuccess(), showObjectiveCreation(), and showStatus().
|
protected |
Definition at line 294 of file class.ilLOEditorGUI.php.
References $form, $settings, ilLPStatusWrapper\_refreshStatus(), ilLOSettings\getInstanceByObjId(), getParentObject(), initSettingsForm(), ilUtil\sendFailure(), ilUtil\sendInfo(), ilUtil\sendSuccess(), settings(), ilLOSettings\TYPE_INITIAL_NONE, ilLOSettings\TYPE_INITIAL_PLACEMENT_ALL, ilLOSettings\TYPE_INITIAL_PLACEMENT_SELECTED, ilLOSettings\TYPE_INITIAL_QUALIFYING_ALL, ilLOSettings\TYPE_INITIAL_QUALIFYING_SELECTED, ilLOSettings\TYPE_QUALIFYING_ALL, ilLOSettings\TYPE_QUALIFYING_SELECTED, updateStartObjects(), and updateTestAssignments().
|
protected |
save position
protected
Definition at line 1141 of file class.ilLOEditorGUI.php.
References $_POST, $counter, $ilErr, getParentObject(), listObjectives(), and ilUtil\sendSuccess().
|
protected |
Save Test.
Definition at line 975 of file class.ilLOEditorGUI.php.
References $form, $settings, applySettingsTemplate(), ilLOSettings\getInstanceByObjId(), getParentObject(), getSettings(), getTestType(), ilUtil\sendFailure(), ilUtil\sendSuccess(), setTestType(), testSettings(), updateMaterialAssignments(), and updateStartObjects().
|
protected |
Set tabs.
type | $a_section |
Definition at line 1276 of file class.ilLOEditorGUI.php.
References $GLOBALS, $settings, ilLOSettings\getInstanceByObjId(), getParentObject(), ilLOSettings\TYPE_INITIAL_PLACEMENT_ALL, ilLOSettings\TYPE_INITIAL_QUALIFYING_ALL, ilLOSettings\TYPE_QUALIFYING_ALL, ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.
Referenced by executeCommand().
ilLOEditorGUI::setTestType | ( | $a_type | ) |
Definition at line 214 of file class.ilLOEditorGUI.php.
References $a_type.
Referenced by confirmDeleteTest(), confirmDeleteTests(), deleteTest(), deleteTests(), saveMultiTestAssignment(), saveTest(), testAssignment(), testOverview(), and testsOverview().
|
protected |
Objective Settings.
Definition at line 228 of file class.ilLOEditorGUI.php.
References $form, $GLOBALS, initSettingsForm(), ilLOEditorStatus\SECTION_SETTINGS, and showStatus().
Referenced by __construct(), and saveSettings().
|
protected |
Show objective creation form.
ilPropertyFormGUI | $form |
Definition at line 1081 of file class.ilLOEditorGUI.php.
References $form, $GLOBALS, initSimpleObjectiveForm(), ilLOEditorStatus\SECTION_OBJECTIVES_NEW, and showStatus().
Referenced by listObjectives(), and saveObjectiveCreation().
|
protected |
Show status panel.
Definition at line 1261 of file class.ilLOEditorGUI.php.
References $GLOBALS, and getParentObject().
Referenced by askDeleteObjectives(), confirmDeleteTest(), confirmDeleteTests(), listObjectives(), materials(), saveObjectiveCreation(), settings(), showObjectiveCreation(), testAssignment(), testOverview(), testSettings(), and testsOverview().
|
protected |
new test assignment
Definition at line 771 of file class.ilLOEditorGUI.php.
References $form, $GLOBALS, getParentObject(), getTestType(), ilLOEditorStatus\SECTION_ITES, ilLOEditorStatus\SECTION_QTEST, setTestType(), showStatus(), ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.
Referenced by saveMultiTestAssignment().
|
protected |
Show test overview.
Definition at line 538 of file class.ilLOEditorGUI.php.
References $GLOBALS, $settings, $table, ilLOSettings\getInstanceByObjId(), getParentObject(), getTestType(), ilLOEditorStatus\SECTION_ITES, ilLOEditorStatus\SECTION_QTEST, setTestType(), showStatus(), TEST_TYPE_IT, testSettings(), ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.
|
protected |
Show test settings.
ilPropertyFormGUI | $form |
Definition at line 803 of file class.ilLOEditorGUI.php.
References $form, $GLOBALS, getParentObject(), getTestType(), ilLOEditorStatus\SECTION_ITES, ilLOEditorStatus\SECTION_QTEST, showStatus(), ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.
Referenced by saveTest(), testOverview(), and testsOverview().
|
protected |
View test assignments ()
Definition at line 487 of file class.ilLOEditorGUI.php.
References $GLOBALS, $settings, $table, ilLOSettings\getInstanceByObjId(), getParentObject(), getTestType(), ilLOEditorStatus\SECTION_ITES, ilLOEditorStatus\SECTION_QTEST, setTestType(), showStatus(), TEST_TYPE_IT, testSettings(), ilLOTestAssignmentTableGUI\TYPE_MULTIPLE_ASSIGNMENTS, ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.
|
protected |
\ilObjTest | $test |
Definition at line 958 of file class.ilLOEditorGUI.php.
References $key, ilCourseObjective\_getObjectiveIds(), getParentObject(), and ilObject\getRefId().
Referenced by saveMultiTestAssignment(), and saveTest().
|
protected |
Add Test as start object.
ilObjTest | $tst |
Definition at line 879 of file class.ilLOEditorGUI.php.
References getParentObject(), and getSettings().
Referenced by saveMultiTestAssignment(), saveSettings(), and saveTest().
|
protected |
Update Test assignments.
ilLOSettings | $settings |
Definition at line 258 of file class.ilLOEditorGUI.php.
References deleteAssignments(), ilLOSettings\getInitialTestType(), ilLOSettings\getQualifyingTestType(), ilLOSettings\setInitialTest(), ilLOSettings\setQualifiedTest(), ilLOSettings\TYPE_INITIAL_NONE, ilLOSettings\TYPE_INITIAL_PLACEMENT_ALL, ilLOSettings\TYPE_INITIAL_PLACEMENT_SELECTED, ilLOSettings\TYPE_INITIAL_QUALIFYING_ALL, ilLOSettings\TYPE_INITIAL_QUALIFYING_SELECTED, ilLOSettings\TYPE_QUALIFYING_ALL, ilLOSettings\TYPE_QUALIFYING_SELECTED, ilLOSettings\TYPE_TEST_INITIAL, ilLOSettings\TYPE_TEST_QUALIFIED, and ilLOSettings\update().
Referenced by saveSettings().
|
private |
Definition at line 40 of file class.ilLOEditorGUI.php.
|
private |
Definition at line 39 of file class.ilLOEditorGUI.php.
|
private |
Definition at line 34 of file class.ilLOEditorGUI.php.
|
private |
Definition at line 37 of file class.ilLOEditorGUI.php.
Referenced by getParentObject().
|
private |
Definition at line 38 of file class.ilLOEditorGUI.php.
Referenced by confirmDeleteTest(), confirmDeleteTests(), deleteTest(), deleteTests(), getSettings(), saveMultiTestAssignment(), saveSettings(), saveTest(), setTabs(), testOverview(), and testsOverview().
|
private |
Definition at line 42 of file class.ilLOEditorGUI.php.
Referenced by getTestType().
const ilLOEditorGUI::SETTINGS_TEMPLATE_IT = 'il_astpl_loc_initial' |
Definition at line 27 of file class.ilLOEditorGUI.php.
const ilLOEditorGUI::SETTINGS_TEMPLATE_QT = 'il_astpl_loc_qualified' |
Definition at line 28 of file class.ilLOEditorGUI.php.
const ilLOEditorGUI::TEST_ASSIGN = 2 |
Definition at line 25 of file class.ilLOEditorGUI.php.
const ilLOEditorGUI::TEST_NEW = 1 |
Definition at line 24 of file class.ilLOEditorGUI.php.
const ilLOEditorGUI::TEST_TYPE_IT = 1 |
Definition at line 21 of file class.ilLOEditorGUI.php.
Referenced by confirmDeleteTest(), testOverview(), and testsOverview().
const ilLOEditorGUI::TEST_TYPE_QT = 2 |
Definition at line 22 of file class.ilLOEditorGUI.php.