34 $this->
ctrl = $DIC->ctrl();
35 $this->tpl = $DIC[
"tpl"];
36 $this->
lng = $DIC->language();
43 $next_class = $this->
ctrl->getNextClass($this);
46 $cmd = $this->
ctrl->getCmd();
48 switch ($next_class) {
61 bool $a_insert =
false 71 $form->setFormAction($ilCtrl->getFormAction($this));
73 $form->setTitle($this->
lng->txt(
"cont_ed_insert_qover"));
75 $form->setTitle($this->
lng->txt(
"cont_edit_qover"));
80 $cb->
setInfo($this->
lng->txt(
"cont_qover_short_message_info"));
82 $cb->setChecked($this->content_obj->getShortMessage());
84 $cb->setChecked(
true);
90 $cb->
setInfo($this->
lng->txt(
"cont_qover_list_wrong_q_info"));
92 $cb->setChecked($this->content_obj->getListWrongQuestions());
98 $form->addCommandButton(
"create_qover",
$lng->
txt(
"save"));
99 $form->addCommandButton(
"cancelCreate",
$lng->
txt(
"cancel"));
101 $form->addCommandButton(
"update",
$lng->
txt(
"save"));
102 $form->addCommandButton(
"cancelUpdate",
$lng->
txt(
"cancel"));
104 $html = $form->getHTML();
114 $this->content_obj->create($this->pg_obj, $this->hier_id, $this->pc_id);
115 $this->content_obj->setShortMessage(
116 $this->request->getString(
"short")
118 $this->content_obj->setListWrongQuestions(
119 $this->request->getString(
"wrong_questions")
121 $this->updated = $this->pg_obj->update();
122 if ($this->updated ===
true) {
123 $this->
ctrl->returnToParent($this,
"jump" . $this->hier_id);
134 $this->content_obj->setShortMessage(
135 $this->request->getString(
"short")
137 $this->content_obj->setListWrongQuestions(
138 $this->request->getString(
"wrong_questions")
140 $this->updated = $this->pg_obj->update();
141 if ($this->updated ===
true) {
142 $this->
ctrl->returnToParent($this,
"jump" . $this->hier_id);
144 $this->pg_obj->addHierIDs();
create()
Create new question overview.
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
edit(bool $a_insert=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
update()
Update question overview.
User Interface for Editing of Page Content Objects (Paragraphs, Tables, ...)
setContent(string $a_html)
Sets content for standard template.
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
ilGlobalTemplateInterface $tpl
__construct(Container $dic, ilPlugin $plugin)
__construct(ilPageObject $a_pg_obj, ?ilPageContent $a_content_obj, string $a_hier_id, string $a_pc_id="")