37         bool $a_write_access = 
false    41         $this->rbacreview = $DIC->rbac()->review();
    42         $this->
user = $DIC->user();
    43         $this->
access = $DIC->access();
    46         $lng = $DIC->language();
    47         $ilCtrl = $DIC->ctrl();
    50         $this->
ctrl = $ilCtrl;
    55         $this->
setStyle(
'table', 
'fullwidth');
    59         $this->
addColumn($this->
lng->txt(
"description"), 
'description', 
'');
    60         $this->
addColumn($this->
lng->txt(
"question_type"), 
'ttype', 
'');
    61         $this->
addColumn($this->
lng->txt(
"author"), 
'author', 
'');
    62         $this->
addColumn($this->
lng->txt(
"create_date"), 
'created', 
'');
    63         $this->
addColumn($this->
lng->txt(
"last_update"), 
'updated', 
'');
    71         $this->
setRowTemplate(
"tpl.il_svy_svy_questionbrowser_row.html", 
"Modules/Survey");
    80         $this->
enable(
'select_all');
    92             if ($item->getValue() !== 
false) {
    93                 $arrFilter[$item->getPostVar()] = $item->getValue();
   101             foreach (
$data as $idx => $row) {
   102                 $data[$idx][
"spl"] = $pools[$row[
"obj_fi"]];
   123         $ti->setMaxLength(64);
   124         $ti->setValidationRegexp(
'/^[^%]+$/is');
   127         $ti->readFromSession();
   128         $this->
filter[
"title"] = $ti->getValue();
   132         $ti->setMaxLength(64);
   133         $ti->setValidationRegexp(
'/^[^%]+$/is');
   136         $ti->readFromSession();
   137         $this->
filter[
"description"] = $ti->getValue();
   141         $ti->setMaxLength(64);
   142         $ti->setValidationRegexp(
'/^[^%]+$/is');
   145         $ti->readFromSession();
   146         $this->
filter[
"author"] = $ti->getValue();
   151         $options[
""] = 
$lng->
txt(
'filter_all_question_types');
   152         foreach ($types as $translation => $row) {
   153             $options[$row[
'type_tag']] = $translation;
   159         $si->readFromSession();
   160         $this->
filter[
"type"] = $si->getValue();
   165         $ti->setMaxLength(64);
   168         $ti->readFromSession();
   169         $this->
filter[
"spl_txt"] = $ti->getValue();
   173         $options[
""] = 
$lng->
txt(
'filter_all_questionpools');
   174         natcasesort($this->questionpools);
   175         foreach ($this->questionpools as $obj_id => 
$title) {
   176             $options[$obj_id] = 
$title;
   181         $si->readFromSession();
   182         $this->
filter[
"type"] = $si->getValue();
   185     protected function fillRow(array $a_set): void
   187         $this->tpl->setVariable(
'QUESTION_ID', $a_set[
"question_id"]);
   190         $this->tpl->setVariable(
"TXT_PREVIEW", $this->
lng->txt(
"preview"));
   191         $guiclass = strtolower($a_set[
'type_tag']) . 
"gui";
   192         $this->
ctrl->setParameterByClass($guiclass, 
"q_id", $a_set[
"question_id"]);
   193         $this->tpl->setVariable(
"LINK_PREVIEW", 
"ilias.php?baseClass=ilObjSurveyQuestionPoolGUI&ref_id=" . $a_set[
"ref_id"] . 
"&cmd=preview&preview=" . $a_set[
"question_id"]);
   195         $this->tpl->setVariable(
   196             "QUESTION_DESCRIPTION",
   199         $this->tpl->setVariable(
"QUESTION_TYPE", $a_set[
"ttype"]);
   208         $this->editable = $value;
   218         $this->writeAccess = $value;
 
enable(string $a_module_name)
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
addFilterItem(ilTableFilterItem $a_input_item, bool $a_optional=false)
 
__construct(object $a_parent_obj, string $a_parent_cmd, ilObjSurvey $a_object, bool $a_write_access=false)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setResetCommand(string $a_val, string $a_caption="")
 
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
 
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
 
static _getAvailableQuestionpools(bool $use_object_id=false, bool $could_be_offline=false, bool $showPath=false, string $permission="read")
Returns the available question pools for the active user. 
 
setFormName(string $a_name="")
 
setWriteAccess(bool $value)
 
getQuestionsTable(array $arrFilter)
Retrieve data for question browser. 
 
setStyle(string $a_element, string $a_style)
 
setDefaultOrderField(string $a_defaultorderfield)
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
setFilterCommand(string $a_val, string $a_caption="")
 
setDefaultOrderDirection(string $a_defaultorderdirection)
 
static _getQuestiontypes()
Get all available question types. 
 
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
 
filter(string $filter_id, $class_path, string $cmd, bool $activated=true, bool $expanded=true)
 
initData(ilObjSurvey $a_object)
 
getFilterItems(bool $a_optionals=false)
 
addMultiCommand(string $a_cmd, string $a_text)
 
setPrefix(string $a_prefix)