24include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
 
   48        public function __construct($a_parent_obj, $a_parent_cmd, $a_object, $a_write_access = 
false)
 
   50                parent::__construct($a_parent_obj, $a_parent_cmd);
 
   60                $this->
setStyle(
'table', 
'fullwidth');
 
   62                $this->
addColumn($this->lng->txt(
"title"),
'title', 
'');
 
   64                $this->
addColumn($this->lng->txt(
"description"),
'description', 
'');
 
   65                $this->
addColumn($this->lng->txt(
"question_type"),
'ttype', 
'');
 
   66                $this->
addColumn($this->lng->txt(
"author"),
'author', 
'');
 
   67                $this->
addColumn($this->lng->txt(
"create_date"),
'created', 
'');
 
   68                $this->
addColumn($this->lng->txt(
"last_update"),
'updated', 
'');
 
   69                $this->
addColumn($this->lng->txt(
"obj_spl"),
'spl', 
'');
 
   76                $this->
setRowTemplate(
"tpl.il_svy_svy_questionbrowser_row.html", 
"Modules/Survey");
 
   78                $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
 
   81                include_once 
"./Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPool.php";
 
   86                $this->
enable(
'select_all');
 
   99                        if ($item->getValue() !== 
false)
 
  101                                $arrFilter[$item->getPostVar()] = $item->getValue();
 
  104                $data = $a_object->getQuestionsTable($arrFilter);
 
  112                                $data[$idx][
"spl"] = $pools[
$row[
"obj_fi"]];
 
  132                include_once(
"./Services/Form/classes/class.ilTextInputGUI.php");
 
  134                $ti->setMaxLength(64);
 
  135                $ti->setValidationRegexp(
'/^[^%]+$/is');
 
  138                $ti->readFromSession();
 
  139                $this->filter[
"title"] = $ti->getValue();
 
  143                $ti->setMaxLength(64);
 
  144                $ti->setValidationRegexp(
'/^[^%]+$/is');
 
  147                $ti->readFromSession();
 
  148                $this->filter[
"description"] = $ti->getValue();
 
  152                $ti->setMaxLength(64);
 
  153                $ti->setValidationRegexp(
'/^[^%]+$/is');
 
  156                $ti->readFromSession();
 
  157                $this->filter[
"author"] = $ti->getValue();
 
  160                include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
 
  161                include_once(
"./Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPool.php");
 
  162                $types = ilObjSurveyQuestionPool::_getQuestionTypes();
 
  165                foreach ($types as $translation => 
$row)
 
  173                $si->readFromSession();
 
  174                $this->filter[
"type"] = 
$si->getValue();
 
  179                $ti->setMaxLength(64);
 
  182                $ti->readFromSession();
 
  183                $this->filter[
"spl_txt"] = $ti->getValue();
 
  188                natcasesort($this->questionpools);
 
  189                foreach ($this->questionpools as $obj_id => 
$title)
 
  196                $si->readFromSession();
 
  197                $this->filter[
"type"] = 
$si->getValue();
 
  211                $this->tpl->setVariable(
'QUESTION_ID', 
$data[
"question_id"]);
 
  214                $this->tpl->setVariable(
"TXT_PREVIEW", $this->lng->txt(
"preview"));
 
  215                $guiclass = strtolower(
$data[
'type_tag']) . 
"gui";
 
  216                $this->ctrl->setParameterByClass($guiclass, 
"q_id", 
$data[
"question_id"]);
 
  217                $this->tpl->setVariable(
"LINK_PREVIEW", 
"ilias.php?baseClass=ilObjSurveyQuestionPoolGUI&ref_id=" . 
$data[
"ref_id"] . 
"&cmd=preview&preview=" . 
$data[
"question_id"]);
 
  220                $this->tpl->setVariable(
"QUESTION_TYPE", 
$data[
"ttype"]);
 
  229                $this->editable = $value;
 
  239                $this->writeAccess = $value;
 
static formatDate(ilDateTime $date)
Format a date @access public.
_getAvailableQuestionpools($use_object_id=FALSE, $could_be_offline=FALSE, $showPath=FALSE, $permission="read")
Returns the available question pools for the active user.
__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="")
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.
setFormName($a_formname)
Set Form name.
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.
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
if(!is_array($argv)) $options