4 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateSetting.php';
25 $this->parent_object = $a_parent_obj;
27 $this->lng->loadLanguageModule(
'didactic');
43 $next_class = $ilCtrl->getNextClass($this);
44 $cmd = $ilCtrl->getCmd();
62 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateSettings.php';
71 $toolbar->
addText($this->lng->txt(
'didactic_selected_tpl_option'));
74 $options = array(0 => $this->lng->txt(
'didactic_default_type'));
75 foreach($tpls as
$tpl)
77 $options[$tpl->getId()] = $tpl->getTitle();
80 include_once
'./Services/Form/classes/class.ilSelectInputGUI.php';
81 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateObjSettings.php';
86 $tpl_selection->setOptions($options);
93 $toolbar->
addFormButton($this->lng->txt(
'change'),
'confirmTemplateSwitch');
104 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateObjSettings.php';
110 $GLOBALS[
'ilLog']->write(__METHOD__.
': Template id: '.$new_tpl_id);
112 $ilCtrl->returnToParent($this);
115 $ilTabs->clearTargets();
116 $ilTabs->clearSubTabs();
118 include_once
'./Services/Utilities/classes/class.ilConfirmationGUI.php';
120 $confirm->setFormAction($ilCtrl->getFormAction($this));
121 $confirm->setHeaderText($this->lng->txt(
'didactic_confirm_apply_new_template'));
122 $confirm->setConfirm($this->lng->txt(
'apply'),
'switchTemplate');
123 $confirm->setCancel($this->lng->txt(
'cancel'),
'cancel');
127 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateSetting.php';
134 '<div class="il_Description">'.
135 $dtpl->getDescription().
' '.
144 $this->lng->txt(
'default').
' '.
145 '<div class="il_Description">'.
147 $this->lng->txt(
'didactic_default_type_info'),
154 $tpl->setContent($confirm->getHTML());
164 $ilCtrl->returnToParent($this);
176 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateObjSettings.php';
184 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateActionFactory.php';
193 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateActionFactory.php';
209 $ilCtrl->returnToParent($this);