ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestQuestionBrowserTableGUI Class Reference
+ Inheritance diagram for ilTestQuestionBrowserTableGUI:
+ Collaboration diagram for ilTestQuestionBrowserTableGUI:

Public Member Functions

 __construct (ilCtrl $ctrl, ilGlobalTemplateInterface $mainTpl, ilTabsGUI $tabs, ilLanguage $lng, ilTree $tree, ilDBInterface $db, ilComponentRepository $component_repository, ilObjTest $testOBJ, ilAccessHandler $access, ILIAS\HTTP\GlobalHttpState $httpState, Refinery $refinery, UIFactory $ui_factory, UIRenderer $ui_renderer)
 
 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
 
ILIAS Test InternalRequestService $testrequest
 
ILIAS HTTP GlobalHttpState $httpState
 
ILIAS Refinery Factory $refinery
 
bool $writeAccess = false
 
ilGlobalTemplateInterface $mainTpl
 
ilTabsGUI $tabs
 
ilTree $tree
 
ilDBInterface $db
 
ilComponentRepository $component_repository
 
ilObjTest $testOBJ
 
ilAccessHandler $access
 
UIFactory $ui_factory
 
UIRenderer $ui_renderer
 
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 ( ilCtrl  $ctrl,
ilGlobalTemplateInterface  $mainTpl,
ilTabsGUI  $tabs,
ilLanguage  $lng,
ilTree  $tree,
ilDBInterface  $db,
ilComponentRepository  $component_repository,
ilObjTest  $testOBJ,
ilAccessHandler  $access,
ILIAS\HTTP\GlobalHttpState  $httpState,
Refinery  $refinery,
UIFactory  $ui_factory,
UIRenderer  $ui_renderer 
)

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

References $access, $component_repository, ilTable2GUI\$ctrl, $db, $DIC, $httpState, ilTableGUI\$lng, $mainTpl, $refinery, $tabs, $testOBJ, $tree, $ui_factory, $ui_renderer, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\access(), ilTable2GUI\addColumn(), ILIAS\Repository\ctrl(), ilTableGUI\enable(), ilTable2GUI\getParentCmd(), getParentObjectLabel(), initFilter(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ilTable2GUI\setDefaultOrderDirection(), ilTable2GUI\setDefaultOrderField(), ilTable2GUI\setDisableFilterHiding(), ilTable2GUI\setFilterCommand(), ilTable2GUI\setFormAction(), ilTable2GUI\setFormName(), ilTable2GUI\setId(), ilTable2GUI\setResetCommand(), ilTable2GUI\setRowTemplate(), ilTable2GUI\setSelectAllCheckbox(), ilTableGUI\setStyle(), and ILIAS\Repository\tabs().

80  {
81  $this->ctrl = $ctrl;
82  $this->mainTpl = $mainTpl;
83  $this->tabs = $tabs;
84  $this->lng = $lng;
85  $this->tree = $tree;
86  $this->db = $db;
87  $this->component_repository = $component_repository;
88  $this->testOBJ = $testOBJ;
89  $this->access = $access;
90  $this->httpState = $httpState;
91  $this->refinery = $refinery;
92  $this->ui_factory = $ui_factory;
93  $this->ui_renderer = $ui_renderer;
94 
95  $this->setId('qpl_brows_tabl_' . $this->testOBJ->getId());
96  global $DIC;
97  $this->testrequest = $DIC->test()->internal()->request();
98  parent::__construct($this, self::CMD_BROWSE_QUESTIONS);
99  $this->setFilterCommand(self::CMD_APPLY_FILTER);
100  $this->setResetCommand(self::CMD_RESET_FILTER);
101 
102  $this->setFormName('questionbrowser');
103  $this->setStyle('table', 'fullwidth');
104  $this->addColumn('', '', '1%', true);
105  $this->addColumn($this->lng->txt("tst_question_title"), 'title', '');
106  $this->addColumn($this->lng->txt("description"), 'description', '');
107  $this->addColumn($this->lng->txt("tst_question_type"), 'ttype', '');
108  $this->addColumn($this->lng->txt("author"), 'author', '');
109  $this->addColumn($this->lng->txt('qst_lifecycle'), 'lifecycle', '');
110  $this->addColumn($this->lng->txt("create_date"), 'created', '');
111  $this->addColumn(
112  $this->lng->txt("last_update"),
113  'tstamp',
114  ''
115  ); // name of col is proper "updated" but in data array the key is "tstamp"
116  $this->addColumn($this->getParentObjectLabel(), 'qpl', '');
117  $this->setSelectAllCheckbox('q_id');
118  $this->setRowTemplate("tpl.il_as_tst_question_browser_row.html", "Modules/Test");
119 
120  $this->setFormAction($this->ctrl->getFormAction($this->getParentObject(), $this->getParentCmd()));
121  $this->setDefaultOrderField("title");
122  $this->setDefaultOrderDirection("asc");
123 
124  $this->enable('sort');
125  $this->enable('select_all');
126  $this->initFilter();
127  $this->setDisableFilterHiding(true);
128  }
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="")
ilLanguage $lng
setId(string $a_val)
global $DIC
Definition: feed.php:28
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)
__construct(Container $dic, ilPlugin $plugin)
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 174 of file class.ilTestQuestionBrowserTableGUI.php.

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

174  : void
175  {
176  $this->writeFilterToSession();
177  $this->ctrl->redirect($this, self::CMD_BROWSE_QUESTIONS);
178  }
+ Here is the call graph for this function:

◆ browseQuestionsCmd()

ilTestQuestionBrowserTableGUI::browseQuestionsCmd ( )
private

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

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

166  : bool
167  {
168  $this->setData($this->getQuestionsData());
169 
170  $this->mainTpl->setContent($this->ctrl->getHTML($this));
171  return true;
172  }
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 465 of file class.ilTestQuestionBrowserTableGUI.php.

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

Referenced by fillRow().

465  : string
466  {
467  switch ($this->fetchModeParameter()) {
468  case self::MODE_BROWSE_POOLS:
469  return $this->buildPossiblyLinkedQuestonPoolTitle(
470  $this->ctrl,
471  $this->access,
472  $this->lng,
473  $this->ui_factory,
474  $this->ui_renderer,
475  $obj_id,
476  $parent_title
477  );
478 
479  case self::MODE_BROWSE_TESTS:
480  return $this->buildPossiblyLinkedTestTitle(
481  $this->ctrl,
482  $this->access,
483  $this->lng,
484  $this->ui_factory,
485  $this->ui_renderer,
486  $obj_id,
487  $parent_title
488  );
489  }
490 
491  return '';
492  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildTestQuestionSetConfig()

ilTestQuestionBrowserTableGUI::buildTestQuestionSetConfig ( )
private

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

Referenced by insertQuestionsCmd().

495  {
496  $testQuestionSetConfigFactory = new ilTestQuestionSetConfigFactory(
497  $this->tree,
498  $this->db,
499  $this->component_repository,
500  $this->testOBJ
501  );
502 
503  return $testQuestionSetConfigFactory->getQuestionSetConfig();
504  }
+ Here is the caller graph for this function:

◆ executeCommand()

ilTestQuestionBrowserTableGUI::executeCommand ( )

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

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

147  : bool
148  {
149  $this->handleParameters();
150  $this->handleTabs();
151 
152  switch (strtolower((string) $this->ctrl->getNextClass($this))) {
153  case strtolower(__CLASS__):
154  case '':
155 
156  $cmd = $this->ctrl->getCmd() . 'Cmd';
157  return $this->$cmd();
158 
159  default:
160 
161  $this->ctrl->setReturn($this, self::CMD_BROWSE_QUESTIONS);
162  return parent::executeCommand();
163  }
164  }
+ Here is the call graph for this function:

◆ fetchContextParameter()

ilTestQuestionBrowserTableGUI::fetchContextParameter ( )
private
Returns
mixed|null

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

Referenced by getBackTargetCmdClass(), and getBackTargetCommand().

249  {
250  if ($this->testrequest->isset(self::CONTEXT_PARAMETER)) {
251  return $this->testrequest->raw(self::CONTEXT_PARAMETER);
252  }
253 
254  return null;
255  }
+ Here is the caller graph for this function:

◆ fetchModeParameter()

ilTestQuestionBrowserTableGUI::fetchModeParameter ( )
private
Returns
mixed|null

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

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

261  {
262  if ($this->testrequest->isset(self::MODE_PARAMETER)) {
263  return $this->testrequest->raw(self::MODE_PARAMETER);
264  }
265 
266  return null;
267  }
+ Here is the caller graph for this function:

◆ fillRow()

ilTestQuestionBrowserTableGUI::fillRow ( array  $a_set)

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

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

440  : void
441  {
442  $this->tpl->setVariable("QUESTION_ID", $a_set["question_id"]);
443  $this->tpl->setVariable("QUESTION_TITLE", $a_set["title"]);
444  $this->tpl->setVariable("QUESTION_COMMENT", $a_set["description"]);
445  $this->tpl->setVariable("QUESTION_TYPE", assQuestion::_getQuestionTypeName($a_set["type_tag"]));
446  $this->tpl->setVariable("QUESTION_AUTHOR", $a_set["author"]);
447  $this->tpl->setVariable("QUESTION_LIFECYCLE", $this->getTranslatedLifecycle($a_set['lifecycle']));
448  $this->tpl->setVariable(
449  "QUESTION_CREATED",
450  ilDatePresentation::formatDate(new ilDate($a_set['created'], IL_CAL_UNIX))
451  );
452  $this->tpl->setVariable(
453  "QUESTION_UPDATED",
454  ilDatePresentation::formatDate(new ilDate($a_set["tstamp"], IL_CAL_UNIX))
455  );
456  $this->tpl->setVariable(
457  "QUESTION_POOL_OR_TEST_TITLE",
459  (int) $a_set["obj_fi"],
460  $a_set["parent_title"]
461  )
462  );
463  }
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
static _getQuestionTypeName($type_tag)
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 300 of file class.ilTestQuestionBrowserTableGUI.php.

References fetchContextParameter().

Referenced by getBackTargetUrl(), and insertQuestionsCmd().

300  : string
301  {
302  switch ($this->fetchContextParameter()) {
303  case self::CONTEXT_PAGE_VIEW:
304 
305  return 'ilTestExpressPageObjectGUI';
306  case self::CONTEXT_LIST_VIEW:
307  default:
308  return 'ilObjTestGUI';
309  }
310  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getBackTargetCommand()

ilTestQuestionBrowserTableGUI::getBackTargetCommand ( )
private

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

References fetchContextParameter().

Referenced by getBackTargetUrl(), and insertQuestionsCmd().

312  : string
313  {
314  switch ($this->fetchContextParameter()) {
315  case self::CONTEXT_LIST_VIEW:
316 
317  return 'questions';
318 
319  case self::CONTEXT_PAGE_VIEW:
320 
321  return 'showPage';
322  }
323 
324  return '';
325  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getBackTargetLabel()

ilTestQuestionBrowserTableGUI::getBackTargetLabel ( )
private

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

References ILIAS\Repository\lng().

Referenced by handleTabs().

287  : string
288  {
289  return $this->lng->txt('backtocallingtest');
290  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getBackTargetUrl()

ilTestQuestionBrowserTableGUI::getBackTargetUrl ( )
private

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

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

Referenced by handleTabs().

292  : string
293  {
294  return $this->ctrl->getLinkTargetByClass(
295  $this->getBackTargetCmdClass(),
296  $this->getBackTargetCommand()
297  );
298  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getBrowseQuestionsTabLabel()

ilTestQuestionBrowserTableGUI::getBrowseQuestionsTabLabel ( )
private

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

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

Referenced by handleTabs().

327  : string
328  {
329  switch ($this->fetchModeParameter()) {
330  case self::MODE_BROWSE_POOLS:
331 
332  return $this->lng->txt('tst_browse_for_qpl_questions');
333 
334  case self::MODE_BROWSE_TESTS:
335 
336  return $this->lng->txt('tst_browse_for_tst_questions');
337  }
338 
339  return '';
340  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getBrowseQuestionsTabUrl()

ilTestQuestionBrowserTableGUI::getBrowseQuestionsTabUrl ( )
private

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

References ILIAS\Repository\ctrl().

Referenced by handleTabs().

342  : string
343  {
344  return $this->ctrl->getLinkTarget($this, self::CMD_BROWSE_QUESTIONS);
345  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getParentObjectLabel()

ilTestQuestionBrowserTableGUI::getParentObjectLabel ( )
private

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

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

Referenced by __construct(), and initFilter().

416  : string
417  {
418  switch ($this->fetchModeParameter()) {
419  case self::MODE_BROWSE_POOLS:
420 
421  return $this->lng->txt('qpl');
422 
423  case self::MODE_BROWSE_TESTS:
424 
425  return $this->lng->txt('tst');
426  }
427 
428  return '';
429  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getQuestionInstanceTypeFilter()

ilTestQuestionBrowserTableGUI::getQuestionInstanceTypeFilter ( )
private

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

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

Referenced by getQuestionsData().

550  : string
551  {
552  if ($this->fetchModeParameter() === self::MODE_BROWSE_TESTS) {
554  }
555 
557  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getQuestionParentObjectType()

ilTestQuestionBrowserTableGUI::getQuestionParentObjectType ( )
private

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

References fetchModeParameter().

Referenced by getQuestionParentObjIds(), and getQuestionsData().

598  : string
599  {
600  if ($this->fetchModeParameter() === self::MODE_BROWSE_TESTS) {
601  return 'tst';
602  }
603 
604  return 'qpl';
605  }
+ 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 563 of file class.ilTestQuestionBrowserTableGUI.php.

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

Referenced by getQuestionsData().

563  : array
564  {
565  $parents = $this->tree->getSubTree(
566  $this->tree->getNodeData($repositoryRootNode),
567  true,
568  [$this->getQuestionParentObjectType()]
569  );
570 
571  $parentIds = [];
572 
573  foreach ($parents as $nodeData) {
574  if ((int) $nodeData['obj_id'] === $this->testOBJ->getId()) {
575  continue;
576  }
577 
578  $parentIds[$nodeData['obj_id']] = $nodeData['obj_id'];
579  }
580 
581  $parentIds = array_map('intval', array_values($parentIds));
582 
583  if ($this->fetchModeParameter() === self::MODE_BROWSE_POOLS) {
584  $available_pools = array_map('intval', array_keys(ilObjQuestionPool::_getAvailableQuestionpools(true)));
585  return array_intersect($parentIds, $available_pools);
586  } elseif ($this->fetchModeParameter() === self::MODE_BROWSE_TESTS) {
587  return array_filter($parentIds, function ($obj_id): bool {
588  $refIds = ilObject::_getAllReferences($obj_id);
589  $refId = current($refIds);
590  return $this->access->checkAccess('write', '', $refId);
591  });
592  }
593 
594  // Return no parent ids if the user wants to hack...
595  return [];
596  }
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 506 of file class.ilTestQuestionBrowserTableGUI.php.

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

Referenced by browseQuestionsCmd().

506  : array
507  {
508  $questionList = new ilAssQuestionList($this->db, $this->lng, $this->refinery, $this->component_repository);
509 
510  $questionList->setQuestionInstanceTypeFilter($this->getQuestionInstanceTypeFilter());
511  $questionList->setExcludeQuestionIdsFilter($this->testOBJ->getExistingQuestions());
512 
513  $repositoryRootNode = self::REPOSITORY_ROOT_NODE_ID;
514 
515  foreach ($this->getFilterItems() as $item) {
516  if (!in_array($item->getValue(), [false, null, ''], true)) {
517  switch ($item->getPostVar()) {
518  case 'title':
519  case 'description':
520  case 'author':
521  case 'lifecycle':
522  case 'type':
523  case 'parent_title':
524  $questionList->addFieldFilter($item->getPostVar(), $item->getValue());
525  break;
526 
527  case 'repository_root_node':
528  $repositoryRootNode = (int) $item->getValue();
529  }
530  }
531  }
532  if ($repositoryRootNode < 1) {
533  $repositoryRootNode = self::REPOSITORY_ROOT_NODE_ID;
534  }
535 
536  $parentObjectIds = $this->getQuestionParentObjIds($repositoryRootNode);
537 
538  if (!count($parentObjectIds)) {
539  return [];
540  }
541 
542  $questionList->setParentObjIdsFilter($parentObjectIds);
543  $questionList->setParentObjectType($this->getQuestionParentObjectType());
544 
545  $questionList->load();
546 
547  return $questionList->getQuestionDataArray();
548  }
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 431 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 224 of file class.ilTestQuestionBrowserTableGUI.php.

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

Referenced by executeCommand().

224  : void
225  {
226  if ($this->testrequest->isset(self::CONTEXT_PARAMETER)) {
227  $this->ctrl->setParameterByClass(
228  self::class,
229  self::CONTEXT_PARAMETER,
230  $this->testrequest->raw(self::CONTEXT_PARAMETER)
231  );
232  $this->addHiddenInput(self::CONTEXT_PARAMETER, $this->testrequest->raw(self::CONTEXT_PARAMETER));
233  }
234 
235  if ($this->testrequest->isset(self::MODE_PARAMETER)) {
236  $this->ctrl->setParameterByClass(
237  self::class,
238  self::MODE_PARAMETER,
239  $this->testrequest->raw(self::MODE_PARAMETER)
240  );
241  $this->addHiddenInput(self::MODE_PARAMETER, $this->testrequest->raw(self::MODE_PARAMETER));
242  }
243  }
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 269 of file class.ilTestQuestionBrowserTableGUI.php.

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

Referenced by executeCommand().

269  : void
270  {
271  $this->tabs->clearTargets();
272  $this->tabs->clearSubTabs();
273 
274  $this->tabs->setBackTarget(
275  $this->getBackTargetLabel(),
276  $this->getBackTargetUrl()
277  );
278 
279  $this->tabs->addTab(
280  'browseQuestions',
282  $this->getBrowseQuestionsTabUrl()
283  );
284  $this->tabs->activateTab('browseQuestions');
285  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hasWriteAccess()

ilTestQuestionBrowserTableGUI::hasWriteAccess ( )

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

References $writeAccess.

Referenced by init().

135  : bool
136  {
137  return $this->writeAccess;
138  }
+ Here is the caller graph for this function:

◆ init()

ilTestQuestionBrowserTableGUI::init ( )

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

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

140  : void
141  {
142  if ($this->hasWriteAccess()) {
143  $this->addMultiCommand(self::CMD_INSERT_QUESTIONS, $this->lng->txt('insert'));
144  }
145  }
addMultiCommand(string $a_cmd, string $a_text)
+ Here is the call graph for this function:

◆ initFilter()

ilTestQuestionBrowserTableGUI::initFilter ( )

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

References ilObjQuestionPool\_getQuestionTypes(), ilTable2GUI\addFilterItem(), fetchModeParameter(), ILIAS\UI\examples\Symbol\Glyph\Filter\filter(), ilAssQuestionLifecycle\getDraftInstance(), getParentObjectLabel(), ILIAS\Repository\lng(), and ilRepositorySelectorInputGUI\setHeaderMessage().

Referenced by __construct().

347  : void
348  {
349  $ti = new ilTextInputGUI($this->lng->txt("tst_qbt_filter_question_title"), "title");
350  $ti->setMaxLength(64);
351  $ti->setSize(20);
352  $ti->setValidationRegexp('/(^[^%]+$)|(^$)/is');
353  $this->addFilterItem($ti);
354  $ti->readFromSession();
355  $this->filter["title"] = $ti->getValue();
356 
357  $ti = new ilTextInputGUI($this->lng->txt("description"), "description");
358  $ti->setMaxLength(64);
359  $ti->setSize(20);
360  $ti->setValidationRegexp('/(^[^%]+$)|(^$)/is');
361  $this->addFilterItem($ti);
362  $ti->readFromSession();
363  $this->filter["description"] = $ti->getValue();
364 
365  $ti = new ilTextInputGUI($this->lng->txt("author"), "author");
366  $ti->setMaxLength(64);
367  $ti->setSize(20);
368  $this->addFilterItem($ti);
369  $ti->setValidationRegexp('/(^[^%]+$)|(^$)/is');
370  $ti->readFromSession();
371  $this->filter["author"] = $ti->getValue();
372 
373  $lifecycleOptions = array_merge(
374  ['' => $this->lng->txt('qst_lifecycle_filter_all')],
375  ilAssQuestionLifecycle::getDraftInstance()->getSelectOptions($this->lng)
376  );
377  $lifecycleInp = new ilSelectInputGUI($this->lng->txt('qst_lifecycle'), 'lifecycle');
378  $lifecycleInp->setOptions($lifecycleOptions);
379  $this->addFilterItem($lifecycleInp);
380  $lifecycleInp->readFromSession();
381  $this->filter['lifecycle'] = $lifecycleInp->getValue();
382 
384  $options = [];
385  $options[""] = $this->lng->txt('filter_all_question_types');
386  foreach ($types as $translation => $row) {
387  $options[$row['type_tag']] = $translation;
388  }
389 
390  $si = new ilSelectInputGUI($this->lng->txt("question_type"), "type");
391  $si->setOptions($options);
392  $this->addFilterItem($si);
393  $si->readFromSession();
394  $this->filter["type"] = $si->getValue();
395 
396  $ti = new ilTextInputGUI($this->getParentObjectLabel(), 'parent_title');
397  $ti->setMaxLength(64);
398  $ti->setSize(20);
399  $ti->setValidationRegexp('/(^[^%]+$)|(^$)/is');
400  $this->addFilterItem($ti);
401  $ti->readFromSession();
402  $this->filter['parent_title'] = $ti->getValue();
403 
404  $ri = new ilRepositorySelectorInputGUI($this->lng->txt('repository'), 'repository_root_node');
405  $ri->setHeaderMessage($this->lng->txt('question_browse_area_info'));
406  if ($this->fetchModeParameter() === self::MODE_BROWSE_TESTS) {
407  $ri->setClickableTypes(['tst']);
408  } else {
409  $ri->setClickableTypes(['qpl']);
410  }
411  $this->addFilterItem($ri);
412  $ri->readFromSession();
413  $this->filter['repository_root_node'] = $ri->getValue();
414  }
addFilterItem(ilTableFilterItem $a_input_item, bool $a_optional=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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 186 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().

186  : void
187  {
188  $selected_array = [];
189  if ($this->httpState->wrapper()->post()->has('q_id')) {
190  $selected_array = $this->httpState->wrapper()->post()->retrieve(
191  'q_id',
192  $this->refinery->kindlyTo()->listOf($this->refinery->kindlyTo()->int())
193  );
194  }
195 
196  if ($selected_array === []) {
197  $this->mainTpl->setOnScreenMessage('info', $this->lng->txt("tst_insert_missing_question"), true);
198  $this->ctrl->redirect($this, self::CMD_BROWSE_QUESTIONS);
199  }
200 
201  $testQuestionSetConfig = $this->buildTestQuestionSetConfig();
202 
203  $manscoring = false;
204 
205  foreach ($selected_array as $key => $value) {
206  $last_question_id = $this->testOBJ->insertQuestion($testQuestionSetConfig, $value);
207 
208  if (!$manscoring) {
209  $manscoring |= assQuestion::_needsManualScoring($value);
210  }
211  }
212 
213  $this->testOBJ->saveCompleteStatus($testQuestionSetConfig);
214 
215  if ($manscoring) {
216  $this->mainTpl->setOnScreenMessage('info', $this->lng->txt("manscoring_hint"), true);
217  } else {
218  $this->mainTpl->setOnScreenMessage('success', $this->lng->txt("tst_questions_inserted"), true);
219  }
220 
221  $this->ctrl->redirectByClass($this->getBackTargetCmdClass(), $this->getBackTargetCommand());
222  }
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 180 of file class.ilTestQuestionBrowserTableGUI.php.

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

180  : void
181  {
182  $this->resetFilter();
183  $this->ctrl->redirect($this, self::CMD_BROWSE_QUESTIONS);
184  }
+ Here is the call graph for this function:

◆ setWriteAccess()

ilTestQuestionBrowserTableGUI::setWriteAccess ( bool  $value)

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

Referenced by ilObjTestGUI\executeCommand().

130  : void
131  {
132  $this->writeAccess = $value;
133  }
+ Here is the caller graph for this function:

Field Documentation

◆ $access

ilAccessHandler ilTestQuestionBrowserTableGUI::$access
private

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

Referenced by __construct().

◆ $component_repository

ilComponentRepository ilTestQuestionBrowserTableGUI::$component_repository
private

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

Referenced by __construct().

◆ $db

ilDBInterface ilTestQuestionBrowserTableGUI::$db
private

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

Referenced by __construct().

◆ $filter

array ilTestQuestionBrowserTableGUI::$filter = []
private

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

◆ $httpState

ILIAS HTTP GlobalHttpState ilTestQuestionBrowserTableGUI::$httpState
private

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

Referenced by __construct().

◆ $mainTpl

ilGlobalTemplateInterface ilTestQuestionBrowserTableGUI::$mainTpl
private

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

Referenced by __construct().

◆ $refinery

ILIAS Refinery Factory ilTestQuestionBrowserTableGUI::$refinery
private

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

Referenced by __construct().

◆ $tabs

ilTabsGUI ilTestQuestionBrowserTableGUI::$tabs
private

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

Referenced by __construct().

◆ $testOBJ

ilObjTest ilTestQuestionBrowserTableGUI::$testOBJ
private

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

Referenced by __construct().

◆ $testrequest

ILIAS Test InternalRequestService ilTestQuestionBrowserTableGUI::$testrequest
private

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

◆ $tree

ilTree ilTestQuestionBrowserTableGUI::$tree
private

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

Referenced by __construct().

◆ $ui_factory

UIFactory ilTestQuestionBrowserTableGUI::$ui_factory
private

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

Referenced by __construct().

◆ $ui_renderer

UIRenderer ilTestQuestionBrowserTableGUI::$ui_renderer
private

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

Referenced by __construct().

◆ $writeAccess

bool ilTestQuestionBrowserTableGUI::$writeAccess = false
private

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

Referenced by hasWriteAccess().

◆ CMD_APPLY_FILTER

const ilTestQuestionBrowserTableGUI::CMD_APPLY_FILTER = 'applyFilter'

Definition at line 44 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 46 of file class.ilTestQuestionBrowserTableGUI.php.

◆ CMD_RESET_FILTER

const ilTestQuestionBrowserTableGUI::CMD_RESET_FILTER = 'resetFilter'

Definition at line 45 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 33 of file class.ilTestQuestionBrowserTableGUI.php.


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