24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
62 public function __construct($a_parent_obj, $a_parent_cmd, $a_object, $a_write_access =
false)
66 $this->rbacreview = $DIC->rbac()->review();
67 $this->
user = $DIC->user();
68 $this->access = $DIC->access();
69 parent::__construct($a_parent_obj, $a_parent_cmd);
71 $lng = $DIC->language();
80 $this->
setStyle(
'table',
'fullwidth');
82 $this->
addColumn($this->lng->txt(
"title"),
'title',
'');
83 $this->
addColumn($this->lng->txt(
"contains"),
'contains',
'');
84 $this->
addColumn($this->lng->txt(
"obj_svy"),
'svy',
'');
89 $this->
addMultiCommand(
'insertQuestionblocks', $this->lng->txt(
'insert'));
91 $this->
setRowTemplate(
"tpl.il_svy_svy_questionblockbrowser_row.html",
"Modules/Survey");
93 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
99 $this->
enable(
'select_all');
109 $arrFilter = array();
111 if ($item->getValue() !==
false) {
112 $arrFilter[$item->getPostVar()] = $item->getValue();
115 $data = $a_object->getQuestionblocksTable($arrFilter);
130 include_once(
"./Services/Form/classes/class.ilTextInputGUI.php");
134 $ti->setValidationRegexp(
'/^[^%]+$/is');
136 $ti->readFromSession();
137 $this->filter[
"title"] = $ti->getValue();
152 $this->tpl->setVariable(
'QUESTIONBLOCK_ID',
$data[
"questionblock_id"]);
160 $this->editable = $value;
170 $this->writeAccess = $value;
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setStyle($a_element, $a_style)
addFilterItem($a_input_item, $a_optional=false)
Add filter item.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setResetCommand($a_val, $a_caption=null)
Set reset filter command.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
addMultiCommand($a_cmd, $a_text)
Add Command button.
enable($a_module_name)
enables particular modules of table
This class represents a text property in a property form.
setMaxLength($a_maxlength)
Set Max Length.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
__construct($a_parent_obj, $a_parent_cmd, $a_object, $a_write_access=false)
Constructor.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setFormName($a_formname="")
Set Form name.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
getFilterItems($a_optionals=false)
Get filter items.
setFilterCommand($a_val, $a_caption=null)
Set filter command.