24include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
 
   47        public function __construct($a_parent_obj, $a_parent_cmd, $a_object, $a_write_access = 
false)
 
   49                parent::__construct($a_parent_obj, $a_parent_cmd);
 
   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");
 
  111                $ti->setMaxLength(64);
 
  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;
 
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.
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.
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.
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.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
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