ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestQuestionBrowserTableGUI Class Reference
+ Inheritance diagram for ilTestQuestionBrowserTableGUI:
+ Collaboration diagram for ilTestQuestionBrowserTableGUI:

Public Member Functions

 __construct (private ilTabsGUI $tabs, private ilTree $tree, private ilDBInterface $db, private ilLogger $log, private ilComponentRepository $component_repository, private ilObjTest $test_obj, private ilAccessHandler $access, private GlobalHttpState $http_state, private Refinery $refinery, private UIFactory $ui_factory, private UIRenderer $ui_renderer, private InternalRequestService $testrequest, private ILIAS\TestQuestionPool\QuestionInfoService $questioninfo)
 
 setWriteAccess (bool $value)
 
 hasWriteAccess ()
 
 init ()
 
 executeCommand ()
 
 initFilter ()
 
 fillRow (array $a_set)
 
- Public Member Functions inherited from ilTable2GUI
 __construct (?object $a_parent_obj, string $a_parent_cmd="", string $a_template_context="")
 
 setOpenFormTag (bool $a_val)
 
 getOpenFormTag ()
 
 setCloseFormTag (bool $a_val)
 
 getCloseFormTag ()
 
 determineLimit ()
 
 getSelectableColumns ()
 Get selectable columns. More...
 
 determineSelectedColumns ()
 
 isColumnSelected (string $col)
 
 getSelectedColumns ()
 
 resetOffset (bool $a_in_determination=false)
 
 initFilter ()
 
 getParentObject ()
 
 getParentCmd ()
 
 setTopAnchor (string $a_val)
 
 getTopAnchor ()
 
 setNoEntriesText (string $a_text)
 
 getNoEntriesText ()
 
 setIsDataTable (bool $a_val)
 
 getIsDataTable ()
 
 setEnableTitle (bool $a_enabletitle)
 
 getEnableTitle ()
 
 setEnableHeader (bool $a_enableheader)
 
 getEnableHeader ()
 
 setEnableNumInfo (bool $a_val)
 
 getEnableNumInfo ()
 
 setTitle (string $a_title, string $a_icon="", string $a_icon_alt="")
 
 setDescription (string $a_val)
 
 getDescription ()
 
 setOrderField (string $a_order_field)
 
 getOrderField ()
 
 setData (array $a_data)
 
 getData ()
 
 dataExists ()
 
 setPrefix (string $a_prefix)
 
 getPrefix ()
 
 addFilterItem (ilTableFilterItem $a_input_item, bool $a_optional=false)
 
 addFilterItemByMetaType (string $id, int $type=self::FILTER_TEXT, bool $a_optional=false, string $caption="")
 Add filter by standard type. More...
 
 getFilterItems (bool $a_optionals=false)
 
 getFilterItemByPostVar (string $a_post_var)
 
 setFilterCols (int $a_val)
 
 getFilterCols ()
 
 setDisableFilterHiding (bool $a_val=true)
 
 getDisableFilterHiding ()
 
 isFilterSelected (string $a_col)
 Is given filter selected? More...
 
 getSelectedFilters ()
 
 determineSelectedFilters ()
 
 setCustomPreviousNext (string $a_prev_link, string $a_next_link)
 
 setFormAction (string $a_form_action, bool $a_multipart=false)
 
 getFormAction ()
 
 setFormName (string $a_name="")
 
 getFormName ()
 
 setId (string $a_val)
 
 getId ()
 
 setDisplayAsBlock (bool $a_val)
 
 getDisplayAsBlock ()
 
 setSelectAllCheckbox (string $a_select_all_checkbox, bool $a_select_all_on_top=false)
 
 setExternalSorting (bool $a_val)
 
 getExternalSorting ()
 
 setFilterCommand (string $a_val, string $a_caption="")
 
 getFilterCommand ()
 
 setResetCommand (string $a_val, string $a_caption="")
 
 getResetCommand ()
 
 setExternalSegmentation (bool $a_val)
 
 getExternalSegmentation ()
 
 setRowTemplate (string $a_template, string $a_template_dir="")
 Set row template. More...
 
 setDefaultOrderField (string $a_defaultorderfield)
 
 getDefaultOrderField ()
 
 setDefaultOrderDirection (string $a_defaultorderdirection)
 
 getDefaultOrderDirection ()
 
 setDefaultFilterVisiblity (bool $a_status)
 
 getDefaultFilterVisibility ()
 
 clearCommandButtons ()
 
 addCommandButton (string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
 
 addCommandButtonInstance (ilButtonBase $a_button)
 
 addMultiItemSelectionButton (string $a_sel_var, array $a_options, string $a_cmd, string $a_text, string $a_default_selection='')
 
 setCloseCommand (string $a_link)
 
 addMultiCommand (string $a_cmd, string $a_text)
 
 addHiddenInput (string $a_name, string $a_value)
 
 addHeaderCommand (string $a_href, string $a_text, string $a_target="", string $a_img="")
 
 setTopCommands (bool $a_val)
 
 getTopCommands ()
 
 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)
 
 getNavParameter ()
 
 setOrderLink (string $key, string $order_dir)
 
 fillHeader ()
 
 determineOffsetAndOrder (bool $a_omit_offset=false)
 
 storeNavParameter ()
 
 getHTML ()
 Get HTML. More...
 
 numericOrdering (string $a_field)
 Should this field be sorted numeric? More...
 
 render ()
 
 writeFilterToSession ()
 
 resetFilter ()
 
 fillFooter ()
 
 getLinkbar (string $a_num)
 
 fillHiddenRow ()
 
 fillActionRow ()
 
 setHeaderHTML (string $html)
 
 storeProperty (string $type, string $value)
 
 loadProperty (string $type)
 
 getCurrentState ()
 get current settings for order, limit, columns and filter More...
 
 setContext (string $id)
 
 getContext ()
 
 setShowRowsSelector (bool $a_value)
 Toggle rows-per-page selector. More...
 
 getShowRowsSelector ()
 
 setShowTemplates (bool $a_value)
 
 getShowTemplates ()
 
 restoreTemplate (string $a_name)
 Restore state from template. More...
 
 saveTemplate (string $a_name)
 Save current state as template. More...
 
 deleteTemplate (string $a_name)
 
 getLimit ()
 
 getOffset ()
 
 setExportFormats (array $formats)
 Set available export formats. More...
 
 setPrintMode (bool $a_value=false)
 
 getPrintMode ()
 
 getExportMode ()
 
 exportData (int $format, bool $send=false)
 Export and optionally send current table data. More...
 
 setEnableAllCommand (bool $a_value)
 
 setRowSelectorLabel (string $row_selector_label)
 
 getRowSelectorLabel ()
 
 setPreventDoubleSubmission (bool $a_val)
 
 getPreventDoubleSubmission ()
 
 setLimit (int $a_limit=0, int $a_default_limit=0)
 
- Public Member Functions inherited from ilTableGUI
 __construct (array $a_data=[], bool $a_global_tpl=true)
 
 setTemplate (ilTemplate $a_tpl)
 
 getTemplateObject ()
 
 setData (array $a_data)
 Set table data. More...
 
 getData ()
 
 setTitle (string $a_title, string $a_icon="", string $a_icon_alt="")
 
 setHelp (string $a_help_page, string $a_help_icon, string $a_help_icon_alt="")
 
 setHeaderNames (array $a_header_names)
 
 getColumnCount ()
 
 setHeaderVars (array $a_header_vars, array $a_header_params=[])
 
 setColumnWidth (array $a_column_width)
 set table column widths More...
 
 setOneColumnWidth (string $a_column_width, int $a_column_number)
 
 setMaxCount (int $a_max_count)
 set max. More...
 
 setLimit (int $a_limit=0, int $a_default_limit=0)
 set max. More...
 
 getLimit ()
 
 setPrefix (string $a_prefix)
 set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort separately) More...
 
 setOffset (int $a_offset)
 set dataset offset More...
 
 getOffset ()
 
 setOrderColumn (string $a_order_column="", string $a_default_column="")
 
 getOrderColumn ()
 
 setOrderDirection (string $a_order_direction)
 
 getOrderDirection ()
 
 setFooter (string $a_style, string $a_previous="", string $a_next="")
 
 enable (string $a_module_name)
 
 disable (string $a_module_name)
 
 sortData ()
 
 render ()
 
 renderHeader ()
 
 setOrderLink (string $key, string $order_dir)
 
 setStyle (string $a_element, string $a_style)
 
 getStyle (string $a_element)
 
 setBase (string $a_base)
 
 getBase ()
 
 getFormName ()
 get the name of the parent form More...
 
 setFormName (string $a_name="cmd")
 
 getSelectAllCheckbox ()
 get the name of the checkbox that should be toggled with a select all button More...
 
 setSelectAllCheckbox (string $a_select_all_checkbox)
 
 clearActionButtons ()
 
 addActionButton (string $btn_name, string $btn_value)
 

Data Fields

const CONTEXT_PARAMETER = 'question_browse_context'
 
const CONTEXT_PAGE_VIEW = 'contextPageView'
 
const CONTEXT_LIST_VIEW = 'contextListView'
 
const MODE_PARAMETER = 'question_browse_mode'
 
const MODE_BROWSE_POOLS = 'modeBrowsePools'
 
const MODE_BROWSE_TESTS = 'modeBrowseTests'
 
const CMD_BROWSE_QUESTIONS = 'browseQuestions'
 
const CMD_APPLY_FILTER = 'applyFilter'
 
const CMD_RESET_FILTER = 'resetFilter'
 
const CMD_INSERT_QUESTIONS = 'insertQuestions'
 
- Data Fields inherited from ilTable2GUI
const FILTER_TEXT = 1
 
const FILTER_SELECT = 2
 
const FILTER_DATE = 3
 
const FILTER_LANGUAGE = 4
 
const FILTER_NUMBER_RANGE = 5
 
const FILTER_DATE_RANGE = 6
 
const FILTER_DURATION_RANGE = 7
 
const FILTER_DATETIME_RANGE = 8
 
const FILTER_CHECKBOX = 9
 
const EXPORT_EXCEL = 1
 
const EXPORT_CSV = 2
 
const ACTION_ALL_LIMIT = 1000
 
- Data Fields inherited from ilTableGUI
string $title = ""
 
string $icon = ""
 
string $icon_alt = ""
 
string $help_page = ""
 
string $help_icon = ""
 
string $help_icon_alt = ""
 
array $header_names = []
 
array $header_vars = []
 
array $linkbar_vars = []
 
array $data = []
 
int $column_count = 0
 
array $column_width = []
 
int $max_count = 0
 
int $limit = 0
 
bool $max_limit = false
 
int $offset = 0
 
string $order_column = ""
 
string $order_direction = ""
 
string $footer_style = ""
 
string $footer_previous = ""
 
string $footer_next = ""
 
bool $lang_support = true
 
bool $global_tpl = false
 
string $form_name = ""
 
string $select_all_checkbox = ""
 
array $action_buttons = []
 
string $prefix = ""
 
string $base = ""
 
array $enabled
 
array $styles
 

Protected Member Functions

 getTranslatedLifecycle (?string $lifecycle)
 
- Protected Member Functions inherited from ilTable2GUI
 getRequestedValues ()
 
 prepareOutput ()
 Anything that must be done before HTML is generated. More...
 
 isFilterVisible ()
 Check if filter is visible: manually shown (session, db) or default value set. More...
 
 isAdvMDFilter (ilAdvancedMDRecordGUI $a_gui, ilTableFilterItem $a_element)
 Check if filter element is based on adv md. More...
 
 fillRow (array $a_set)
 Standard Version of Fill Row. More...
 
 getFilterValue (ilTableFilterItem $a_item)
 Get current filter value. More...
 
 setFilterValue (ilTableFilterItem $a_item, $a_value)
 
 fillMetaExcel (ilExcel $a_excel, int &$a_row)
 Add meta information to excel export. More...
 
 fillHeaderExcel (ilExcel $a_excel, int &$a_row)
 Excel Version of Fill Header. More...
 
 fillRowExcel (ilExcel $a_excel, int &$a_row, array $a_set)
 Excel Version of Fill Row. More...
 
 fillMetaCSV (ilCSVWriter $a_csv)
 Add meta information to csv export. More...
 
 fillHeaderCSV (ilCSVWriter $a_csv)
 CSV Version of Fill Header. More...
 
 fillRowCSV (ilCSVWriter $a_csv, array $a_set)
 CSV Version of Fill Row. More...
 

Private Member Functions

 browseQuestionsCmd ()
 
 applyFilterCmd ()
 
 resetFilterCmd ()
 
 insertQuestionsCmd ()
 
 handleParameters ()
 
 fetchContextParameter ()
 
 fetchModeParameter ()
 
 handleTabs ()
 
 getBackTargetLabel ()
 
 getBackTargetUrl ()
 
 getBackTargetCmdClass ()
 
 getBackTargetCommand ()
 
 getBrowseQuestionsTabLabel ()
 
 getBrowseQuestionsTabUrl ()
 
 getParentObjectLabel ()
 
 buildPossiblyLinkedQuestonPoolOrTestTitle (int $obj_id, string $parent_title)
 
 buildTestQuestionSetConfig ()
 
 getQuestionsData ()
 
 getQuestionInstanceTypeFilter ()
 
 getQuestionParentObjIds (int $repositoryRootNode)
 
 getQuestionParentObjectType ()
 

Private Attributes

const REPOSITORY_ROOT_NODE_ID = 1
 
bool $writeAccess = false
 
array $filter = []
 

Additional Inherited Members

- Static Public Member Functions inherited from ilTable2GUI
static getAllCommandLimit ()
 
- Static Public Member Functions inherited from ilTableGUI
static linkbar (string $AScript, int $AHits, int $ALimit, int $AOffset, array $AParams=array(), array $ALayout=array(), string $prefix='')
 
- Protected Attributes inherited from ilTable2GUI
string $requested_tmpl_delete
 
string $requested_tmpl_create
 
string $requested_nav_par2 = ""
 
string $requested_nav_par = ""
 
string $requested_nav_par1 = ""
 
ILIAS Table TableGUIRequest $table_request = null
 
array $selected_columns = []
 
ilCtrl $ctrl
 
object $parent_obj = null
 
string $parent_cmd = ""
 
string $close_command = ""
 
string $top_anchor = "il_table_top"
 
array $filters = array()
 
array $optional_filters = array()
 
string $filter_cmd = 'applyFilter'
 
string $reset_cmd = 'resetFilter'
 
int $filter_cols = 5
 
bool $ext_sort = false
 
bool $ext_seg = false
 
string $context = ""
 
array $mi_sel_buttons = []
 
bool $disable_filter_hiding = false
 
bool $top_commands = true
 
array $selectable_columns = array()
 
array $selected_column = array()
 
bool $show_templates = false
 
bool $show_rows_selector = true
 
bool $rows_selector_off = false
 
bool $nav_determined = false
 
bool $limit_determined = false
 
bool $filters_determined = false
 
bool $columns_determined = false
 
bool $open_form_tag = true
 
bool $close_form_tag = true
 
array $export_formats = []
 
int $export_mode = 0
 
bool $print_mode = false
 
bool $enable_command_for_all = false
 
bool $restore_filter = false
 
array $restore_filter_values = []
 
bool $default_filter_visibility = false
 
array $sortable_fields = array()
 
bool $prevent_double_submission = true
 
string $row_selector_label = ""
 
bool $select_all_on_top = false
 
array $sel_buttons = []
 
string $nav_value = ''
 
string $noentriestext = ''
 
string $css_row = ''
 
bool $display_as_block = false
 
string $description = ''
 
string $id = ""
 
bool $custom_prev_next = false
 
string $reset_cmd_txt = ""
 
string $defaultorderfield = ""
 
string $defaultorderdirection = ""
 
array $column = []
 
bool $datatable = false
 
bool $num_info = false
 
bool $form_multipart = false
 
array $row_data = []
 
string $order_field = ""
 
array $selected_filter = []
 
string $form_action = ""
 
string $formname = ""
 
string $sort_order = ""
 
array $buttons = []
 
array $multi = []
 
array $hidden_inputs = []
 
array $header_commands = []
 
string $row_template = ""
 
string $row_template_dir = ""
 
string $filter_cmd_txt = ""
 
string $custom_prev = ""
 
string $custom_next = ""
 
array $raw_post_data = null
 
ilGlobalTemplateInterface $main_tpl
 
- Protected Attributes inherited from ilTableGUI
string $sort_order
 
string $link_params
 
array $header_params
 
 $tpl
 
ilLanguage $lng
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilTestQuestionBrowserTableGUI::__construct ( private ilTabsGUI  $tabs,
private ilTree  $tree,
private ilDBInterface  $db,
private ilLogger  $log,
private ilComponentRepository  $component_repository,
private ilObjTest  $test_obj,
private ilAccessHandler  $access,
private GlobalHttpState  $http_state,
private Refinery  $refinery,
private UIFactory  $ui_factory,
private UIRenderer  $ui_renderer,
private InternalRequestService  $testrequest,
private ILIAS\TestQuestionPool\QuestionInfoService  $questioninfo 
)

Definition at line 55 of file class.ilTestQuestionBrowserTableGUI.php.

References ILIAS\MetaData\Repository\Validation\Data\__construct(), ilTable2GUI\addColumn(), ILIAS\Repository\ctrl(), ilTableGUI\enable(), ilTable2GUI\getParentCmd(), getParentObjectLabel(), initFilter(), ILIAS\Repository\lng(), ilTable2GUI\setDefaultOrderDirection(), ilTable2GUI\setDefaultOrderField(), ilTable2GUI\setDisableFilterHiding(), ilTable2GUI\setFilterCommand(), ilTable2GUI\setFormAction(), ilTable2GUI\setFormName(), ilTable2GUI\setId(), ilTable2GUI\setResetCommand(), ilTable2GUI\setRowTemplate(), ilTable2GUI\setSelectAllCheckbox(), and ilTableGUI\setStyle().

69  {
70  $this->setId('qpl_brows_tabl_' . $this->test_obj->getId());
71 
72  parent::__construct($this, self::CMD_BROWSE_QUESTIONS);
73  $this->setFilterCommand(self::CMD_APPLY_FILTER);
74  $this->setResetCommand(self::CMD_RESET_FILTER);
75 
76  $this->setFormName('questionbrowser');
77  $this->setStyle('table', 'fullwidth');
78  $this->addColumn('', '', '1%', true);
79  $this->addColumn($this->lng->txt("tst_question_title"), 'title', '');
80  $this->addColumn($this->lng->txt("description"), 'description', '');
81  $this->addColumn($this->lng->txt("tst_question_type"), 'ttype', '');
82  $this->addColumn($this->lng->txt("author"), 'author', '');
83  $this->addColumn($this->lng->txt('qst_lifecycle'), 'lifecycle', '');
84  $this->addColumn($this->lng->txt("create_date"), 'created', '');
85  $this->addColumn(
86  $this->lng->txt("last_update"),
87  'tstamp',
88  ''
89  ); // name of col is proper "updated" but in data array the key is "tstamp"
90  $this->addColumn($this->getParentObjectLabel(), 'parent_title', '');
91  $this->setSelectAllCheckbox('q_id');
92  $this->setRowTemplate("tpl.il_as_tst_question_browser_row.html", "Modules/Test");
93 
94  $this->setFormAction($this->ctrl->getFormAction($this->getParentObject(), $this->getParentCmd()));
95  $this->setDefaultOrderField("title");
96  $this->setDefaultOrderDirection("asc");
97 
98  $this->enable('sort');
99  $this->enable('select_all');
100  $this->initFilter();
101  $this->setDisableFilterHiding(true);
102  }
enable(string $a_module_name)
setFormAction(string $a_form_action, bool $a_multipart=false)
setResetCommand(string $a_val, string $a_caption="")
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
setDisableFilterHiding(bool $a_val=true)
setFormName(string $a_name="")
setId(string $a_val)
setStyle(string $a_element, string $a_style)
__construct(VocabulariesInterface $vocabularies)
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)
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)
+ Here is the call graph for this function:

Member Function Documentation

◆ applyFilterCmd()

ilTestQuestionBrowserTableGUI::applyFilterCmd ( )
private

Definition at line 148 of file class.ilTestQuestionBrowserTableGUI.php.

References ILIAS\Repository\ctrl(), and ilTable2GUI\writeFilterToSession().

148  : void
149  {
150  $this->writeFilterToSession();
151  $this->ctrl->redirect($this, self::CMD_BROWSE_QUESTIONS);
152  }
+ Here is the call graph for this function:

◆ browseQuestionsCmd()

ilTestQuestionBrowserTableGUI::browseQuestionsCmd ( )
private

Definition at line 140 of file class.ilTestQuestionBrowserTableGUI.php.

References ILIAS\Repository\ctrl(), getQuestionsData(), and ilTable2GUI\setData().

140  : bool
141  {
142  $this->setData($this->getQuestionsData());
143 
144  $this->main_tpl->setContent($this->ctrl->getHTML($this));
145  return true;
146  }
setData(array $a_data)
+ Here is the call graph for this function:

◆ buildPossiblyLinkedQuestonPoolOrTestTitle()

ilTestQuestionBrowserTableGUI::buildPossiblyLinkedQuestonPoolOrTestTitle ( int  $obj_id,
string  $parent_title 
)
private

Definition at line 445 of file class.ilTestQuestionBrowserTableGUI.php.

References ILIAS\Repository\access(), ILIAS\Repository\ctrl(), fetchModeParameter(), and ILIAS\Repository\lng().

Referenced by fillRow().

445  : string
446  {
447  switch ($this->fetchModeParameter()) {
448  case self::MODE_BROWSE_POOLS:
449  return $this->buildPossiblyLinkedQuestonPoolTitle(
450  $this->ctrl,
451  $this->access,
452  $this->lng,
453  $this->ui_factory,
454  $this->ui_renderer,
455  $obj_id,
456  $parent_title
457  );
458 
459  case self::MODE_BROWSE_TESTS:
460  return $this->buildPossiblyLinkedTestTitle(
461  $this->ctrl,
462  $this->access,
463  $this->lng,
464  $this->ui_factory,
465  $this->ui_renderer,
466  $obj_id,
467  $parent_title
468  );
469  }
470 
471  return '';
472  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildTestQuestionSetConfig()

ilTestQuestionBrowserTableGUI::buildTestQuestionSetConfig ( )
private

Definition at line 474 of file class.ilTestQuestionBrowserTableGUI.php.

References ILIAS\Repository\lng().

Referenced by insertQuestionsCmd().

475  {
476  $testQuestionSetConfigFactory = new ilTestQuestionSetConfigFactory(
477  $this->tree,
478  $this->db,
479  $this->lng,
480  $this->log,
481  $this->component_repository,
482  $this->test_obj,
483  $this->questioninfo
484  );
485 
486  return $testQuestionSetConfigFactory->getQuestionSetConfig();
487  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilTestQuestionBrowserTableGUI::executeCommand ( )

Definition at line 121 of file class.ilTestQuestionBrowserTableGUI.php.

References ILIAS\Repository\ctrl(), handleParameters(), and handleTabs().

121  : bool
122  {
123  $this->handleParameters();
124  $this->handleTabs();
125 
126  switch (strtolower((string) $this->ctrl->getNextClass($this))) {
127  case strtolower(__CLASS__):
128  case '':
129 
130  $cmd = $this->ctrl->getCmd() . 'Cmd';
131  return $this->$cmd();
132 
133  default:
134 
135  $this->ctrl->setReturn($this, self::CMD_BROWSE_QUESTIONS);
136  return parent::executeCommand();
137  }
138  }
+ Here is the call graph for this function:

◆ fetchContextParameter()

ilTestQuestionBrowserTableGUI::fetchContextParameter ( )
private
Returns
mixed|null

Definition at line 222 of file class.ilTestQuestionBrowserTableGUI.php.

Referenced by getBackTargetCmdClass(), and getBackTargetCommand().

223  {
224  if ($this->testrequest->isset(self::CONTEXT_PARAMETER)) {
225  return $this->testrequest->raw(self::CONTEXT_PARAMETER);
226  }
227 
228  return null;
229  }
+ Here is the caller graph for this function:

◆ fetchModeParameter()

ilTestQuestionBrowserTableGUI::fetchModeParameter ( )
private
Returns
mixed|null

Definition at line 234 of file class.ilTestQuestionBrowserTableGUI.php.

Referenced by buildPossiblyLinkedQuestonPoolOrTestTitle(), getBrowseQuestionsTabLabel(), getParentObjectLabel(), getQuestionInstanceTypeFilter(), getQuestionParentObjectType(), getQuestionParentObjIds(), and initFilter().

235  {
236  if ($this->testrequest->isset(self::MODE_PARAMETER)) {
237  return $this->testrequest->raw(self::MODE_PARAMETER);
238  }
239 
240  return null;
241  }
+ Here is the caller graph for this function:

◆ fillRow()

ilTestQuestionBrowserTableGUI::fillRow ( array  $a_set)

Definition at line 420 of file class.ilTestQuestionBrowserTableGUI.php.

References buildPossiblyLinkedQuestonPoolOrTestTitle(), ilDatePresentation\formatDate(), getTranslatedLifecycle(), and IL_CAL_UNIX.

420  : void
421  {
422  $this->tpl->setVariable("QUESTION_ID", $a_set["question_id"]);
423  $this->tpl->setVariable("QUESTION_TITLE", $a_set["title"]);
424  $this->tpl->setVariable("QUESTION_COMMENT", $a_set["description"]);
425  $this->tpl->setVariable("QUESTION_TYPE", $this->questioninfo->getQuestionTypeName($a_set["question_id"]));
426  $this->tpl->setVariable("QUESTION_AUTHOR", $a_set["author"]);
427  $this->tpl->setVariable("QUESTION_LIFECYCLE", $this->getTranslatedLifecycle($a_set['lifecycle']));
428  $this->tpl->setVariable(
429  "QUESTION_CREATED",
430  ilDatePresentation::formatDate(new ilDate($a_set['created'], IL_CAL_UNIX))
431  );
432  $this->tpl->setVariable(
433  "QUESTION_UPDATED",
434  ilDatePresentation::formatDate(new ilDate($a_set["tstamp"], IL_CAL_UNIX))
435  );
436  $this->tpl->setVariable(
437  "QUESTION_POOL_OR_TEST_TITLE",
439  (int) $a_set["obj_fi"],
440  $a_set["parent_title"]
441  )
442  );
443  }
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
const IL_CAL_UNIX
buildPossiblyLinkedQuestonPoolOrTestTitle(int $obj_id, string $parent_title)
+ Here is the call graph for this function:

◆ getBackTargetCmdClass()

ilTestQuestionBrowserTableGUI::getBackTargetCmdClass ( )
private

Definition at line 274 of file class.ilTestQuestionBrowserTableGUI.php.

References fetchContextParameter().

Referenced by getBackTargetUrl(), and insertQuestionsCmd().

274  : string
275  {
276  switch ($this->fetchContextParameter()) {
277  case self::CONTEXT_PAGE_VIEW:
278 
279  return 'ilTestExpressPageObjectGUI';
280  case self::CONTEXT_LIST_VIEW:
281  default:
282  return 'ilObjTestGUI';
283  }
284  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getBackTargetCommand()

ilTestQuestionBrowserTableGUI::getBackTargetCommand ( )
private

Definition at line 286 of file class.ilTestQuestionBrowserTableGUI.php.

References fetchContextParameter().

Referenced by getBackTargetUrl(), and insertQuestionsCmd().

286  : string
287  {
288  switch ($this->fetchContextParameter()) {
289  case self::CONTEXT_LIST_VIEW:
290 
291  return 'questions';
292 
293  case self::CONTEXT_PAGE_VIEW:
294 
295  return 'showPage';
296  }
297 
298  return '';
299  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getBackTargetLabel()

ilTestQuestionBrowserTableGUI::getBackTargetLabel ( )
private

Definition at line 261 of file class.ilTestQuestionBrowserTableGUI.php.

References ILIAS\Repository\lng().

Referenced by handleTabs().

261  : string
262  {
263  return $this->lng->txt('backtocallingtest');
264  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getBackTargetUrl()

ilTestQuestionBrowserTableGUI::getBackTargetUrl ( )
private

Definition at line 266 of file class.ilTestQuestionBrowserTableGUI.php.

References ILIAS\Repository\ctrl(), getBackTargetCmdClass(), and getBackTargetCommand().

Referenced by handleTabs().

266  : string
267  {
268  return $this->ctrl->getLinkTargetByClass(
269  $this->getBackTargetCmdClass(),
270  $this->getBackTargetCommand()
271  );
272  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getBrowseQuestionsTabLabel()

ilTestQuestionBrowserTableGUI::getBrowseQuestionsTabLabel ( )
private

Definition at line 301 of file class.ilTestQuestionBrowserTableGUI.php.

References fetchModeParameter(), and ILIAS\Repository\lng().

Referenced by handleTabs().

301  : string
302  {
303  switch ($this->fetchModeParameter()) {
304  case self::MODE_BROWSE_POOLS:
305 
306  return $this->lng->txt('tst_browse_for_qpl_questions');
307 
308  case self::MODE_BROWSE_TESTS:
309 
310  return $this->lng->txt('tst_browse_for_tst_questions');
311  }
312 
313  return '';
314  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getBrowseQuestionsTabUrl()

ilTestQuestionBrowserTableGUI::getBrowseQuestionsTabUrl ( )
private

Definition at line 316 of file class.ilTestQuestionBrowserTableGUI.php.

References ILIAS\Repository\ctrl().

Referenced by handleTabs().

316  : string
317  {
318  return $this->ctrl->getLinkTarget($this, self::CMD_BROWSE_QUESTIONS);
319  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getParentObjectLabel()

ilTestQuestionBrowserTableGUI::getParentObjectLabel ( )
private

Definition at line 396 of file class.ilTestQuestionBrowserTableGUI.php.

References fetchModeParameter(), and ILIAS\Repository\lng().

Referenced by __construct(), and initFilter().

396  : string
397  {
398  switch ($this->fetchModeParameter()) {
399  case self::MODE_BROWSE_POOLS:
400 
401  return $this->lng->txt('qpl');
402 
403  case self::MODE_BROWSE_TESTS:
404 
405  return $this->lng->txt('tst');
406  }
407 
408  return '';
409  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getQuestionInstanceTypeFilter()

ilTestQuestionBrowserTableGUI::getQuestionInstanceTypeFilter ( )
private

Definition at line 533 of file class.ilTestQuestionBrowserTableGUI.php.

References fetchModeParameter(), ilAssQuestionList\QUESTION_INSTANCE_TYPE_ALL, and ilAssQuestionList\QUESTION_INSTANCE_TYPE_ORIGINALS.

Referenced by getQuestionsData().

533  : string
534  {
535  if ($this->fetchModeParameter() === self::MODE_BROWSE_TESTS) {
537  }
538 
540  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getQuestionParentObjectType()

ilTestQuestionBrowserTableGUI::getQuestionParentObjectType ( )
private

Definition at line 581 of file class.ilTestQuestionBrowserTableGUI.php.

References fetchModeParameter().

Referenced by getQuestionParentObjIds(), and getQuestionsData().

581  : string
582  {
583  if ($this->fetchModeParameter() === self::MODE_BROWSE_TESTS) {
584  return 'tst';
585  }
586 
587  return 'qpl';
588  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getQuestionParentObjIds()

ilTestQuestionBrowserTableGUI::getQuestionParentObjIds ( int  $repositoryRootNode)
private
Parameters
int$repositoryRootNode
Returns
int[]

Definition at line 546 of file class.ilTestQuestionBrowserTableGUI.php.

References $refId, ilObject\_getAllReferences(), ilObjQuestionPool\_getAvailableQuestionpools(), ILIAS\Repository\access(), fetchModeParameter(), and getQuestionParentObjectType().

Referenced by getQuestionsData().

546  : array
547  {
548  $parents = $this->tree->getSubTree(
549  $this->tree->getNodeData($repositoryRootNode),
550  true,
551  [$this->getQuestionParentObjectType()]
552  );
553 
554  $parentIds = [];
555 
556  foreach ($parents as $nodeData) {
557  if ((int) $nodeData['obj_id'] === $this->test_obj->getId()) {
558  continue;
559  }
560 
561  $parentIds[$nodeData['obj_id']] = $nodeData['obj_id'];
562  }
563 
564  $parentIds = array_map('intval', array_values($parentIds));
565 
566  if ($this->fetchModeParameter() === self::MODE_BROWSE_POOLS) {
567  $available_pools = array_map('intval', array_keys(ilObjQuestionPool::_getAvailableQuestionpools(true)));
568  return array_intersect($parentIds, $available_pools);
569  } elseif ($this->fetchModeParameter() === self::MODE_BROWSE_TESTS) {
570  return array_filter($parentIds, function ($obj_id): bool {
571  $refIds = ilObject::_getAllReferences($obj_id);
572  $refId = current($refIds);
573  return $this->access->checkAccess('write', '', $refId);
574  });
575  }
576 
577  // Return no parent ids if the user wants to hack...
578  return [];
579  }
static _getAvailableQuestionpools( $use_object_id=false, $equal_points=false, $could_be_offline=false, $showPath=false, $with_questioncount=false, $permission='read', $usr_id='')
Returns the available question pools for the active user.
static _getAllReferences(int $id)
get all reference ids for object ID
$refId
Definition: xapitoken.php:58
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getQuestionsData()

ilTestQuestionBrowserTableGUI::getQuestionsData ( )
private

Definition at line 489 of file class.ilTestQuestionBrowserTableGUI.php.

References ilTable2GUI\getFilterItems(), getQuestionInstanceTypeFilter(), getQuestionParentObjectType(), getQuestionParentObjIds(), ILIAS\Repository\int(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().

Referenced by browseQuestionsCmd().

489  : array
490  {
491  $questionList = new ilAssQuestionList($this->db, $this->lng, $this->refinery, $this->component_repository);
492 
493  $questionList->setQuestionInstanceTypeFilter($this->getQuestionInstanceTypeFilter());
494  $questionList->setExcludeQuestionIdsFilter($this->test_obj->getExistingQuestions());
495 
496  $repositoryRootNode = self::REPOSITORY_ROOT_NODE_ID;
497 
498  foreach ($this->getFilterItems() as $item) {
499  if (!in_array($item->getValue(), [false, null, ''], true)) {
500  switch ($item->getPostVar()) {
501  case 'title':
502  case 'description':
503  case 'author':
504  case 'lifecycle':
505  case 'type':
506  case 'parent_title':
507  $questionList->addFieldFilter($item->getPostVar(), $item->getValue());
508  break;
509 
510  case 'repository_root_node':
511  $repositoryRootNode = (int) $item->getValue();
512  }
513  }
514  }
515  if ($repositoryRootNode < 1) {
516  $repositoryRootNode = self::REPOSITORY_ROOT_NODE_ID;
517  }
518 
519  $parentObjectIds = $this->getQuestionParentObjIds($repositoryRootNode);
520 
521  if (!count($parentObjectIds)) {
522  return [];
523  }
524 
525  $questionList->setParentObjIdsFilter($parentObjectIds);
526  $questionList->setParentObjectType($this->getQuestionParentObjectType());
527 
528  $questionList->load();
529 
530  return $questionList->getQuestionDataArray();
531  }
getFilterItems(bool $a_optionals=false)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTranslatedLifecycle()

ilTestQuestionBrowserTableGUI::getTranslatedLifecycle ( ?string  $lifecycle)
protected

Definition at line 411 of file class.ilTestQuestionBrowserTableGUI.php.

References Vendor\Package\$e, ilAssQuestionLifecycle\getInstance(), and ILIAS\Repository\lng().

Referenced by fillRow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleParameters()

ilTestQuestionBrowserTableGUI::handleParameters ( )
private

Definition at line 198 of file class.ilTestQuestionBrowserTableGUI.php.

References ilTable2GUI\addHiddenInput(), and ILIAS\Repository\ctrl().

Referenced by executeCommand().

198  : void
199  {
200  if ($this->testrequest->isset(self::CONTEXT_PARAMETER)) {
201  $this->ctrl->setParameterByClass(
202  self::class,
203  self::CONTEXT_PARAMETER,
204  $this->testrequest->raw(self::CONTEXT_PARAMETER)
205  );
206  $this->addHiddenInput(self::CONTEXT_PARAMETER, $this->testrequest->raw(self::CONTEXT_PARAMETER));
207  }
208 
209  if ($this->testrequest->isset(self::MODE_PARAMETER)) {
210  $this->ctrl->setParameterByClass(
211  self::class,
212  self::MODE_PARAMETER,
213  $this->testrequest->raw(self::MODE_PARAMETER)
214  );
215  $this->addHiddenInput(self::MODE_PARAMETER, $this->testrequest->raw(self::MODE_PARAMETER));
216  }
217  }
addHiddenInput(string $a_name, string $a_value)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleTabs()

ilTestQuestionBrowserTableGUI::handleTabs ( )
private

Definition at line 243 of file class.ilTestQuestionBrowserTableGUI.php.

References getBackTargetLabel(), getBackTargetUrl(), getBrowseQuestionsTabLabel(), getBrowseQuestionsTabUrl(), and ILIAS\Repository\tabs().

Referenced by executeCommand().

243  : void
244  {
245  $this->tabs->clearTargets();
246  $this->tabs->clearSubTabs();
247 
248  $this->tabs->setBackTarget(
249  $this->getBackTargetLabel(),
250  $this->getBackTargetUrl()
251  );
252 
253  $this->tabs->addTab(
254  'browseQuestions',
256  $this->getBrowseQuestionsTabUrl()
257  );
258  $this->tabs->activateTab('browseQuestions');
259  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hasWriteAccess()

ilTestQuestionBrowserTableGUI::hasWriteAccess ( )

Definition at line 109 of file class.ilTestQuestionBrowserTableGUI.php.

References $writeAccess.

Referenced by init().

109  : bool
110  {
111  return $this->writeAccess;
112  }
+ Here is the caller graph for this function:

◆ init()

ilTestQuestionBrowserTableGUI::init ( )

Definition at line 114 of file class.ilTestQuestionBrowserTableGUI.php.

References ilTable2GUI\addMultiCommand(), hasWriteAccess(), and ILIAS\Repository\lng().

114  : void
115  {
116  if ($this->hasWriteAccess()) {
117  $this->addMultiCommand(self::CMD_INSERT_QUESTIONS, $this->lng->txt('insert'));
118  }
119  }
addMultiCommand(string $a_cmd, string $a_text)
+ Here is the call graph for this function:

◆ initFilter()

ilTestQuestionBrowserTableGUI::initFilter ( )

Definition at line 321 of file class.ilTestQuestionBrowserTableGUI.php.

References ilObjQuestionPool\_getQuestionTypes(), ilTable2GUI\addFilterItem(), fetchModeParameter(), ILIAS\Repository\filter(), ilAssQuestionLifecycle\getDraftInstance(), getParentObjectLabel(), ILIAS\Repository\lng(), ilRepositorySelectorInputGUI\setHeaderMessage(), and ilSelectInputGUI\setOptions().

Referenced by __construct().

321  : void
322  {
323  $ti = new ilTextInputGUI($this->lng->txt("tst_qbt_filter_question_title"), "title");
324  $ti->setMaxLength(64);
325  $ti->setSize(20);
326  $ti->setValidationRegexp('/(^[^%]+$)|(^$)/is');
327  $this->addFilterItem($ti);
328  $ti->readFromSession();
329  $this->filter["title"] = $ti->getValue();
330 
331  $ti = new ilTextInputGUI($this->lng->txt("description"), "description");
332  $ti->setMaxLength(64);
333  $ti->setSize(20);
334  $ti->setValidationRegexp('/(^[^%]+$)|(^$)/is');
335  $this->addFilterItem($ti);
336  $ti->readFromSession();
337  $this->filter["description"] = $ti->getValue();
338 
339  $ti = new ilTextInputGUI($this->lng->txt("author"), "author");
340  $ti->setMaxLength(64);
341  $ti->setSize(20);
342  $this->addFilterItem($ti);
343  $ti->setValidationRegexp('/(^[^%]+$)|(^$)/is');
344  $ti->readFromSession();
345  $this->filter["author"] = $ti->getValue();
346 
347  $lifecycleOptions = array_merge(
348  ['' => $this->lng->txt('qst_lifecycle_filter_all')],
349  ilAssQuestionLifecycle::getDraftInstance()->getSelectOptions($this->lng)
350  );
351  $lifecycleInp = new ilSelectInputGUI($this->lng->txt('qst_lifecycle'), 'lifecycle');
352  $lifecycleInp->setOptions($lifecycleOptions);
353  $this->addFilterItem($lifecycleInp);
354  $lifecycleInp->readFromSession();
355  $this->filter['lifecycle'] = $lifecycleInp->getValue();
356 
358  $options = [];
359  $options[""] = $this->lng->txt('filter_all_question_types');
360  foreach ($types as $translation => $row) {
361  $options[$row['type_tag']] = $translation;
362  }
363 
364  $si = new ilSelectInputGUI($this->lng->txt("question_type"), "type");
365  $si->setOptions($options);
366  $this->addFilterItem($si);
367  $si->readFromSession();
368  $this->filter["type"] = $si->getValue();
369 
370  $ti = new ilTextInputGUI($this->getParentObjectLabel(), 'parent_title');
371  $ti->setMaxLength(64);
372  $ti->setSize(20);
373  $ti->setValidationRegexp('/(^[^%]+$)|(^$)/is');
374  $this->addFilterItem($ti);
375  $ti->readFromSession();
376  $this->filter['parent_title'] = $ti->getValue();
377 
378  $ri = new ilRepositorySelectorInputGUI($this->lng->txt('repository'), 'repository_root_node');
379  $ri->setHeaderMessage($this->lng->txt('question_browse_area_info'));
380  if ($this->fetchModeParameter() === self::MODE_BROWSE_TESTS) {
381  $ri->setClickableTypes(['tst']);
382  } else {
383  $ri->setClickableTypes(['qpl']);
384  }
385  $this->addFilterItem($ri);
386  $ri->readFromSession();
387 
388  if (!$this->tree->isDeleted($ri->getValue())
389  && $this->tree->isInTree($ri->getValue())) {
390  $this->filter['repository_root_node'] = $ri->getValue();
391  } else {
392  $ri->setValue(self::REPOSITORY_ROOT_NODE_ID);
393  }
394  }
This class represents a selection list property in a property form.
addFilterItem(ilTableFilterItem $a_input_item, bool $a_optional=false)
setOptions(array $a_options)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
filter(string $filter_id, $class_path, string $cmd, bool $activated=true, bool $expanded=true)
static _getQuestionTypes($all_tags=false, $fixOrder=false, $withDeprecatedTypes=true)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertQuestionsCmd()

ilTestQuestionBrowserTableGUI::insertQuestionsCmd ( )
private

Definition at line 160 of file class.ilTestQuestionBrowserTableGUI.php.

References ILIAS\LTI\ToolProvider\$key, assQuestion\_needsManualScoring(), buildTestQuestionSetConfig(), ILIAS\Repository\ctrl(), getBackTargetCmdClass(), getBackTargetCommand(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().

160  : void
161  {
162  $selected_array = [];
163  if ($this->http_state->wrapper()->post()->has('q_id')) {
164  $selected_array = $this->http_state->wrapper()->post()->retrieve(
165  'q_id',
166  $this->refinery->kindlyTo()->listOf($this->refinery->kindlyTo()->int())
167  );
168  }
169 
170  if ($selected_array === []) {
171  $this->main_tpl->setOnScreenMessage('info', $this->lng->txt("tst_insert_missing_question"), true);
172  $this->ctrl->redirect($this, self::CMD_BROWSE_QUESTIONS);
173  }
174 
175  $testQuestionSetConfig = $this->buildTestQuestionSetConfig();
176 
177  $manscoring = false;
178 
179  foreach ($selected_array as $key => $value) {
180  $last_question_id = $this->test_obj->insertQuestion($testQuestionSetConfig, $value);
181 
182  if (!$manscoring) {
183  $manscoring |= assQuestion::_needsManualScoring($value);
184  }
185  }
186 
187  $this->test_obj->saveCompleteStatus($testQuestionSetConfig);
188 
189  if ($manscoring) {
190  $this->main_tpl->setOnScreenMessage('info', $this->lng->txt("manscoring_hint"), true);
191  } else {
192  $this->main_tpl->setOnScreenMessage('success', $this->lng->txt("tst_questions_inserted"), true);
193  }
194 
195  $this->ctrl->redirectByClass($this->getBackTargetCmdClass(), $this->getBackTargetCommand());
196  }
static _needsManualScoring(int $question_id)
string $key
Consumer key/client ID value.
Definition: System.php:193
+ Here is the call graph for this function:

◆ resetFilterCmd()

ilTestQuestionBrowserTableGUI::resetFilterCmd ( )
private

Definition at line 154 of file class.ilTestQuestionBrowserTableGUI.php.

References ILIAS\Repository\ctrl(), and ilTable2GUI\resetFilter().

154  : void
155  {
156  $this->resetFilter();
157  $this->ctrl->redirect($this, self::CMD_BROWSE_QUESTIONS);
158  }
+ Here is the call graph for this function:

◆ setWriteAccess()

ilTestQuestionBrowserTableGUI::setWriteAccess ( bool  $value)

Definition at line 104 of file class.ilTestQuestionBrowserTableGUI.php.

Referenced by ilObjTestGUI\executeCommand().

104  : void
105  {
106  $this->writeAccess = $value;
107  }
+ Here is the caller graph for this function:

Field Documentation

◆ $filter

array ilTestQuestionBrowserTableGUI::$filter = []
private

Definition at line 53 of file class.ilTestQuestionBrowserTableGUI.php.

◆ $writeAccess

bool ilTestQuestionBrowserTableGUI::$writeAccess = false
private

Definition at line 50 of file class.ilTestQuestionBrowserTableGUI.php.

Referenced by hasWriteAccess().

◆ CMD_APPLY_FILTER

const ilTestQuestionBrowserTableGUI::CMD_APPLY_FILTER = 'applyFilter'

Definition at line 46 of file class.ilTestQuestionBrowserTableGUI.php.

◆ CMD_BROWSE_QUESTIONS

const ilTestQuestionBrowserTableGUI::CMD_BROWSE_QUESTIONS = 'browseQuestions'

◆ CMD_INSERT_QUESTIONS

const ilTestQuestionBrowserTableGUI::CMD_INSERT_QUESTIONS = 'insertQuestions'

Definition at line 48 of file class.ilTestQuestionBrowserTableGUI.php.

◆ CMD_RESET_FILTER

const ilTestQuestionBrowserTableGUI::CMD_RESET_FILTER = 'resetFilter'

Definition at line 47 of file class.ilTestQuestionBrowserTableGUI.php.

◆ CONTEXT_LIST_VIEW

const ilTestQuestionBrowserTableGUI::CONTEXT_LIST_VIEW = 'contextListView'

◆ CONTEXT_PAGE_VIEW

const ilTestQuestionBrowserTableGUI::CONTEXT_PAGE_VIEW = 'contextPageView'

◆ CONTEXT_PARAMETER

const ilTestQuestionBrowserTableGUI::CONTEXT_PARAMETER = 'question_browse_context'

◆ MODE_BROWSE_POOLS

const ilTestQuestionBrowserTableGUI::MODE_BROWSE_POOLS = 'modeBrowsePools'

◆ MODE_BROWSE_TESTS

const ilTestQuestionBrowserTableGUI::MODE_BROWSE_TESTS = 'modeBrowseTests'

◆ MODE_PARAMETER

const ilTestQuestionBrowserTableGUI::MODE_PARAMETER = 'question_browse_mode'

◆ REPOSITORY_ROOT_NODE_ID

const ilTestQuestionBrowserTableGUI::REPOSITORY_ROOT_NODE_ID = 1
private

Definition at line 35 of file class.ilTestQuestionBrowserTableGUI.php.


The documentation for this class was generated from the following file: