5include_once 
'./Modules/Course/classes/Objectives/class.ilLOSettings.php';
 
    6include_once 
'./Modules/Course/classes/Objectives/class.ilLOEditorStatus.php';
 
   51        $this->parent_obj = $a_parent_obj;
 
   55        $this->ctrl = 
$GLOBALS[
'DIC'][
'ilCtrl'];
 
   56        $this->logger = 
$GLOBALS[
'DIC']->logger()->crs();
 
   69        $next_class = 
$ilCtrl->getNextClass($this);
 
   73        switch ($next_class) {
 
   74            case 'ilcourseobjectivesgui':
 
   76                $this->ctrl->setReturn($this, 
'returnFromObjectives');
 
   77                $GLOBALS[
'DIC'][
'ilTabs']->clearTargets();
 
   78                $GLOBALS[
'DIC'][
'ilTabs']->setBackTarget(
 
   79                    $this->lng->txt(
'back'),
 
   80                    $this->ctrl->getLinkTarget($this, 
'listObjectives')
 
   83                include_once 
'./Modules/Course/classes/class.ilCourseObjectivesGUI.php';
 
   85                $this->ctrl->forwardCommand($reg_gui);
 
   88            case 'ilcontainerstartobjectsgui':
 
   90                include_once 
'./Services/Container/classes/class.ilContainerStartObjectsGUI.php';
 
   92                $ret = $this->ctrl->forwardCommand($stgui);
 
   94                $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'start');
 
   95                $GLOBALS[
'DIC'][
'ilTabs']->removeSubTab(
'manage');
 
   97                #$GLOBALS['DIC']['tpl']->setContent($this->ctrl->getHTML($stgui)); 
  100            case 'ilconditionhandlergui':
 
  102                $this->ctrl->saveParameterByClass(
'ilconditionhandlergui', 
'objective_id');
 
  104                $GLOBALS[
'DIC'][
'ilTabs']->clearTargets();
 
  105                $GLOBALS[
'DIC'][
'ilTabs']->setBackTarget(
 
  106                    $this->lng->txt(
'back'),
 
  107                    $this->ctrl->getLinkTarget($this, 
'listObjectives')
 
  110                include_once 
'./Services/AccessControl/classes/class.ilConditionHandlerInterface.php';
 
  112                $cond->setBackButtons(array());
 
  113                $cond->setAutomaticValidation(
false);
 
  114                $cond->setTargetType(
"lobj");
 
  117                $cond->setTargetId((
int) $_REQUEST[
'objective_id']);
 
  120                include_once 
'./Modules/Course/classes/class.ilCourseObjective.php';
 
  122                $cond->setTargetTitle($obj->getTitle());
 
  123                $this->ctrl->forwardCommand($cond);
 
  127                $this->ctrl->saveParameterByClass(
'illopagegui', 
'objective_id');
 
  129                $GLOBALS[
'DIC'][
'ilTabs']->clearTargets();
 
  130                $GLOBALS[
'DIC'][
'ilTabs']->setBackTarget(
 
  131                    $this->lng->txt(
'back'),
 
  132                    $this->ctrl->getLinkTarget($this, 
'listObjectives')
 
  135                $objtv_id = (int) $_REQUEST[
'objective_id'];
 
  137                include_once 
'Modules/Course/classes/Objectives/class.ilLOPage.php';
 
  141                    $new_page_object->setParentId($objtv_id);
 
  142                    $new_page_object->setId($objtv_id);
 
  143                    $new_page_object->createFromXML();
 
  144                    unset($new_page_object);
 
  147                $this->ctrl->setReturn($this, 
'listObjectives');
 
  148                include_once 
'Modules/Course/classes/Objectives/class.ilLOPageGUI.php';
 
  152                include_once(
'./Services/Style/Content/classes/class.ilObjStyleSheet.php');
 
  154                    $this->parent_obj->getStyleSheetId(),
 
  155                    $this->parent_obj->getType()
 
  159                $GLOBALS[
'DIC'][
'tpl']->setCurrentBlock(
"ContentStyle");
 
  160                $GLOBALS[
'DIC'][
'tpl']->setVariable(
 
  161                    "LOCATION_CONTENT_STYLESHEET",
 
  163                        $this->parent_obj->getStyleSheetId(),
 
  164                        $this->parent_obj->getType()
 
  167                $GLOBALS[
'DIC'][
'tpl']->parseCurrentBlock();
 
  169                $ret = $this->ctrl->forwardCommand($pgui);
 
  178                    include_once 
'./Modules/Course/classes/Objectives/class.ilLOEditorStatus.php';
 
  194        include_once 
'./Modules/Course/classes/class.ilCourseObjectivesGUI.php';
 
  236        $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'settings');
 
  248        include_once 
'./Modules/Course/classes/Objectives/class.ilLOTestAssignments.php';
 
  250        foreach ($assignments->getAssignmentsByType(
$a_type) as $assignment) {
 
  251            $assignment->delete();
 
  262        switch (
$settings->getInitialTestType()) {
 
  280        switch (
$settings->getQualifyingTestType()) {
 
  299        if (
$form->checkInput()) {
 
  302            switch (
$settings->getInitialTestType()) {
 
  325            switch (
$settings->getQualifyingTestType()) {
 
  331                    $settings->setQualifyingTestAsStart(
false);
 
  337            $settings->setPassedObjectiveMode(
$form->getInput(
'passed_mode'));
 
  343                $settings->setQualifyingTestAsStart(
false);
 
  351            include_once 
'./Services/Tracking/classes/class.ilLPStatusWrapper.php';
 
  354            ilUtil::sendSuccess($this->lng->txt(
'settings_saved'), 
true);
 
  355            $this->ctrl->redirect($this, 
'settings');
 
  360        $form->setValuesByPost();
 
  369        include_once 
'./Services/Form/classes/class.ilPropertyFormGUI.php';
 
  371        $form->setFormAction($this->ctrl->getFormAction($this));
 
  372        $form->setTitle($this->lng->txt(
'crs_loc_settings_tbl'));
 
  375        $type_selector = 
new ilRadioGroupInputGUI($this->lng->txt(
'crs_loc_settings_it_type'), 
'ittype');
 
  376        $type_selector->setRequired(
true);
 
  377        $type_selector->setValue($this->
getSettings()->getInitialTestType());
 
  380        $type_ipa->setInfo($this->lng->txt(
'crs_loc_settings_type_it_placement_all_info'));
 
  381        $type_selector->addOption($type_ipa);
 
  383        $start_ip = 
new ilCheckboxInputGUI($this->lng->txt(
'crs_loc_settings_it_start_object'), 
'start_ip');
 
  384        $start_ip->setValue(1);
 
  385        $start_ip->setChecked($this->
getSettings()->isInitialTestStart());
 
  386        $type_ipa->addSubItem($start_ip);
 
  389        $type_ips->setInfo($this->lng->txt(
'crs_loc_settings_type_it_placement_sel_info'));
 
  390        $type_selector->addOption($type_ips);
 
  393        $type_iqa->setInfo($this->lng->txt(
'crs_loc_settings_type_it_qualifying_all_info'));
 
  394        $type_selector->addOption($type_iqa);
 
  396        $start_iq = 
new ilCheckboxInputGUI($this->lng->txt(
'crs_loc_settings_it_start_object'), 
'start_iq');
 
  397        $start_iq->setValue(1);
 
  398        $start_iq->setChecked($this->
getSettings()->isInitialTestStart());
 
  399        $type_iqa->addSubItem($start_iq);
 
  402        $type_iqs->setInfo($this->lng->txt(
'crs_loc_settings_type_it_qualifying_sel_info'));
 
  403        $type_selector->addOption($type_iqs);
 
  406        $type_ino->setInfo($this->lng->txt(
'crs_loc_settings_type_it_none_info'));
 
  407        $type_selector->addOption($type_ino);
 
  409        $form->addItem($type_selector);
 
  413        $qt_selector->setRequired(
true);
 
  414        $qt_selector->setValue($this->
getSettings()->getQualifyingTestType());
 
  417        $type_qa->setInfo($this->lng->txt(
'crs_loc_settings_type_q_all_info'));
 
  418        $qt_selector->addOption($type_qa);
 
  420        $start_q = 
new ilCheckboxInputGUI($this->lng->txt(
'crs_loc_settings_qt_start_object'), 
'start_q');
 
  421        $start_q->setValue(1);
 
  422        $start_q->setChecked($this->
getSettings()->isQualifyingTestStart());
 
  423        $type_qa->addSubItem($start_q);
 
  425        $passed_mode = 
new ilRadioGroupInputGUI($this->lng->txt(
'crs_loc_settings_passed_mode'), 
'passed_mode');
 
  426        $passed_mode->setValue($this->
getSettings()->getPassedObjectiveMode());
 
  428        $passed_mode->addOption(
 
  430                $this->lng->txt(
'crs_loc_settings_passed_mode_hide'),
 
  434        $passed_mode->addOption(
 
  436                $this->lng->txt(
'crs_loc_settings_passed_mode_mark'),
 
  440        $type_qa->addSubItem($passed_mode);
 
  443        $type_qs->setInfo($this->lng->txt(
'crs_loc_settings_type_q_selected_info'));
 
  444        $qt_selector->addOption($type_qs);
 
  446        $form->addItem($qt_selector);
 
  451        $reset->setChecked($this->
getSettings()->isResetResultsEnabled());
 
  452        $reset->setOptionTitle($this->lng->txt(
'crs_loc_settings_reset_enable'));
 
  453        $reset->setInfo($this->lng->txt(
'crs_loc_settings_reset_enable_info'));
 
  454        $form->addItem($reset);
 
  456        $form->addCommandButton(
'saveSettings', $this->lng->txt(
'save'));
 
  464        $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'materials');
 
  466        include_once 
"Services/Object/classes/class.ilObjectAddNewItemGUI.php";
 
  468        $gui->setDisabledObjectTypes(array(
"itgr"));
 
  469        #$gui->setAfterCreationCallback($this->getParentObject()->getRefId()); 
  472        include_once 
'./Services/Object/classes/class.ilObjectTableGUI.php';
 
  481        $GLOBALS[
'DIC'][
'tpl']->setContent($obj_table->getHTML());
 
  492        $this->ctrl->setParameter($this, 
'tt', $this->
getTestType());
 
  494        $GLOBALS[
'DIC'][
'ilToolbar']->setFormAction($this->ctrl->getFormAction($this));
 
  495        $GLOBALS[
'DIC'][
'ilToolbar']->addButton(
 
  496            $this->lng->txt(
'crs_loc_btn_new_assignment'),
 
  497            $this->ctrl->getLinkTarget($this, 
'testAssignment')
 
  504                $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'itests');
 
  508                $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'qtests');
 
  513            include_once 
'./Modules/Course/classes/Objectives/class.ilLOTestAssignmentTableGUI.php';
 
  522            $table->parseMultipleAssignments();
 
  531            $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ . 
': Show new assignment screen because of : ' . $ex->getMessage());
 
  543        $this->ctrl->setParameter($this, 
'tt', $this->
getTestType());
 
  548                $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'itest');
 
  552                $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'qtest');
 
  558        if (!
$settings->getTestByType($this->getTestType())) {
 
  563            include_once 
'./Modules/Course/classes/Objectives/class.ilLOTestAssignmentTableGUI.php';
 
  580            $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ . 
': Show new assignment screen because of : ' . $ex->getMessage());
 
  591        $this->ctrl->setParameter($this, 
'tt', $this->
getTestType());
 
  596                $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'itests');
 
  600                $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'qtests');
 
  604        if (!(
int) $_REQUEST[
'tst']) {
 
  606            $this->ctrl->redirect($this, 
'testsOverview');
 
  609        include_once 
'./Services/Utilities/classes/class.ilConfirmationGUI.php';
 
  611        $confirm->setHeaderText($this->lng->txt(
'crs_loc_confirm_delete_tst'));
 
  612        $confirm->setFormAction($this->ctrl->getFormAction($this));
 
  613        $confirm->setConfirm($this->lng->txt(
'crs_loc_delete_assignment'), 
'deleteTests');
 
  614        $confirm->setCancel($this->lng->txt(
'cancel'), 
'testsOverview');
 
  616        foreach ((array) $_REQUEST[
'tst'] as $assign_id) {
 
  617            include_once 
'./Modules/Course/classes/Objectives/class.ilLOTestAssignment.php';
 
  625        $GLOBALS[
'DIC'][
'tpl']->setContent($confirm->getHTML());
 
  640        $this->ctrl->setParameter($this, 
'tt', $this->
getTestType());
 
  645                $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'itest');
 
  649                $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'qtest');
 
  653        if (!(
int) $_REQUEST[
'tst']) {
 
  655            $this->ctrl->redirect($this, 
'testOverview');
 
  658        include_once 
'./Services/Utilities/classes/class.ilConfirmationGUI.php';
 
  660        $confirm->setHeaderText($this->lng->txt(
'crs_loc_confirm_delete_tst'));
 
  661        $confirm->setFormAction($this->ctrl->getFormAction($this));
 
  662        $confirm->setConfirm($this->lng->txt(
'crs_loc_delete_assignment'), 
'deleteTest');
 
  663        $confirm->setCancel($this->lng->txt(
'cancel'), 
'testOverview');
 
  665        foreach ((array) $_REQUEST[
'tst'] as $tst_id) {
 
  670        $GLOBALS[
'DIC'][
'tpl']->setContent($confirm->getHTML());
 
  685        $this->ctrl->setParameter($this, 
'tt', $this->
getTestType());
 
  690                $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'itests');
 
  694                $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'qtests');
 
  698        foreach ((array) $_REQUEST[
'tst'] as $assign_id) {
 
  699            include_once 
'./Modules/Course/classes/Objectives/class.ilLOTestAssignment.php';
 
  701            $assignment->delete();
 
  704            include_once 
'./Services/Container/classes/class.ilContainerStartObjects.php';
 
  709            $start->deleteItem($assignment->getTestRefId());
 
  712            include_once 
'./Modules/Course/classes/class.ilCourseObjectiveQuestion.php';
 
  717        ilUtil::sendSuccess($this->lng->txt(
'settings_saved'), 
true);
 
  718        $this->ctrl->redirect($this, 
'testsOverview');
 
  727        $this->ctrl->setParameter($this, 
'tt', $this->
getTestType());
 
  732                $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'itest');
 
  736                $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'qtest');
 
  740        foreach ((array) $_REQUEST[
'tst'] as $tst_id) {
 
  753            include_once 
'./Services/Container/classes/class.ilContainerStartObjects.php';
 
  758            $start->deleteItem($tst_id);
 
  761            include_once 
'./Modules/Course/classes/class.ilCourseObjectiveQuestion.php';
 
  766        ilUtil::sendSuccess($this->lng->txt(
'settings_saved'), 
true);
 
  767        $this->ctrl->redirect($this, 
'testOverview');
 
  776        $this->ctrl->setParameter($this, 
'tt', $this->
getTestType());
 
  780                $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'itests');
 
  784                $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'qtests');
 
  788            include_once 
'./Modules/Course/classes/Objectives/class.ilLOTestAssignmentForm.php';
 
  790            $form = $form_helper->initForm(
true);
 
  807        $this->ctrl->setParameter($this, 
'tt', (
int) $_REQUEST[
'tt']);
 
  810                $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'itest');
 
  814                $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'qtest');
 
  819            include_once 
'./Modules/Course/classes/Objectives/class.ilLOTestAssignmentForm.php';
 
  821            $form = $form_helper->initForm(
false);
 
  838        include_once 
"Services/Administration/classes/class.ilSettingsTemplate.php";
 
  839        include_once 
'./Modules/Test/classes/class.ilObjAssessmentFolderGUI.php';
 
  845                    if (
$template[
'title'] == self::SETTINGS_TEMPLATE_IT) {
 
  850                    if (
$template[
'title'] == self::SETTINGS_TEMPLATE_QT) {
 
  864        include_once 
"Services/Administration/classes/class.ilSettingsTemplate.php";
 
  865        include_once 
'./Modules/Test/classes/class.ilObjAssessmentFolderGUI.php';
 
  867        $template_settings = 
$template->getSettings();
 
  868        if ($template_settings) {
 
  869            include_once 
'./Modules/Test/classes/class.ilObjTestGUI.php';
 
  871            $tst_gui->applyTemplate($template_settings, $tst);
 
  883        include_once 
'./Services/Container/classes/class.ilContainerStartObjects.php';
 
  891        $this->ctrl->setParameter($this, 
'tt', (
int) $_REQUEST[
'tt']);
 
  896        include_once 
'./Modules/Course/classes/Objectives/class.ilLOTestAssignmentForm.php';
 
  898        $form = $form_helper->initForm(
true);
 
  900        if (
$form->checkInput()) {
 
  901            $mode = 
$form->getInput(
'mode');
 
  903            if ($mode == self::TEST_NEW) {
 
  905                $tst->setType(
'tst');
 
  906                $tst->setTitle(
$form->getInput(
'title'));
 
  907                $tst->setDescription(
$form->getInput(
'desc'));
 
  909                $tst->createReference();
 
  916                $tst->setQuestionSetType(
$form->getInput(
'qtype'));
 
  920                include_once 
'./Modules/Course/classes/Objectives/class.ilLOTestAssignment.php';
 
  923                $assignment->setAssignmentType($this->
getTestType());
 
  924                $assignment->setObjectiveId(
$form->getInput(
'objective'));
 
  925                $assignment->setTestRefId($tst->getRefId());
 
  928                include_once 
'./Modules/Course/classes/Objectives/class.ilLOTestAssignment.php';
 
  931                $assignment->setAssignmentType($this->
getTestType());
 
  932                $assignment->setObjectiveId(
$form->getInput(
'objective'));
 
  933                $assignment->setTestRefId(
$form->getInput(
'tst'));
 
  947            ilUtil::sendSuccess($this->lng->txt(
'settings_saved'));
 
  948            $this->ctrl->redirect($this, 
'testsOverview');
 
  953        $form->setValuesByPost();
 
  962        include_once 
'./Modules/Course/classes/class.ilCourseObjective.php';
 
  964            include_once 
'./Modules/Course/classes/class.ilCourseObjectiveMaterials.php';
 
  966            foreach ($materials->getMaterials() as 
$key => $material) {
 
  967                if ($material[
'ref_id'] == 
$test->getRefId()) {
 
  968                    $materials->delete($material[
'lm_ass_id']);
 
  979        $this->ctrl->setParameter($this, 
'tt', (
int) $_REQUEST[
'tt']);
 
  984        include_once 
'./Modules/Course/classes/Objectives/class.ilLOTestAssignmentForm.php';
 
  986        $form = $form_helper->initForm(
false);
 
  988        if (
$form->checkInput()) {
 
  989            $mode = 
$form->getInput(
'mode');
 
  991            if ($mode == self::TEST_NEW) {
 
  993                $tst->setType(
'tst');
 
  994                $tst->setTitle(
$form->getInput(
'title'));
 
  995                $tst->setDescription(
$form->getInput(
'desc'));
 
  997                $tst->createReference();
 
 1004                $tst->setQuestionSetType(
$form->getInput(
'qtype'));
 
 1009                    $this->
getSettings()->setInitialTest($tst->getRefId());
 
 1011                    $this->
getSettings()->setQualifiedTest($tst->getRefId());
 
 1033            ilUtil::sendSuccess($this->lng->txt(
'settings_saved'));
 
 1034            $this->ctrl->redirect($this, 
'testOverview');
 
 1039        $form->setValuesByPost();
 
 1050        $ilToolbar = 
$DIC[
'ilToolbar'];
 
 1052        include_once 
'./Modules/Course/classes/class.ilCourseObjectivesGUI.php';
 
 1056        $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'objectives');
 
 1063        if (!count($objectives)) {
 
 1067        $ilToolbar->addButton(
 
 1068            $this->lng->txt(
'crs_add_objective'),
 
 1069            $this->ctrl->getLinkTargetByClass(
'ilcourseobjectivesgui', 
"create")
 
 1072        include_once(
'./Modules/Course/classes/class.ilCourseObjectivesTableGUI.php');
 
 1074        $table->setTitle($this->lng->txt(
'crs_objectives'), 
'', $this->lng->txt(
'crs_objectives'));
 
 1075        $table->parse($objectives);
 
 1087        $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'objectives');
 
 1103        include_once 
'./Services/Form/classes/class.ilPropertyFormGUI.php';
 
 1105        $form->setTitle($this->lng->txt(
'crs_loc_form_create_objectives'));
 
 1106        $form->setFormAction($this->ctrl->getFormAction($this));
 
 1109        $txt->setValues(array(0 => 
''));
 
 1110        $txt->setRequired(
true);
 
 1113        $form->addCommandButton(
'saveObjectiveCreation', $this->lng->txt(
'save'));
 
 1121        if (
$form->checkInput()) {
 
 1122            foreach ((array) 
$form->getInput(
'objectives') as $idx => 
$title) {
 
 1123                include_once 
'./Modules/Course/classes/class.ilCourseObjective.php';
 
 1125                $obj->setActive(
true);
 
 1129            ilUtil::sendSuccess($this->lng->txt(
'settings_saved'), 
true);
 
 1130            $this->ctrl->redirect($this, 
'');
 
 1133        $form->setValuesByPost();
 
 1134        $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'objectives');
 
 1149        $ilAccess = 
$DIC[
'ilAccess'];
 
 1151        $ilObjDataCache = 
$DIC[
'ilObjDataCache'];
 
 1153        asort(
$_POST[
'position'], SORT_NUMERIC);
 
 1156        foreach (
$_POST[
'position'] as $objective_id => $position) {
 
 1157            include_once 
'./Modules/Course/classes/class.ilCourseObjective.php';
 
 1159            $objective->writePosition($counter++);
 
 1161        ilUtil::sendSuccess($this->lng->txt(
'crs_objective_saved_sorting'));
 
 1170        $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab(
'objectives');
 
 1172        include_once 
'./Services/Utilities/classes/class.ilConfirmationGUI.php';
 
 1174        $confirm->setFormAction($this->ctrl->getFormAction($this));
 
 1175        $confirm->setHeaderText($this->lng->txt(
'crs_delete_objectve_sure'));
 
 1176        $confirm->setConfirm($this->lng->txt(
'delete'), 
'deleteObjectives');
 
 1177        $confirm->setCancel($this->lng->txt(
'cancel'), 
'listObjectives');
 
 1179        foreach (
$_POST[
'objective'] as $objective_id) {
 
 1180            include_once 
'./Modules/Course/classes/class.ilCourseObjective.php';
 
 1182            $name = $obj->getTitle();
 
 1190        $GLOBALS[
'DIC'][
'tpl']->setContent($confirm->getHTML());
 
 1199        $enabled = (array) $_REQUEST[
'objective'];
 
 1201        include_once 
'./Modules/Course/classes/class.ilCourseObjective.php';
 
 1203        foreach ((array) $objectives as $objective_id) {
 
 1205            if (in_array($objective_id, $enabled)) {
 
 1206                $objective->setActive(
true);
 
 1207                $objective->update();
 
 1211        include_once 
'./Services/Tracking/classes/class.ilLPStatusWrapper.php';
 
 1214        ilUtil::sendSuccess($this->lng->txt(
'settings_saved'), 
true);
 
 1215        $this->ctrl->redirect($this, 
'listObjectives');
 
 1223        $disabled = (array) $_REQUEST[
'objective'];
 
 1225        include_once 
'./Modules/Course/classes/class.ilCourseObjective.php';
 
 1227        foreach ((array) $objectives as $objective_id) {
 
 1229            if (in_array($objective_id, $disabled)) {
 
 1230                $objective->setActive(
false);
 
 1231                $objective->update();
 
 1235        include_once 
'./Services/Tracking/classes/class.ilLPStatusWrapper.php';
 
 1238        ilUtil::sendSuccess($this->lng->txt(
'settings_saved'), 
true);
 
 1239        $this->ctrl->redirect($this, 
'listObjectives');
 
 1251        $rbacsystem = 
$DIC[
'rbacsystem'];
 
 1253        foreach (
$_POST[
'objective_ids'] as $objective_id) {
 
 1254            include_once 
'./Modules/Course/classes/class.ilCourseObjective.php';
 
 1256            $objective_obj->delete();
 
 1259        include_once 
'./Services/Tracking/classes/class.ilLPStatusWrapper.php';
 
 1262        ilUtil::sendSuccess($this->lng->txt(
'crs_objectives_deleted'), 
true);
 
 1263        $this->ctrl->redirect($this, 
'listObjectives');
 
 1273        include_once 
'./Modules/Course/classes/Objectives/class.ilLOEditorStatus.php';
 
 1275        $status->setSection($a_section);
 
 1276        $status->setCmdClass($this);
 
 1277        $GLOBALS[
'DIC'][
'tpl']->setRightContent($status->getHTML());
 
 1289        $GLOBALS[
'DIC'][
'ilTabs']->addSubTab(
 
 1291            $this->lng->txt(
'settings'),
 
 1292            $this->ctrl->getLinkTarget($this, 
'settings')
 
 1295        $GLOBALS[
'DIC'][
'ilTabs']->addSubTab(
 
 1297            $this->lng->txt(
'crs_loc_tab_objectives'),
 
 1298            $this->ctrl->getLinkTarget($this, 
'listObjectives')
 
 1310        if (
$settings->worksWithInitialTest()) {
 
 1316                $GLOBALS[
'DIC'][
'ilTabs']->addSubTab(
 
 1318                    $this->lng->txt(
'crs_loc_tab_itest'),
 
 1319                    $this->ctrl->getLinkTarget($this, 
'testOverview')
 
 1323                $GLOBALS[
'DIC'][
'ilTabs']->addSubTab(
 
 1325                    $this->lng->txt(
'crs_loc_tab_itests'),
 
 1326                    $this->ctrl->getLinkTarget($this, 
'testsOverview')
 
 1333            $GLOBALS[
'DIC'][
'ilTabs']->addSubTab(
 
 1335                $this->lng->txt(
'crs_loc_tab_qtest'),
 
 1336                $this->ctrl->getLinkTarget($this, 
'testOverview')
 
 1340            $GLOBALS[
'DIC'][
'ilTabs']->addSubTab(
 
 1342                $this->lng->txt(
'crs_loc_tab_qtests'),
 
 1343                $this->ctrl->getLinkTarget($this, 
'testsOverview')
 
 1347        if (
$settings->worksWithStartObjects()) {
 
 1348            $GLOBALS[
'DIC'][
'ilTabs']->addSubTab(
 
 1350                $this->lng->txt(
'crs_loc_tab_start'),
 
 1351                $this->ctrl->getLinkTargetByClass(
'ilcontainerstartobjectsgui', 
'')
 
 1356        #include_once './Services/Container/classes/class.ilMemberViewGUI.php'; 
 1357        #ilMemberViewGUI::showMemberViewSwitch($this->getParentObject()->getRefId()); 
An exception for terminatinating execution or to throw for unit testing.
class ilConditionHandlerGUI
Confirmation screen class.
Class ilContainerStartObjectsGUI.
class ilCourseObjectiveMaterials
static deleteTest($a_tst_ref_id)
static lookupObjectiveTitle($a_objective_id, $a_add_description=false)
static _getObjectiveIds($course_id, $a_activated_only=false)
class ilobjcourseobjectivesgui
saveSorting()
save position
testOverview()
Show test overview.
deleteTest()
Delete test assignment.
const SETTINGS_TEMPLATE_IT
updateTestAssignments(ilLOSettings $settings)
Update Test assignments.
deleteTests()
Delete test assignments.
saveMultiTestAssignment()
updateStartObjects()
Add Test as start object.
askDeleteObjectives()
Confirm delete objectives.
deleteAssignments($a_type)
Delete assignments.
listObjectives()
List all abvailable objectives.
initSimpleObjectiveForm()
Show objective creation form.
testSettings(ilPropertyFormGUI $form=null)
Show test settings.
showStatus($a_section)
Show status panel.
executeCommand()
Execute command.
initSettingsForm()
Init settings form.
showObjectiveCreation(ilPropertyFormGUI $form=null)
Show objective creation form.
confirmDeleteTests()
Show delete test confirmation.
deactivateObjectives()
activate chosen objectives
activateObjectives()
activate chosen objectives
testsOverview()
View test assignments ()
updateMaterialAssignments(ilObjTest $test)
settings(ilPropertyFormGUI $form=null)
Objective Settings.
returnFromObjectives()
Return from objectives.
setTabs($a_section='')
Set tabs.
confirmDeleteTest()
Show delete confirmation screen.
testAssignment(ilPropertyFormGUI $form=null)
new test assignment
__construct($a_parent_obj)
Constructor.
deleteObjectives()
Delete objectives @global type $rbacsystem.
const SETTINGS_TEMPLATE_QT
applySettingsTemplate(ilObjTest $tst)
Apply auto generated setttings template.
Presentation of the status of single steps during the configuration process.
const SECTION_OBJECTIVES_NEW
static getInstance(ilObject $a_parent)
Get instance.
Class ilLOInvalidConfigurationException.
(Course) learning objective page GUI class
(Course) learning objective page object
const TYPE_INITIAL_QUALIFYING_ALL
const TYPE_TEST_QUALIFIED
const TYPE_INITIAL_PLACEMENT_SELECTED
const HIDE_PASSED_OBJECTIVE_QST
const TYPE_QUALIFYING_ALL
const TYPE_INITIAL_PLACEMENT_ALL
const MARK_PASSED_OBJECTIVE_QST
setInitialTest($a_id)
set initial test id
const TYPE_QUALIFYING_SELECTED
const TYPE_INITIAL_QUALIFYING_SELECTED
static getInstanceByObjId($a_obj_id)
get singleton instance
setQualifiedTest($a_id)
set qualified test
Class ilLOTestAssignmentTableGUI.
const TYPE_MULTIPLE_ASSIGNMENTS
static getInstance($a_container_id)
Get instance by container id.
static _refreshStatus($a_obj_id, $a_users=null)
Set dirty.
static getSettingsTemplateConfig()
static getEffectiveContentStyleId($a_style_id, $a_type="")
Get effective Style Id.
static getContentStylePath($a_style_id, $add_random=true)
get content style path
setTemplate($template_id)
Render add new item selector.
static _lookupObjId($a_id)
static _lookupTitle($a_id)
lookup object title
static _exists($a_parent_type, $a_id, $a_lang="", $a_no_cache=false)
Checks whether page exists.
This class represents an option in a radio group.
Settings template application class.
static getAllSettingsTemplates($a_type, $a_include_auto_generated=false)
Get all settings templates of type.
This class represents a text wizard property in a property form.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
if(empty($password)) $table
if(isset($_POST['submit'])) $form