37 public function __construct($a_parent_obj, $a_parent_cmd, $a_object, $a_write_access =
false)
41 $this->rbacreview =
$DIC->rbac()->review();
42 $this->
user = $DIC->user();
43 $this->access =
$DIC->access();
47 $ilCtrl =
$DIC->ctrl();
50 $this->ctrl = $ilCtrl;
55 $this->
setStyle(
'table',
'fullwidth');
57 $this->
addColumn($this->lng->txt(
"title"),
'title',
'');
58 $this->
addColumn($this->lng->txt(
"contains"),
'contains',
'');
59 $this->
addColumn($this->lng->txt(
"obj_svy"),
'svy',
'');
64 $this->
addMultiCommand(
'insertQuestionblocks', $this->lng->txt(
'insert'));
66 $this->
setRowTemplate(
"tpl.il_svy_svy_questionblockbrowser_row.html",
"Modules/Survey");
68 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
74 $this->
enable(
'select_all');
86 if ($item->getValue() !==
false) {
87 $arrFilter[$item->getPostVar()] = $item->getValue();
90 $data = $a_object->getQuestionblocksTable($arrFilter);
106 $ti->setMaxLength(64);
108 $ti->setValidationRegexp(
'/^[^%]+$/is');
110 $ti->readFromSession();
111 $this->
filter[
"title"] = $ti->getValue();
126 $this->tpl->setVariable(
'QUESTIONBLOCK_ID',
$data[
"questionblock_id"]);
134 $this->editable = $value;
144 $this->writeAccess = $value;
An exception for terminatinating execution or to throw for unit testing.
__construct($a_parent_obj, $a_parent_cmd, $a_object, $a_write_access=false)
Constructor.
setPrefix($a_prefix)
set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort...
getFilterItems($a_optionals=false)
Get filter items.
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.
setData($a_data)
set table data @access public
setResetCommand($a_val, $a_caption=null)
Set reset filter command.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
addFilterItem($a_input_item, $a_optional=false)
Add filter item.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
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.
setFormName($a_formname="")
Set Form name.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setFilterCommand($a_val, $a_caption=null)
Set filter command.
setStyle($a_element, $a_style)
enable($a_module_name)
enables particular modules of table
This class represents a text property in a property form.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc