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);
static lookupTemplateId($a_ref_id)
Lookup template id ilDB $ilDB.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
appendToolbarSwitch(ilToolbarGUI $toolbar, $a_obj_type, $a_ref_id)
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static assignTemplate($a_ref_id, $a_obj_id, $a_tpl_id)
Assign template to object ilDB $ilDB.
executeCommand()
Execute command.
GUI class for didactic template settings inside repository objects.
if(!is_array($argv)) $options
__construct($a_parent_obj)
Constructor.
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
cancel()
Return to parent gui.
static getInstanceByObjectType($a_obj_type)
Get instance by obj type.
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
switchTemplate()
Switch Template.
Confirmation screen class.
static getActionsByTemplateId($a_tpl_id)
Get actions of one template.