ILIAS  release_7 Revision v7.30-3-g800a261c036
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, ilPluginAdmin $pluginAdmin, ilObjTest $testOBJ, ilAccessHandler $access, Refinery $refinery, UIFactory $ui_factory, UIRenderer $ui_renderer)
 ilTestQuestionBrowserTableGUI constructor. More...
 
 setWriteAccess ($value)
 
 hasWriteAccess ()
 
 init ()
 
 executeCommand ()
 Execute command. More...
 
 initFilter ()
 Init filter. More...
 
 fillRow ($data)
 Standard Version of Fill Row. More...
 
- Public Member Functions inherited from ilTable2GUI
 __construct ($a_parent_obj, $a_parent_cmd="", $a_template_context="")
 ilTable2GUI constructor. More...
 
 setOpenFormTag ($a_val)
 Set open form tag. More...
 
 getOpenFormTag ()
 Get open form tag. More...
 
 setCloseFormTag ($a_val)
 Set close form tag. More...
 
 getCloseFormTag ()
 Get close form tag. More...
 
 determineLimit ()
 Determine the limit. More...
 
 getSelectableColumns ()
 Get selectable columns. More...
 
 determineSelectedColumns ()
 Determine selected columns. More...
 
 isColumnSelected ($a_col)
 Is given column selected? More...
 
 getSelectedColumns ()
 Get selected columns. More...
 
 executeCommand ()
 Execute command. More...
 
 resetOffset ($a_in_determination=false)
 Reset offset. More...
 
 initFilter ()
 Init filter. More...
 
 getParentObject ()
 Get parent object. More...
 
 getParentCmd ()
 Get parent command. More...
 
 setTopAnchor ($a_val)
 Set top anchor. More...
 
 getTopAnchor ()
 Get top anchor. More...
 
 setNoEntriesText ($a_text)
 Set text for an empty table. More...
 
 getNoEntriesText ()
 Get text for an empty table. More...
 
 setIsDataTable ($a_val)
 Set is data table. More...
 
 getIsDataTable ()
 Get is data table. More...
 
 setEnableTitle ($a_enabletitle)
 Set Enable Title. More...
 
 getEnableTitle ()
 Get Enable Title. More...
 
 setEnableHeader ($a_enableheader)
 Set Enable Header. More...
 
 getEnableHeader ()
 Get Enable Header. More...
 
 setEnableNumInfo ($a_val)
 Set enable num info. More...
 
 getEnableNumInfo ()
 Get enable num info. More...
 
 setTitle ($a_title, $a_icon=0, $a_icon_alt=0)
 Set title and title icon. More...
 
 setDescription ($a_val)
 Set description. More...
 
 getDescription ()
 Get description. More...
 
 setOrderField ($a_order_field)
 set order column More...
 
 getOrderField ()
 
 setData ($a_data)
 set table data @access public More...
 
 getData ()
 
 dataExists ()
 
 setPrefix ($a_prefix)
 set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort separately) @access public More...
 
 getPrefix ()
 
 addFilterItem ($a_input_item, $a_optional=false)
 Add filter item. More...
 
 addFilterItemByMetaType ($id, $type=self::FILTER_TEXT, $a_optional=false, $caption=null)
 Add filter by standard type. More...
 
 getFilterItems ($a_optionals=false)
 Get filter items. More...
 
 getFilterItemByPostVar ($a_post_var)
 
 setFilterCols ($a_val)
 Set filter columns. More...
 
 getFilterCols ()
 Get filter columns. More...
 
 setDisableFilterHiding ($a_val=true)
 Set disable filter hiding. More...
 
 getDisableFilterHiding ()
 Get disable filter hiding. More...
 
 isFilterSelected ($a_col)
 Is given filter selected? More...
 
 getSelectedFilters ()
 Get selected filters. More...
 
 determineSelectedFilters ()
 Determine selected filters. More...
 
 setCustomPreviousNext ($a_prev_link, $a_next_link)
 Set custom previous/next links. More...
 
 setFormAction ($a_form_action, $a_multipart=false)
 Set Form action parameter. More...
 
 getFormAction ()
 Get Form action parameter. More...
 
 setFormName ($a_formname="")
 Set Form name. More...
 
 getFormName ()
 Get Form name. More...
 
 setId ($a_val)
 Set id. More...
 
 getId ()
 Get element id. More...
 
 setDisplayAsBlock ($a_val)
 Set display as block. More...
 
 getDisplayAsBlock ()
 Get display as block. More...
 
 getSelectAllCheckbox ()
 Get the name of the checkbox that should be toggled with a select all button. More...
 
 setSelectAllCheckbox ($a_select_all_checkbox, $a_select_all_on_top=false)
 Set the name of the checkbox that should be toggled with a select all button. More...
 
 setExternalSorting ($a_val)
 Set external sorting. More...
 
 getExternalSorting ()
 Get external sorting. More...
 
 setFilterCommand ($a_val, $a_caption=null)
 Set filter command. More...
 
 getFilterCommand ()
 Get filter command. More...
 
 setResetCommand ($a_val, $a_caption=null)
 Set reset filter command. More...
 
 getResetCommand ()
 Get reset filter command. More...
 
 setExternalSegmentation ($a_val)
 Set external segmentation. More...
 
 getExternalSegmentation ()
 Get external segmentation. More...
 
 setRowTemplate ($a_template, $a_template_dir="")
 Set row template. More...
 
 setDefaultOrderField ($a_defaultorderfield)
 Set Default order field. More...
 
 getDefaultOrderField ()
 Get Default order field. More...
 
 setDefaultOrderDirection ($a_defaultorderdirection)
 Set Default order direction. More...
 
 getDefaultOrderDirection ()
 Get Default order direction. More...
 
 setDefaultFilterVisiblity ($a_status)
 Set default filter visiblity. More...
 
 getDefaultFilterVisibility ()
 Get default filter visibility. More...
 
 clearCommandButtons ()
 
 addCommandButton ($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
 Add Command button. More...
 
 addCommandButtonInstance (ilButtonBase $a_button)
 Add Command button instance. More...
 
 addSelectionButton ($a_sel_var, $a_options, $a_cmd, $a_text, $a_default_selection='')
 Add Selection List + Command button. More...
 
 addMultiItemSelectionButton ($a_sel_var, $a_options, $a_cmd, $a_text, $a_default_selection='')
 Add Selection List + Command button for selected items. More...
 
 setCloseCommand ($a_link)
 Add command for closing table. More...
 
 addMultiCommand ($a_cmd, $a_text)
 Add Command button. More...
 
 addHiddenInput ($a_name, $a_value)
 Add Hidden Input field. More...
 
 addHeaderCommand ($a_href, $a_text, $a_target="", $a_img="")
 Add Header Command (Link) (Image needed for now) More...
 
 setTopCommands ($a_val)
 Set top commands (display command buttons on top of table, too) More...
 
 getTopCommands ()
 Get top commands (display command buttons on top of table, too) More...
 
 addColumn ( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
 Add a column to the header. More...
 
 getNavParameter ()
 
 setOrderLink ($sort_field, $order_dir)
 
 fillHeader ()
 
 determineOffsetAndOrder ($a_omit_offset=false)
 Determine offset and order. More...
 
 storeNavParameter ()
 
 getHTML ()
 Get HTML. More...
 
 numericOrdering ($a_field)
 Should this field be sorted numeric? More...
 
 render ()
 render table @access public More...
 
 writeFilterToSession ()
 Write filter values to session. More...
 
 resetFilter ()
 Reset filter. More...
 
 fillFooter ()
 Fill footer row. More...
 
 getLinkbar ($a_num)
 Get previous/next linkbar. More...
 
 fillHiddenRow ()
 
 fillActionRow ()
 Fill Action Row. More...
 
 setHeaderHTML ($html)
 set header html More...
 
 storeProperty ($type, $value)
 Store table property. More...
 
 loadProperty ($type)
 Load table property. More...
 
 getCurrentState ()
 get current settings for order, limit, columns and filter More...
 
 setContext ($id)
 Set context. More...
 
 getContext ()
 Get context. More...
 
 setShowRowsSelector ($a_value)
 Toggle rows-per-page selector. More...
 
 getShowRowsSelector ()
 Get rows-per-page selector state. More...
 
 setShowTemplates ($a_value)
 Toggle templates. More...
 
 getShowTemplates ()
 Get template state. More...
 
 restoreTemplate ($a_name)
 Restore state from template. More...
 
 saveTemplate ($a_name)
 Save current state as template. More...
 
 deleteTemplate ($a_name)
 Delete template. More...
 
 getLimit ()
 Get limit. More...
 
 getOffset ()
 Get offset. More...
 
 setExportFormats (array $formats)
 Set available export formats. More...
 
 setPrintMode ($a_value=false)
 Toogle print mode. More...
 
 getPrintMode ()
 Get print mode. More...
 
 getExportMode ()
 Was export activated? More...
 
 exportData ($format, $send=false)
 Export and optionally send current table data. More...
 
 setEnableAllCommand ($a_value)
 Enable actions for all entries in current result. More...
 
 setRowSelectorLabel ($row_selector_label)
 
 getRowSelectorLabel ()
 
 setPreventDoubleSubmission ($a_val)
 Set prevent double submission. More...
 
 getPreventDoubleSubmission ()
 Get prevent double submission. More...
 
 setLimit ($a_limit=0, $a_default_limit=0)
 set max. More...
 
- Public Member Functions inherited from ilTableGUI
 __construct ($a_data=0, $a_global_tpl=true)
 Constructor. More...
 
 setTemplate ($a_tpl)
 set template @access public More...
 
getTemplateObject ()
 
 setData ($a_data)
 set table data @access public More...
 
 getData ()
 
 setTitle ($a_title, $a_icon=0, $a_icon_alt=0)
 set table title @access public More...
 
 setHelp ($a_help_page, $a_help_icon, $a_help_icon_alt=0)
 set table help page @access public More...
 
 setHeaderNames ($a_header_names)
 set table header names @access public More...
 
 getColumnCount ()
 Returns the column count based on the number of the header row columns @access public. More...
 
 setHeaderVars ($a_header_vars, $a_header_params=0)
 set table header vars @access public More...
 
 setColumnWidth ($a_column_width)
 set table column widths @access public More...
 
 setOneColumnWidth ($a_column_width, $a_column_number)
 set one table column width @access public More...
 
 setMaxCount ($a_max_count)
 set max. More...
 
 setLimit ($a_limit=0, $a_default_limit=0)
 set max. More...
 
 getLimit ()
 Get limit. More...
 
 setPrefix ($a_prefix)
 set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort separately) @access public More...
 
 setOffset ($a_offset)
 set dataset offset @access public More...
 
 getOffset ()
 Get offset. More...
 
 setOrderColumn ($a_order_column=0, $a_default_column=0)
 set order column @access public More...
 
 getOrderColumn ()
 Get order column. More...
 
 setOrderDirection ($a_order_direction)
 set order direction @access public More...
 
 getOrderDirection ()
 Get order direction. More...
 
 setFooter ($a_style, $a_previous=0, $a_next=0)
 set order direction @access public More...
 
 enable ($a_module_name)
 enables particular modules of table More...
 
 disable ($a_module_name)
 diesables particular modules of table More...
 
 sortData ()
 
 render ()
 render table @access public More...
 
 renderHeader ()
 
 setOrderLink ($key, $order_dir)
 
 setStyle ($a_element, $a_style)
 
 getStyle ($a_element)
 
 setBase ($a_base)
 Set Base script name (deprecated, only use this for workarounds). More...
 
 getBase ()
 Get Base script name (deprecated, only use this for workarounds). More...
 
 getFormName ()
 
 setFormName ($a_name="cmd")
 
 getSelectAllCheckbox ()
 
 setSelectAllCheckbox ($a_select_all_checkbox)
 
 clearActionButtons ()
 
 addActionButton ($btn_name, $btn_value)
 

Data Fields

const REPOSITORY_ROOT_NODE_ID = 1
 
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
 $title
 
 $icon
 
 $icon_alt
 
 $help_page
 
 $help_icon
 
 $help_icon_alt
 
 $header_names
 
 $header_vars
 
 $linkbar_vars
 
 $data
 
 $column_count
 
 $column_width
 
 $max_count
 
 $limit
 
 $max_limit = false
 
 $offset
 
 $order_column
 
 $order_direction
 
 $footer_style
 
 $footer_previous
 
 $footer_next
 
 $lang_support = true
 
 $global_tpl
 
 $form_name
 
 $select_all_checkbox
 
 $action_buttons
 
 $prefix
 
 $base = ""
 
 $enabled
 
 $styles
 

Protected Member Functions

 getTranslatedLifecycle ($lifecycle)
 
- Protected Member Functions inherited from ilTable2GUI
 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, $a_element)
 Check if filter element is based on adv md. More...
 
 fillRow ($a_set)
 Standard Version of Fill Row. More...
 
 getFilterValue (ilFormPropertyGUI $a_item)
 Get current filter value. More...
 
 SetFilterValue (ilFormPropertyGUI $a_item, $a_value)
 Set current filter value. More...
 
 fillMetaExcel (ilExcel $a_excel, &$a_row)
 Add meta information to excel export. More...
 
 fillHeaderExcel (ilExcel $a_excel, &$a_row)
 Excel Version of Fill Header. More...
 
 fillRowExcel (ilExcel $a_excel, &$a_row, $a_set)
 Excel Version of Fill Row. More...
 
 fillMetaCSV ($a_csv)
 Add meta information to csv export. More...
 
 fillHeaderCSV ($a_csv)
 CSV Version of Fill Header. More...
 
 fillRowCSV ($a_csv, $a_set)
 CSV Version of Fill Row. More...
 

Protected Attributes

 $writeAccess = false
 
 $ctrl
 
 $mainTpl
 
 $tabs
 
 $lng
 
 $tree
 
 $db
 
 $pluginAdmin
 
 $testOBJ
 
 $access
 
 $refinery
 
- Protected Attributes inherited from ilTable2GUI
 $ctrl
 
 $tpl
 
 $parent_obj
 
 $parent_cmd
 
 $close_command = ""
 
 $top_anchor = "il_table_top"
 
 $filters = array()
 
 $optional_filters = array()
 
 $filter_cmd = 'applyFilter'
 
 $reset_cmd = 'resetFilter'
 
 $filter_cols = 5
 
 $ext_sort = false
 
 $ext_seg = false
 
 $context = ""
 
 $mi_sel_buttons = []
 
 $disable_filter_hiding = false
 
 $selected_filter = false
 
 $top_commands = true
 
 $selectable_columns = array()
 
 $selected_column = array()
 
 $show_templates = false
 
 $show_rows_selector = true
 
 $rows_selector_off = false
 
 $nav_determined = false
 
 $limit_determined = false
 
 $filters_determined = false
 
 $columns_determined = false
 
 $open_form_tag = true
 
 $close_form_tag = true
 
 $export_formats = []
 
 $export_mode
 
 $print_mode
 
 $enable_command_for_all
 
 $restore_filter
 
 $restore_filter_values
 
 $default_filter_visibility = false
 
 $sortable_fields = array()
 
 $prevent_double_submission = true
 
 $row_selector_label
 
 $select_all_on_top = false
 
 $sel_buttons = []
 
- Protected Attributes inherited from ilTableGUI
 $tpl
 
 $lng
 

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 ($repositoryRootNode)
 
 getQuestionParentObjectType ()
 

Private Attributes

 $ui_factory
 
 $ui_renderer
 

Additional Inherited Members

- Static Public Member Functions inherited from ilTable2GUI
static getAllCommandLimit ()
 Get maximum number of entries to enable actions for all. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilTestQuestionBrowserTableGUI::__construct ( ilCtrl  $ctrl,
ilGlobalTemplateInterface  $mainTpl,
ilTabsGUI  $tabs,
ilLanguage  $lng,
ilTree  $tree,
ilDBInterface  $db,
ilPluginAdmin  $pluginAdmin,
ilObjTest  $testOBJ,
ilAccessHandler  $access,
Refinery  $refinery,
UIFactory  $ui_factory,
UIRenderer  $ui_renderer 
)

ilTestQuestionBrowserTableGUI constructor.

Parameters
ilCtrl$ctrl
ilGlobalTemplateInterface$mainTpl
ilTabsGUI$tabs
ilLanguage$lng
ilTree$tree
ilDBInterface$db
ilPluginAdmin$pluginAdmin
ilObjTest$testOBJ
ilAccessHandler$access

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

120 {
121 $this->ctrl = $ctrl;
122 $this->mainTpl = $mainTpl;
123 $this->tabs = $tabs;
124 $this->lng = $lng;
125 $this->tree = $tree;
126 $this->db = $db;
127 $this->pluginAdmin = $pluginAdmin;
128 $this->testOBJ = $testOBJ;
129 $this->access = $access;
130 $this->refinery = $refinery;
131 $this->ui_factory = $ui_factory;
132 $this->ui_renderer = $ui_renderer;
133
134 $this->setId('qpl_brows_tabl_' . $this->testOBJ->getId());
135
136 parent::__construct($this, self::CMD_BROWSE_QUESTIONS);
137 $this->setFilterCommand(self::CMD_APPLY_FILTER);
138 $this->setResetCommand(self::CMD_RESET_FILTER);
139
140 $this->setFormName('questionbrowser');
141 $this->setStyle('table', 'fullwidth');
142 $this->addColumn('', '', '1%', true);
143 $this->addColumn($this->lng->txt("tst_question_title"), 'title', '');
144 $this->addColumn($this->lng->txt("description"), 'description', '');
145 $this->addColumn($this->lng->txt("tst_question_type"), 'ttype', '');
146 $this->addColumn($this->lng->txt("author"), 'author', '');
147 $this->addColumn($this->lng->txt('qst_lifecycle'), 'lifecycle', '');
148 $this->addColumn($this->lng->txt("create_date"), 'created', '');
149 $this->addColumn($this->lng->txt("last_update"), 'tstamp', ''); // name of col is proper "updated" but in data array the key is "tstamp"
150 $this->addColumn($this->getParentObjectLabel(), 'qpl', '');
151 $this->addColumn($this->lng->txt("working_time"), 'working_time', '');
152 $this->setSelectAllCheckbox('q_id');
153 $this->setRowTemplate("tpl.il_as_tst_question_browser_row.html", "Modules/Test");
154
155 $this->setFormAction($this->ctrl->getFormAction($this->getParentObject(), $this->getParentCmd()));
156 $this->setDefaultOrderField("title");
157 $this->setDefaultOrderDirection("asc");
158
159 $this->enable('sort');
160 //$this->enable('header');
161 $this->enable('select_all');
162 $this->initFilter();
163 $this->setDisableFilterHiding(true);
164 }
setDisableFilterHiding($a_val=true)
Set disable filter hiding.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
setResetCommand($a_val, $a_caption=null)
Set reset filter command.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setId($a_val)
Set id.
setFormName($a_formname="")
Set Form name.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setFilterCommand($a_val, $a_caption=null)
Set filter command.
setStyle($a_element, $a_style)
enable($a_module_name)
enables particular modules of table
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

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

+ Here is the call graph for this function:

Member Function Documentation

◆ applyFilterCmd()

ilTestQuestionBrowserTableGUI::applyFilterCmd ( )
private

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

210 {
211 $this->writeFilterToSession();
212 $this->ctrl->redirect($this, self::CMD_BROWSE_QUESTIONS);
213 }
writeFilterToSession()
Write filter values to session.

References ilTable2GUI\writeFilterToSession().

+ Here is the call graph for this function:

◆ browseQuestionsCmd()

ilTestQuestionBrowserTableGUI::browseQuestionsCmd ( )
private

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

203 {
204 $this->setData($this->getQuestionsData());
205
206 $this->mainTpl->setContent($this->ctrl->getHTML($this));
207 }
setData($a_data)
set table data @access public

References getQuestionsData(), and ilTable2GUI\setData().

+ Here is the call graph for this function:

◆ buildPossiblyLinkedQuestonPoolOrTestTitle()

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

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

505 : string
506 {
507 switch ($this->fetchModeParameter()) {
509 return $this->buildPossiblyLinkedQuestonPoolTitle(
510 $this->ctrl,
511 $this->access,
512 $this->lng,
513 $this->ui_factory,
514 $this->ui_renderer,
515 $obj_id,
516 $parent_title
517 );
518
520 return $this->buildPossiblyLinkedTestTitle(
521 $this->ctrl,
522 $this->access,
523 $this->lng,
524 $this->ui_factory,
525 $this->ui_renderer,
526 $obj_id,
527 $parent_title
528 );
529 }
530
531 return '';
532 }

References fetchModeParameter(), MODE_BROWSE_POOLS, and MODE_BROWSE_TESTS.

Referenced by fillRow().

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

◆ buildTestQuestionSetConfig()

ilTestQuestionBrowserTableGUI::buildTestQuestionSetConfig ( )
private
Returns
ilTestQuestionSetConfig

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

538 {
539 require_once 'Modules/Test/classes/class.ilTestQuestionSetConfigFactory.php';
540
541 $testQuestionSetConfigFactory = new ilTestQuestionSetConfigFactory(
542 $this->tree,
543 $this->db,
544 $this->pluginAdmin,
545 $this->testOBJ
546 );
547
548 return $testQuestionSetConfigFactory->getQuestionSetConfig();
549 }

Referenced by insertQuestionsCmd().

+ Here is the caller graph for this function:

◆ executeCommand()

ilTestQuestionBrowserTableGUI::executeCommand ( )

Execute command.

Reimplemented from ilTable2GUI.

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

184 {
185 $this->handleParameters();
186 $this->handleTabs();
187
188 switch ($this->ctrl->getNextClass($this)) {
189 case strtolower(__CLASS__):
190 case '':
191
192 $cmd = $this->ctrl->getCmd() . 'Cmd';
193 return $this->$cmd();
194
195 default:
196
197 $this->ctrl->setReturn($this, self::CMD_BROWSE_QUESTIONS);
198 return parent::executeCommand();
199 }
200 }

References handleParameters(), and handleTabs().

+ Here is the call graph for this function:

◆ fetchContextParameter()

ilTestQuestionBrowserTableGUI::fetchContextParameter ( )
private

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

274 {
275 if (isset($_POST[self::CONTEXT_PARAMETER])) {
277 }
278
279 if (isset($_GET[self::CONTEXT_PARAMETER])) {
281 }
282
283 return null;
284 }
$_GET["client_id"]
$_POST["username"]

References $_GET, $_POST, and CONTEXT_PARAMETER.

Referenced by getBackTargetCmdClass(), and getBackTargetCommand().

+ Here is the caller graph for this function:

◆ fetchModeParameter()

ilTestQuestionBrowserTableGUI::fetchModeParameter ( )
private

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

287 {
288 if (isset($_POST[self::MODE_PARAMETER])) {
290 }
291
292 if (isset($_GET[self::MODE_PARAMETER])) {
294 }
295
296 return null;
297 }

References $_GET, $_POST, and MODE_PARAMETER.

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

+ Here is the caller graph for this function:

◆ fillRow()

ilTestQuestionBrowserTableGUI::fillRow (   $a_set)

Standard Version of Fill Row.

Most likely to be overwritten by derived class.

Parameters
array$a_setdata array

Reimplemented from ilTable2GUI.

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

484 {
485 $this->tpl->setVariable("QUESTION_ID", $data["question_id"]);
486 $this->tpl->setVariable("QUESTION_TITLE", $data["title"]);
487 $this->tpl->setVariable("QUESTION_COMMENT", $data["description"]);
488 include_once "./Modules/TestQuestionPool/classes/class.assQuestion.php";
489 $this->tpl->setVariable("QUESTION_TYPE", assQuestion::_getQuestionTypeName($data["type_tag"]));
490 $this->tpl->setVariable("QUESTION_AUTHOR", $data["author"]);
491 $this->tpl->setVariable("QUESTION_LIFECYCLE", $this->getTranslatedLifecycle($data['lifecycle']));
492 $this->tpl->setVariable("QUESTION_CREATED", ilDatePresentation::formatDate(new ilDate($data['created'], IL_CAL_UNIX)));
493 $this->tpl->setVariable("QUESTION_UPDATED", ilDatePresentation::formatDate(new ilDate($data["tstamp"], IL_CAL_UNIX)));
494 $this->tpl->setVariable("QUESTION_POOL", $data['parent_title']);
495 $this->tpl->setVariable(
496 "QUESTION_POOL_OR_TEST_TITLE",
498 (int) $data["obj_fi"],
499 $data["parent_title"]
500 )
501 );
502 $this->tpl->setVariable("WORKING_TIME", $data['working_time']);
503 }
const IL_CAL_UNIX
static _getQuestionTypeName($type_tag)
Return the translation for a given question type tag.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date @access public.
Class for single dates.
buildPossiblyLinkedQuestonPoolOrTestTitle(int $obj_id, string $parent_title)

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

+ Here is the call graph for this function:

◆ getBackTargetCmdClass()

ilTestQuestionBrowserTableGUI::getBackTargetCmdClass ( )
private

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

330 {
331 switch ($this->fetchContextParameter()) {
333
334 return 'ilObjTestGUI';
335
337
338 return 'ilTestExpressPageObjectGUI';
339 }
340
341 return '';
342 }

References CONTEXT_LIST_VIEW, CONTEXT_PAGE_VIEW, and fetchContextParameter().

Referenced by getBackTargetUrl(), and insertQuestionsCmd().

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

◆ getBackTargetCommand()

ilTestQuestionBrowserTableGUI::getBackTargetCommand ( )
private

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

345 {
346 switch ($this->fetchContextParameter()) {
348
349 return 'questions';
350
352
353 return 'showPage';
354 }
355
356 return '';
357 }

References CONTEXT_LIST_VIEW, CONTEXT_PAGE_VIEW, and fetchContextParameter().

Referenced by getBackTargetUrl(), and insertQuestionsCmd().

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

◆ getBackTargetLabel()

ilTestQuestionBrowserTableGUI::getBackTargetLabel ( )
private

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

317 {
318 return $this->lng->txt('backtocallingtest');
319 }

Referenced by handleTabs().

+ Here is the caller graph for this function:

◆ getBackTargetUrl()

ilTestQuestionBrowserTableGUI::getBackTargetUrl ( )
private

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

322 {
323 return $this->ctrl->getLinkTargetByClass(
324 $this->getBackTargetCmdClass(),
325 $this->getBackTargetCommand()
326 );
327 }

References getBackTargetCmdClass(), and getBackTargetCommand().

Referenced by handleTabs().

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

◆ getBrowseQuestionsTabLabel()

ilTestQuestionBrowserTableGUI::getBrowseQuestionsTabLabel ( )
private

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

360 {
361 switch ($this->fetchModeParameter()) {
363
364 return $this->lng->txt('tst_browse_for_qpl_questions');
365
367
368 return $this->lng->txt('tst_browse_for_tst_questions');
369 }
370
371 return '';
372 }

References fetchModeParameter(), MODE_BROWSE_POOLS, and MODE_BROWSE_TESTS.

Referenced by handleTabs().

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

◆ getBrowseQuestionsTabUrl()

ilTestQuestionBrowserTableGUI::getBrowseQuestionsTabUrl ( )
private

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

375 {
376 return $this->ctrl->getLinkTarget($this, self::CMD_BROWSE_QUESTIONS);
377 }

Referenced by handleTabs().

+ Here is the caller graph for this function:

◆ getParentObjectLabel()

ilTestQuestionBrowserTableGUI::getParentObjectLabel ( )
private

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

460 {
461 switch ($this->fetchModeParameter()) {
463
464 return $this->lng->txt('qpl');
465
467
468 return $this->lng->txt('tst');
469 }
470
471 return '';
472 }

References fetchModeParameter(), MODE_BROWSE_POOLS, and MODE_BROWSE_TESTS.

Referenced by __construct(), and initFilter().

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

◆ getQuestionInstanceTypeFilter()

ilTestQuestionBrowserTableGUI::getQuestionInstanceTypeFilter ( )
private

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

598 {
599 if ($this->fetchModeParameter() === self::MODE_BROWSE_TESTS) {
601 }
602
604 }

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

Referenced by getQuestionsData().

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

◆ getQuestionParentObjectType()

ilTestQuestionBrowserTableGUI::getQuestionParentObjectType ( )
private

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

643 {
644 if ($this->fetchModeParameter() == self::MODE_BROWSE_TESTS) {
645 return 'tst';
646 }
647
648 return 'qpl';
649 }

References fetchModeParameter().

Referenced by getQuestionsData().

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

◆ getQuestionParentObjIds()

ilTestQuestionBrowserTableGUI::getQuestionParentObjIds (   $repositoryRootNode)
private

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

607 {
608 $parents = $this->tree->getSubTree(
609 $this->tree->getNodeData($repositoryRootNode),
610 true,
611 $this->getQuestionParentObjectType()
612 );
613
614 $parentIds = array();
615
616 foreach ($parents as $nodeData) {
617 if ($nodeData['obj_id'] == $this->testOBJ->getId()) {
618 continue;
619 }
620
621 $parentIds[ $nodeData['obj_id'] ] = $nodeData['obj_id'];
622 }
623
624 $parentIds = array_map('intval', array_values($parentIds));
625
626 if ($this->fetchModeParameter() == self::MODE_BROWSE_POOLS) {
627 $available_pools = array_map('intval', array_keys(ilObjQuestionPool::_getAvailableQuestionpools(true)));
628 return array_intersect($parentIds, $available_pools);
629 } elseif ($this->fetchModeParameter() == self::MODE_BROWSE_TESTS) {
630 // TODO bheyser: Move this to another place ...
631 return array_filter($parentIds, function ($obj_id) {
632 $refIds = ilObject::_getAllReferences($obj_id);
633 $refId = current($refIds);
634 return $this->access->checkAccess('write', '', $refId);
635 });
636 }
637
638 // Return no parent ids if the user wants to hack...
639 return array();
640 }
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($a_id)
get all reference ids of object
$refId
Definition: xapitoken.php:40

References $refId, ilObject\_getAllReferences(), ilObjQuestionPool\_getAvailableQuestionpools(), and fetchModeParameter().

Referenced by getQuestionsData().

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

◆ getQuestionsData()

ilTestQuestionBrowserTableGUI::getQuestionsData ( )
private
Returns
array

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

555 {
556 $questionList = new ilAssQuestionList($this->db, $this->lng, $this->refinery, $this->pluginAdmin);
557
558 $questionList->setQuestionInstanceTypeFilter($this->getQuestionInstanceTypeFilter());
559 $questionList->setExcludeQuestionIdsFilter($this->testOBJ->getExistingQuestions());
560
561 $repositoryRootNode = self::REPOSITORY_ROOT_NODE_ID;
562
563 foreach ($this->getFilterItems() as $item) {
564 if ($item->getValue() !== false) {
565 switch ($item->getPostVar()) {
566 case 'title':
567 case 'description':
568 case 'author':
569 case 'lifecycle':
570 case 'type':
571 case 'parent_title':
572
573 $questionList->addFieldFilter($item->getPostVar(), $item->getValue());
574 break;
575
576 case 'repository_root_node':
577
578 $repositoryRootNode = $item->getValue();
579 }
580 }
581 }
582
583 $parentObjectIds = $this->getQuestionParentObjIds($repositoryRootNode);
584
585 if (!count($parentObjectIds)) {
586 return array();
587 }
588
589 $questionList->setParentObjIdsFilter($parentObjectIds);
590 $questionList->setParentObjectType($this->getQuestionParentObjectType());
591
592 $questionList->load();
593
594 return $questionList->getQuestionDataArray();
595 }
getFilterItems($a_optionals=false)
Get filter items.

References ilTable2GUI\getFilterItems(), getQuestionInstanceTypeFilter(), getQuestionParentObjectType(), getQuestionParentObjIds(), and REPOSITORY_ROOT_NODE_ID.

Referenced by browseQuestionsCmd().

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

◆ getTranslatedLifecycle()

ilTestQuestionBrowserTableGUI::getTranslatedLifecycle (   $lifecycle)
protected

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

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

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 256 of file class.ilTestQuestionBrowserTableGUI.php.

257 {
258 $this->ctrl->saveParameter($this, self::CONTEXT_PARAMETER);
259 if (isset($_GET[self::CONTEXT_PARAMETER])) {
260 $this->addHiddenInput(self::CONTEXT_PARAMETER, $_GET[self::CONTEXT_PARAMETER]);
261 } elseif (isset($_POST[self::CONTEXT_PARAMETER])) {
262 $this->addHiddenInput(self::CONTEXT_PARAMETER, $_POST[self::CONTEXT_PARAMETER]);
263 }
264
265 $this->ctrl->saveParameter($this, self::MODE_PARAMETER);
266 if (isset($_GET[self::MODE_PARAMETER])) {
267 $this->addHiddenInput(self::MODE_PARAMETER, $_GET[self::MODE_PARAMETER]);
268 } elseif (isset($_POST[self::MODE_PARAMETER])) {
269 $this->addHiddenInput(self::MODE_PARAMETER, $_POST[self::MODE_PARAMETER]);
270 }
271 }
addHiddenInput($a_name, $a_value)
Add Hidden Input field.

References $_GET, $_POST, and ilTable2GUI\addHiddenInput().

Referenced by executeCommand().

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

◆ handleTabs()

ilTestQuestionBrowserTableGUI::handleTabs ( )
private

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

300 {
301 $this->tabs->clearTargets();
302 $this->tabs->clearSubTabs();
303
304 $this->tabs->setBackTarget(
305 $this->getBackTargetLabel(),
306 $this->getBackTargetUrl()
307 );
308
309 $this->tabs->addTab(
310 'browseQuestions',
313 );
314 }

References getBackTargetLabel(), getBackTargetUrl(), getBrowseQuestionsTabLabel(), and getBrowseQuestionsTabUrl().

Referenced by executeCommand().

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

◆ hasWriteAccess()

ilTestQuestionBrowserTableGUI::hasWriteAccess ( )

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

References $writeAccess.

Referenced by init().

+ Here is the caller graph for this function:

◆ init()

ilTestQuestionBrowserTableGUI::init ( )

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

177 {
178 if ($this->hasWriteAccess()) {
179 $this->addMultiCommand(self::CMD_INSERT_QUESTIONS, $this->lng->txt('insert'));
180 }
181 }
addMultiCommand($a_cmd, $a_text)
Add Command button.

References ilTable2GUI\addMultiCommand(), and hasWriteAccess().

+ Here is the call graph for this function:

◆ initFilter()

ilTestQuestionBrowserTableGUI::initFilter ( )

Init filter.

Overwrite this to initialize all filter input property objects.

Reimplemented from ilTable2GUI.

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

380 {
381 // title
382 include_once("./Services/Form/classes/class.ilTextInputGUI.php");
383 $ti = new ilTextInputGUI($this->lng->txt("tst_qbt_filter_question_title"), "title");
384 $ti->setMaxLength(64);
385 $ti->setSize(20);
386 $ti->setValidationRegexp('/(^[^%]+$)|(^$)/is');
387 $this->addFilterItem($ti);
388 $ti->readFromSession();
389 $this->filter["title"] = $ti->getValue();
390
391 // description
392 $ti = new ilTextInputGUI($this->lng->txt("description"), "description");
393 $ti->setMaxLength(64);
394 $ti->setSize(20);
395 $ti->setValidationRegexp('/(^[^%]+$)|(^$)/is');
396 $this->addFilterItem($ti);
397 $ti->readFromSession();
398 $this->filter["description"] = $ti->getValue();
399
400 // author
401 $ti = new ilTextInputGUI($this->lng->txt("author"), "author");
402 $ti->setMaxLength(64);
403 $ti->setSize(20);
404 $this->addFilterItem($ti);
405 $ti->setValidationRegexp('/(^[^%]+$)|(^$)/is');
406 $ti->readFromSession();
407 $this->filter["author"] = $ti->getValue();
408
409 // lifecycle
410 $lifecycleOptions = array_merge(
411 array('' => $this->lng->txt('qst_lifecycle_filter_all')),
412 ilAssQuestionLifecycle::getDraftInstance()->getSelectOptions($this->lng)
413 );
414 $lifecycleInp = new ilSelectInputGUI($this->lng->txt('qst_lifecycle'), 'lifecycle');
415 $lifecycleInp->setOptions($lifecycleOptions);
416 $this->addFilterItem($lifecycleInp);
417 $lifecycleInp->readFromSession();
418 $this->filter['lifecycle'] = $lifecycleInp->getValue();
419
420 // questiontype
421 include_once("./Services/Form/classes/class.ilSelectInputGUI.php");
422 include_once("./Modules/TestQuestionPool/classes/class.ilObjQuestionPool.php");
424 $options = array();
425 $options[""] = $this->lng->txt('filter_all_question_types');
426 foreach ($types as $translation => $row) {
427 $options[$row['type_tag']] = $translation;
428 }
429
430 $si = new ilSelectInputGUI($this->lng->txt("question_type"), "type");
431 $si->setOptions($options);
432 $this->addFilterItem($si);
433 $si->readFromSession();
434 $this->filter["type"] = $si->getValue();
435
436 // question pool
437 $ti = new ilTextInputGUI($this->getParentObjectLabel(), 'parent_title');
438 $ti->setMaxLength(64);
439 $ti->setSize(20);
440 $ti->setValidationRegexp('/(^[^%]+$)|(^$)/is');
441 $this->addFilterItem($ti);
442 $ti->readFromSession();
443 $this->filter['parent_title'] = $ti->getValue();
444
445 // repo root node
446 require_once 'Services/Form/classes/class.ilRepositorySelectorInputGUI.php';
447 $ri = new ilRepositorySelectorInputGUI($this->lng->txt('repository'), 'repository_root_node');
448 $ri->setHeaderMessage($this->lng->txt('question_browse_area_info'));
449 if ($this->fetchModeParameter() == self::MODE_BROWSE_TESTS) {
450 $ri->setClickableTypes(array('tst'));
451 } else {
452 $ri->setClickableTypes(array('qpl'));
453 }
454 $this->addFilterItem($ri);
455 $ri->readFromSession();
456 $this->filter['repository_root_node'] = $ri->getValue();
457 }
static _getQuestionTypes($all_tags=false, $fixOrder=false, $withDeprecatedTypes=true)
This class represents a repository selector in a property form.
This class represents a selection list property in a property form.
addFilterItem($a_input_item, $a_optional=false)
Add filter item.
This class represents a text property in a property form.
filter()
Definition: filter.php:2

References $si, ilObjQuestionPool\_getQuestionTypes(), ilTable2GUI\addFilterItem(), fetchModeParameter(), filter(), ilAssQuestionLifecycle\getDraftInstance(), and getParentObjectLabel().

Referenced by __construct().

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

◆ insertQuestionsCmd()

ilTestQuestionBrowserTableGUI::insertQuestionsCmd ( )
private

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

222 {
223 $selected_array = (is_array($_POST['q_id'])) ? $_POST['q_id'] : array();
224 if (!count($selected_array)) {
225 ilUtil::sendInfo($this->lng->txt("tst_insert_missing_question"), true);
226 $this->ctrl->redirect($this, self::CMD_BROWSE_QUESTIONS);
227 }
228
229 include_once "./Modules/TestQuestionPool/classes/class.assQuestion.php";
230
231 $testQuestionSetConfig = $this->buildTestQuestionSetConfig();
232
233 $manscoring = false;
234
235 foreach ($selected_array as $key => $value) {
236 $last_question_id = $this->testOBJ->insertQuestion($testQuestionSetConfig, $value);
237
238 if (!$manscoring) {
239 $manscoring = $manscoring | assQuestion::_needsManualScoring($value);
240 }
241 }
242
243 $this->testOBJ->saveCompleteStatus($testQuestionSetConfig);
244
245 if ($manscoring) {
246 ilUtil::sendInfo($this->lng->txt("manscoring_hint"), true);
247 } else {
248 ilUtil::sendSuccess($this->lng->txt("tst_questions_inserted"), true);
249 }
250
251 //$this->ctrl->setParameter($this, 'q_id', $last_question_id); // for page view ?
252
253 $this->ctrl->redirectByClass($this->getBackTargetCmdClass(), $this->getBackTargetCommand());
254 }
static _needsManualScoring($question_id)
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.

References $_POST, assQuestion\_needsManualScoring(), buildTestQuestionSetConfig(), getBackTargetCmdClass(), getBackTargetCommand(), and ilUtil\sendInfo().

+ Here is the call graph for this function:

◆ resetFilterCmd()

ilTestQuestionBrowserTableGUI::resetFilterCmd ( )
private

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

216 {
217 $this->resetFilter();
218 $this->ctrl->redirect($this, self::CMD_BROWSE_QUESTIONS);
219 }
resetFilter()
Reset filter.

References ilTable2GUI\resetFilter().

+ Here is the call graph for this function:

◆ setWriteAccess()

ilTestQuestionBrowserTableGUI::setWriteAccess (   $value)

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

167 {
168 $this->writeAccess = $value;
169 }

Field Documentation

◆ $access

ilTestQuestionBrowserTableGUI::$access
protected

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

Referenced by __construct().

◆ $ctrl

ilTestQuestionBrowserTableGUI::$ctrl
protected

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

Referenced by __construct().

◆ $db

ilTestQuestionBrowserTableGUI::$db
protected

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

Referenced by __construct().

◆ $lng

ilTestQuestionBrowserTableGUI::$lng
protected

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

Referenced by __construct().

◆ $mainTpl

ilTestQuestionBrowserTableGUI::$mainTpl
protected

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

Referenced by __construct().

◆ $pluginAdmin

ilTestQuestionBrowserTableGUI::$pluginAdmin
protected

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

Referenced by __construct().

◆ $refinery

ilTestQuestionBrowserTableGUI::$refinery
protected

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

Referenced by __construct().

◆ $tabs

ilTestQuestionBrowserTableGUI::$tabs
protected

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

Referenced by __construct().

◆ $testOBJ

ilTestQuestionBrowserTableGUI::$testOBJ
protected

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

Referenced by __construct().

◆ $tree

ilTestQuestionBrowserTableGUI::$tree
protected

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

Referenced by __construct().

◆ $ui_factory

ilTestQuestionBrowserTableGUI::$ui_factory
private

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

Referenced by __construct().

◆ $ui_renderer

ilTestQuestionBrowserTableGUI::$ui_renderer
private

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

Referenced by __construct().

◆ $writeAccess

ilTestQuestionBrowserTableGUI::$writeAccess = false
protected

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

Referenced by hasWriteAccess().

◆ CMD_APPLY_FILTER

const ilTestQuestionBrowserTableGUI::CMD_APPLY_FILTER = 'applyFilter'

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

◆ CMD_RESET_FILTER

const ilTestQuestionBrowserTableGUI::CMD_RESET_FILTER = 'resetFilter'

Definition at line 38 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

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

Referenced by getQuestionsData().


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