4 require_once(
"./Services/COPage/classes/class.ilPCQuestionOverview.php");
5 require_once(
"./Services/COPage/classes/class.ilPageContentGUI.php");
23 function __construct(&$a_pg_obj, &$a_content_obj, $a_hier_id, $a_pc_id =
"")
25 parent::__construct($a_pg_obj, $a_content_obj, $a_hier_id, $a_pc_id);
35 $next_class = $this->ctrl->getNextClass($this);
38 $cmd = $this->ctrl->getCmd();
61 function edit($a_insert =
false)
68 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
70 $form->setFormAction($ilCtrl->getFormAction($this));
73 $form->setTitle($this->lng->txt(
"cont_ed_insert_qover"));
77 $form->setTitle($this->lng->txt(
"cont_edit_qover"));
82 $cb->
setInfo($this->lng->txt(
"cont_qover_short_message_info"));
85 $cb->setChecked($this->content_obj->getShortMessage());
89 $cb->setChecked(
true);
94 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"cont_qover_list_wrong_q"),
"wrong_questions");
95 $cb->
setInfo($this->lng->txt(
"cont_qover_list_wrong_q_info"));
98 $cb->setChecked($this->content_obj->getListWrongQuestions());
105 $form->addCommandButton(
"create_qover", $lng->txt(
"save"));
106 $form->addCommandButton(
"cancelCreate", $lng->txt(
"cancel"));
110 $form->addCommandButton(
"update", $lng->txt(
"save"));
111 $form->addCommandButton(
"cancelUpdate", $lng->txt(
"cancel"));
113 $html = $form->getHTML();
114 $tpl->setContent(
$html);
124 $this->content_obj->create($this->pg_obj, $this->hier_id, $this->pc_id);
127 $this->updated = $this->pg_obj->update();
128 if ($this->updated ===
true)
130 $this->ctrl->returnToParent($this,
"jump".$this->hier_id);
145 $this->updated = $this->pg_obj->update();
146 if ($this->updated ===
true)
148 $this->ctrl->returnToParent($this,
"jump".$this->hier_id);
152 $this->pg_obj->addHierIDs();
create()
Create new question overview.
Question overview page content element.
edit($a_insert=false)
Edit question overview form.
Class ilPCQuestionOverviewGUI.
executeCommand()
Execute command.
update()
Update question overview.
User Interface for Editing of Page Content Objects (Paragraphs, Tables, ...)
displayValidationError()
display validation errors
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
__construct(&$a_pg_obj, &$a_content_obj, $a_hier_id, $a_pc_id="")
Constructor.
insert()
Insert new question overview.