54 include_once
"./Modules/SurveyQuestionPool/classes/class.ilSurveyPhrases.php";
59 $this->gui_object =& $a_object;
62 $this->ref_id = $a_object->ref_id;
70 $cmd = $this->ctrl->getCmd();
71 $next_class = $this->ctrl->getNextClass($this);
98 $checked_phrases =
$_POST[
'phrase'];
99 if (count($checked_phrases))
122 if ($rbacsystem->checkAccess(
"write", $this->ref_id))
124 include_once
"./Modules/SurveyQuestionPool/classes/tables/class.ilSurveyPhrasesTableGUI.php";
128 foreach ($phrases as $phrase_id => $phrase_array)
131 array_push(
$data, array(
'phrase_id' => $phrase_id,
'phrase' => $phrase_array[
"title"],
'answers' => join($categories,
", ")));
133 $table_gui->setData(
$data);
134 $this->tpl->setVariable(
'ADM_CONTENT', $table_gui->getHTML());
147 $this->ctrl->redirect($this,
"phrases");
155 $phrases =
$_POST[
'phrase'];
156 $this->
object->deletePhrases($phrases);
158 $this->ctrl->redirect($this,
"phrases");
168 include_once
"./Modules/SurveyQuestionPool/classes/tables/class.ilSurveyPhrasesTableGUI.php";
172 foreach ($checked_phrases as $phrase_id)
174 $phrase_array = $phrases[$phrase_id];
176 array_push(
$data, array(
'phrase_id' => $phrase_id,
'phrase' => $phrase_array[
"title"],
'answers' => join($categories,
", ")));
178 $table_gui->setData(
$data);
179 $this->tpl->setVariable(
'ADM_CONTENT', $table_gui->getHTML());