24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
47 public function __construct($a_parent_obj, $a_parent_cmd, $a_object, $a_write_access =
false)
59 $this->
setStyle(
'table',
'fullwidth');
61 $this->
addColumn($this->lng->txt(
"title"),
'title',
'');
62 $this->
addColumn($this->lng->txt(
"contains"),
'contains',
'');
63 $this->
addColumn($this->lng->txt(
"obj_svy"),
'svy',
'');
68 $this->
addMultiCommand(
'insertQuestionblocks', $this->lng->txt(
'insert'));
70 $this->
setRowTemplate(
"tpl.il_svy_svy_questionblockbrowser_row.html",
"Modules/Survey");
72 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
78 $this->
enable(
'select_all');
91 if ($item->getValue() !==
false)
93 $arrFilter[$item->getPostVar()] = $item->getValue();
96 $data = $a_object->getQuestionblocksTable($arrFilter);
109 include_once(
"./Services/Form/classes/class.ilTextInputGUI.php");
113 $ti->setValidationRegexp(
'/^[^%]+$/is');
115 $ti->readFromSession();
116 $this->filter[
"title"] = $ti->getValue();
130 $this->tpl->setVariable(
'QUESTIONBLOCK_ID',
$data[
"questionblock_id"]);
138 $this->editable = $value;
148 $this->writeAccess = $value;