37 $this->tpl = $DIC[
"tpl"];
38 $this->
ctrl = $DIC->ctrl();
39 $this->
lng = $DIC->language();
49 $next_class = $this->
ctrl->getNextClass($this);
52 $cmd = $this->
ctrl->getCmd();
54 switch ($next_class) {
83 $form->setFormAction($ilCtrl->getFormAction($this));
84 $form->setTitle($this->
lng->txt(
"cont_ed_insert_templ"));
89 $ts = $this->
getPage()->getContentTemplates();
91 $op =
new ilRadioOption($t[
"title"], $t[
"id"] .
":" . $t[
"parent_type"]);
92 $radg->addOption($op);
95 $form->addItem($radg);
98 $form->addCommandButton(
"create_templ",
$lng->
txt(
"insert"));
99 $form->addCommandButton(
"cancelCreate",
$lng->
txt(
"cancel"));
112 if ($form->checkInput()) {
114 $this->content_obj->create(
118 $form->getInput(
"page_templ")
120 $this->updated = $this->pg_obj->update();
121 if ($this->updated ===
true) {
122 $this->
ctrl->returnToParent($this,
"jump" . $this->hier_id);
127 $form->setValuesByPost();
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
insert()
Insert content template.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
create()
Insert the template.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
executeCommand()
Execute command.
User Interface for Editing of Page Content Objects (Paragraphs, Tables, ...)
initForm()
Init creation from.
setContent(string $a_html)
Sets content for standard template.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilPageObject $a_pg_obj, ?ilPageContent $a_content_obj, string $a_hier_id, string $a_pc_id="")
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
ilGlobalTemplateInterface $tpl
__construct(Container $dic, ilPlugin $plugin)