ILIAS  release_7 Revision v7.30-3-g800a261c036
ilQuestionBrowserTableGUI Class Reference
+ Inheritance diagram for ilQuestionBrowserTableGUI:
+ Collaboration diagram for ilQuestionBrowserTableGUI:

Public Member Functions

 __construct ($a_parent_obj, $a_parent_cmd, $a_write_access=false, $confirmdelete=false, $taxIds=array(), $enableCommenting=false)
 Constructor. More...
 
 isQuestionCommentingEnabled ()
 
 setQuestionCommentingEnabled (bool $questionCommentingEnabled)
 
 setQuestionData ($questionData)
 
 getSelectableColumns ()
 Get selectable columns. More...
 
 initFilter ()
 Init filter. More...
 
 fillHeader ()
 
 fillRow ($data)
 fill row More...
 
 setEditable ($value)
 
 getEditable ()
 
 setWriteAccess ($value)
 
 getWriteAccess ()
 
 numericOrdering ($column)
 
- 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)
 

Protected Member Functions

 isCommentsColumnSelected ()
 
 getCommentsHtml ($qData)
 
 getCommentsAjaxLink ($questionId)
 
- 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

 $notes
 
 $ui_factory
 
 $renderer
 
 $editable = true
 
 $writeAccess = false
 
 $totalPoints = 0
 
 $totalWorkingTime = '00:00:00'
 
 $confirmdelete
 
 $taxIds = array()
 
 $questionCommentingEnabled = false
 
- 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
 

Additional Inherited Members

- Static Public Member Functions inherited from ilTable2GUI
static getAllCommandLimit ()
 Get maximum number of entries to enable actions for all. More...
 
- 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
 

Detailed Description

Author
Helmut Schottmüller ilias.nosp@m.@aur.nosp@m.ealis.nosp@m..de
Version
$Id$

@ilCtrl_Calls ilQuestionBrowserTableGUI: ilFormPropertyDispatchGUI

Definition at line 18 of file class.ilQuestionBrowserTableGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilQuestionBrowserTableGUI::__construct (   $a_parent_obj,
  $a_parent_cmd,
  $a_write_access = false,
  $confirmdelete = false,
  $taxIds = array(),
  $enableCommenting = false 
)

Constructor.

@access public

Parameters

return

Definition at line 43 of file class.ilQuestionBrowserTableGUI.php.

44 {
45 $this->setQuestionCommentingEnabled($enableCommenting);
46
47 // Bugfix: #0019539
48 if ($confirmdelete) {
49 $this->setId("qpl_confirm_del_" . $a_parent_obj->object->getRefId());
50 } else {
51 $this->setId("qpl_qst_brows_" . $a_parent_obj->object->getRefId());
52 }
53
54 parent::__construct($a_parent_obj, $a_parent_cmd);
55
56 global $DIC;
57 $lng = $DIC['lng'];
58 $ilCtrl = $DIC['ilCtrl'];
59
60 $this->lng = $lng;
61 $this->ctrl = $ilCtrl;
62
63 $this->confirmdelete = $confirmdelete;
64 $this->setWriteAccess($a_write_access);
65 $this->taxIds = $taxIds;
66
67 $qplSetting = new ilSetting("qpl");
68
69 $this->setFormName('questionbrowser');
70 $this->setStyle('table', 'fullwidth');
71 if (!$confirmdelete) {
72 $this->addColumn('', '', '1%');
73 $this->addColumn($this->lng->txt("title"), 'title', '');
74 foreach ($this->getSelectedColumns() as $c) {
75 if (strcmp($c, 'description') == 0) {
76 $this->addColumn($this->lng->txt("description"), 'description', '');
77 }
78 if (strcmp($c, 'type') == 0) {
79 $this->addColumn($this->lng->txt("question_type"), 'ttype', '');
80 }
81 // According to mantis #12713
82 if (strcmp($c, 'points') == 0) {
83 $this->addColumn($this->lng->txt("points"), 'points', '', false, 'ilCenterForced');
84 }
85 if (strcmp($c, 'statistics') == 0) {
86 $this->addColumn($this->lng->txt('statistics'), '', '');
87 }
88 if (strcmp($c, 'author') == 0) {
89 $this->addColumn($this->lng->txt("author"), 'author', '');
90 }
91 if ($c == 'lifecycle') {
92 $this->addColumn($this->lng->txt('qst_lifecycle'), 'lifecycle', '');
93 }
94 if ($this->isQuestionCommentingEnabled() && $c == 'comments') {
95 $this->addColumn($this->lng->txt("ass_comments"), 'comments', '');
96 }
97 if (strcmp($c, 'created') == 0) {
98 $this->addColumn($this->lng->txt("create_date"), 'created', '');
99 }
100 if (strcmp($c, 'tstamp') == 0) {
101 $this->addColumn($this->lng->txt("last_update"), 'tstamp', '');
102 }
103 if (strcmp($c, 'working_time') == 0) {
104 $this->addColumn($this->lng->txt("working_time"), 'working_time', '');
105 }
106 }
107 $this->addColumn($this->lng->txt('actions'), '');
108 $this->setSelectAllCheckbox('q_id');
109 } else {
110 $this->addColumn($this->lng->txt("title"), 'title', '');
111 foreach ($this->getSelectedColumns() as $c) {
112 if (strcmp($c, 'description') == 0) {
113 $this->addColumn($this->lng->txt("description"), 'description', '');
114 }
115 if (strcmp($c, 'type') == 0) {
116 $this->addColumn($this->lng->txt("question_type"), 'ttype', '');
117 }
118 }
119 }
120
121 if ($this->getWriteAccess()) {
122 if ($confirmdelete) {
123 $this->addCommandButton('confirmDeleteQuestions', $this->lng->txt('confirm'));
124 $this->addCommandButton('cancelDeleteQuestions', $this->lng->txt('cancel'));
125 } else {
126 $this->addMultiCommand('copy', $this->lng->txt('copy'));
127 $this->addMultiCommand('move', $this->lng->txt('move'));
128 $this->addMultiCommand('exportQuestion', $this->lng->txt('export'));
129 $this->addMultiCommand('deleteQuestions', $this->lng->txt('delete'));
130 }
131 }
132
133 $this->setRowTemplate("tpl.il_as_qpl_questionbrowser_row.html", "Modules/TestQuestionPool");
134
135 $this->setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
136 $this->setDefaultOrderField("title");
137 $this->setDefaultOrderDirection("asc");
138
139 $this->setShowRowsSelector(true);
140
141 if ($confirmdelete) {
142 $this->disable('sort');
143 $this->disable('select_all');
144 } else {
145 $this->enable('sort');
146 $this->enable('header');
147 $this->enable('select_all');
148 $this->setFilterCommand('filterQuestionBrowser');
149 $this->setResetCommand('resetQuestionBrowser');
150 $this->initFilter();
151 }
152
153 if ($this->isQuestionCommentingEnabled()) {
154 global $DIC; /* @var ILIAS\DI\Container $DIC */
155
156 $notesUrl = $this->ctrl->getLinkTargetByClass(
157 array("ilcommonactiondispatchergui", "ilnotegui"),
158 "",
159 "",
160 true,
161 false
162 );
163
164 ilNoteGUI::initJavascript($notesUrl, IL_NOTE_PUBLIC, $DIC->ui()->mainTemplate());
165 }
166 }
const IL_NOTE_PUBLIC
Definition: class.ilNote.php:6
static initJavascript($a_ajax_url, $a_type=IL_NOTE_PRIVATE, ilGlobalTemplateInterface $a_main_tpl=null)
Init javascript.
setQuestionCommentingEnabled(bool $questionCommentingEnabled)
ILIAS Setting Class.
getSelectedColumns()
Get selected columns.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
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.
addMultiCommand($a_cmd, $a_text)
Add Command button.
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.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
disable($a_module_name)
diesables particular modules of table
setStyle($a_element, $a_style)
enable($a_module_name)
enables particular modules of table
$c
Definition: cli.php:37
global $DIC
Definition: goto.php:24
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References $c, $confirmdelete, $DIC, ilTableGUI\$lng, $taxIds, ILIAS\GlobalScreen\Provider\__construct(), ilTable2GUI\addColumn(), ilTable2GUI\addCommandButton(), ilTable2GUI\addMultiCommand(), ilTableGUI\disable(), ilTableGUI\enable(), ilTable2GUI\getSelectedColumns(), getWriteAccess(), IL_NOTE_PUBLIC, initFilter(), ilNoteGUI\initJavascript(), isQuestionCommentingEnabled(), ilTable2GUI\setDefaultOrderDirection(), ilTable2GUI\setDefaultOrderField(), ilTable2GUI\setFilterCommand(), ilTable2GUI\setFormAction(), ilTable2GUI\setFormName(), ilTable2GUI\setId(), setQuestionCommentingEnabled(), ilTable2GUI\setResetCommand(), ilTable2GUI\setRowTemplate(), ilTable2GUI\setSelectAllCheckbox(), ilTable2GUI\setShowRowsSelector(), ilTableGUI\setStyle(), and setWriteAccess().

+ Here is the call graph for this function:

Member Function Documentation

◆ fillHeader()

ilQuestionBrowserTableGUI::fillHeader ( )

Reimplemented from ilTable2GUI.

Definition at line 356 of file class.ilQuestionBrowserTableGUI.php.

357 {
358 foreach ($this->column as $key => $column) {
359 if (strcmp($column['text'], $this->lng->txt("points")) == 0) {
360 $this->column[$key]['text'] = $this->lng->txt("points") . " (" . $this->totalPoints . ")";
361 } elseif (strcmp($column['text'], $this->lng->txt("working_time")) == 0) {
362 $this->column[$key]['text'] = $this->lng->txt("working_time") . " (" . $this->totalWorkingTime . ")";
363 }
364 }
365 parent::fillHeader();
366 }

◆ fillRow()

ilQuestionBrowserTableGUI::fillRow (   $data)

fill row

@access public

Parameters

return

Reimplemented from ilTable2GUI.

Definition at line 375 of file class.ilQuestionBrowserTableGUI.php.

376 {
377 global $DIC;
378 $ilUser = $DIC['ilUser'];
379 $ilAccess = $DIC['ilAccess'];
380 include_once "./Modules/TestQuestionPool/classes/class.assQuestion.php";
381 include_once "./Modules/TestQuestionPool/classes/class.assQuestionGUI.php";
382 $class = strtolower(assQuestionGUI::_getGUIClassNameForId($data["question_id"]));
383 $this->ctrl->setParameterByClass("ilAssQuestionPageGUI", "q_id", $data["question_id"]);
384 $this->ctrl->setParameterByClass("ilAssQuestionPreviewGUI", "q_id", $data["question_id"]);
385 $this->ctrl->setParameterByClass($class, "q_id", $data["question_id"]);
386 $points = 0;
387
388 $actions = new ilAdvancedSelectionListGUI();
389 $actions->setId('qst' . $data["question_id"]);
390 $actions->setListTitle($this->lng->txt('actions'));
391
392 if (!$this->confirmdelete) {
393 $this->tpl->setCurrentBlock('checkbox');
394 $this->tpl->setVariable('CB_QUESTION_ID', $data["question_id"]);
395 $this->tpl->parseCurrentBlock();
396
397 if ($data["complete"] == 0) {
398 $this->tpl->setCurrentBlock("qpl_warning");
399 $this->tpl->setVariable("IMAGE_WARNING", ilUtil::getImagePath("icon_alert.svg"));
400 $this->tpl->setVariable("ALT_WARNING", $this->lng->txt("warning_question_not_complete"));
401 $this->tpl->setVariable("TITLE_WARNING", $this->lng->txt("warning_question_not_complete"));
402 $this->tpl->parseCurrentBlock();
403 } else {
404 $points = $data["points"];
405 $this->totalWorkingTime = assQuestion::sumTimesInISO8601FormatH_i_s_Extended($this->totalWorkingTime, $data['working_time']);
406 }
407 $this->totalPoints += $points;
408
409 foreach ($this->getSelectedColumns() as $c) {
410 if (strcmp($c, 'points') == 0) {
411 $this->tpl->setCurrentBlock('points');
412 $this->tpl->setVariable("QUESTION_POINTS", $points);
413 $this->tpl->parseCurrentBlock();
414 }
415 if (strcmp($c, 'statistics') == 0) {
416 $this->tpl->setCurrentBlock('statistics');
417 $this->tpl->setVariable("LINK_ASSESSMENT", $this->ctrl->getLinkTargetByClass('ilAssQuestionPreviewGUI', ilAssQuestionPreviewGUI::CMD_STATISTICS));
418 $this->tpl->setVariable("TXT_ASSESSMENT", $this->lng->txt("statistics"));
419 include_once "./Services/Utilities/classes/class.ilUtil.php";
420 $this->tpl->setVariable("IMG_ASSESSMENT", ilUtil::getImagePath("assessment.gif", "Modules/TestQuestionPool"));
421 $this->tpl->parseCurrentBlock();
422 }
423 if (strcmp($c, 'author') == 0) {
424 $this->tpl->setCurrentBlock('author');
425 $this->tpl->setVariable("QUESTION_AUTHOR", $data["author"]);
426 $this->tpl->parseCurrentBlock();
427 }
428 if ($c == 'lifecycle') {
429 $lifecycle = ilAssQuestionLifecycle::getInstance($data['lifecycle']);
430
431 $this->tpl->setCurrentBlock('lifecycle');
432 $this->tpl->setVariable("QUESTION_LIFECYCLE", $lifecycle->getTranslation($this->lng));
433 $this->tpl->parseCurrentBlock();
434 }
435 if ($c == 'comments' && $this->isQuestionCommentingEnabled()) {
436 $this->tpl->setCurrentBlock('comments');
437 $this->tpl->setVariable("COMMENTS", $this->getCommentsHtml($data));
438 $this->tpl->parseCurrentBlock();
439 }
440 if (strcmp($c, 'created') == 0) {
441 $this->tpl->setCurrentBlock('created');
442 $this->tpl->setVariable('QUESTION_CREATED', ilDatePresentation::formatDate(new ilDateTime($data['created'], IL_CAL_UNIX)));
443 $this->tpl->parseCurrentBlock();
444 }
445 if (strcmp($c, 'tstamp') == 0) {
446 $this->tpl->setCurrentBlock('updated');
447 $this->tpl->setVariable('QUESTION_UPDATED', ilDatePresentation::formatDate(new ilDateTime($data['tstamp'], IL_CAL_UNIX)));
448 $this->tpl->parseCurrentBlock();
449 }
450 if (strcmp($c, 'working_time') == 0) {
451 $this->tpl->setCurrentBlock('working_time');
452 $this->tpl->setVariable('WORKING_TIME', $data["working_time"]);
453 $this->tpl->parseCurrentBlock();
454 }
455 }
456
457 $actions->addItem(
458 $this->lng->txt('preview'),
459 '',
460 $this->ctrl->getLinkTargetByClass('ilAssQuestionPreviewGUI', ilAssQuestionPreviewGUI::CMD_SHOW)
461 );
462 $actions->addItem(
463 $this->lng->txt('statistics'),
464 '',
465 $this->ctrl->getLinkTargetByClass('ilAssQuestionPreviewGUI', ilAssQuestionPreviewGUI::CMD_STATISTICS)
466 );
467 if ($this->getEditable()) {
468 $editHref = $this->ctrl->getLinkTargetByClass($data['type_tag'] . 'GUI', 'editQuestion');
469 $actions->addItem($this->lng->txt('edit_question'), '', $editHref);
470
471 $editPageHref = $this->ctrl->getLinkTargetByClass('ilAssQuestionPageGUI', 'edit');
472 $actions->addItem($this->lng->txt('edit_page'), '', $editPageHref);
473 }
474
475 if ($this->getWriteAccess()) {
476 $this->ctrl->setParameter($this->parent_obj, 'q_id', $data['question_id']);
477 $moveHref = $this->ctrl->getLinkTarget($this->parent_obj, 'move');
478 $this->ctrl->setParameter($this->parent_obj, 'q_id', null);
479 $actions->addItem($this->lng->txt('move'), '', $moveHref);
480
481 $this->ctrl->setParameter($this->parent_obj, 'q_id', $data['question_id']);
482 $copyHref = $this->ctrl->getLinkTarget($this->parent_obj, 'copy');
483 $this->ctrl->setParameter($this->parent_obj, 'q_id', null);
484 $actions->addItem($this->lng->txt('copy'), '', $copyHref);
485
486 $this->ctrl->setParameter($this->parent_obj, 'q_id', $data['question_id']);
487 $deleteHref = $this->ctrl->getLinkTarget($this->parent_obj, 'deleteQuestions');
488 $this->ctrl->setParameter($this->parent_obj, 'q_id', null);
489 $actions->addItem($this->lng->txt('delete'), '', $deleteHref);
490 }
491
492 if ($this->getEditable()) {
493 require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionFeedbackEditingGUI.php';
494 $this->ctrl->setParameterByClass('ilAssQuestionFeedbackEditingGUI', 'q_id', $data['question_id']);
495 $feedbackHref = $this->ctrl->getLinkTargetByClass('ilAssQuestionFeedbackEditingGUI', ilAssQuestionFeedbackEditingGUI::CMD_SHOW);
496 $this->ctrl->setParameterByClass('ilAssQuestionFeedbackEditingGUI', 'q_id', null);
497 $actions->addItem($this->lng->txt('tst_feedback'), '', $feedbackHref);
498
499 $this->ctrl->setParameterByClass('ilAssQuestionHintsGUI', 'q_id', $data['question_id']);
500 $hintsHref = $this->ctrl->getLinkTargetByClass('ilAssQuestionHintsGUI', ilAssQuestionHintsGUI::CMD_SHOW_LIST);
501 $this->ctrl->setParameterByClass('ilAssQuestionHintsGUI', 'q_id', null);
502 $actions->addItem($this->lng->txt('tst_question_hints_tab'), '', $hintsHref);
503 }
504
505 if ($this->isQuestionCommentingEnabled()) {
506 $actions->addItem(
507 $this->lng->txt('ass_comments'),
508 'comments',
509 '',
510 '',
511 '',
512 '',
513 '',
514 '',
515 $this->getCommentsAjaxLink($data['question_id'])
516 );
517 }
518 } else {
519 $this->tpl->setCurrentBlock('hidden');
520 $this->tpl->setVariable('HIDDEN_QUESTION_ID', $data["question_id"]);
521 $this->tpl->parseCurrentBlock();
522 }
523
524 foreach ($this->getSelectedColumns() as $c) {
525 if (strcmp($c, 'description') == 0) {
526 $this->tpl->setCurrentBlock('description');
527 $this->tpl->setVariable("QUESTION_COMMENT", $data['description']);
528 $this->tpl->parseCurrentBlock();
529 }
530 if (strcmp($c, 'type') == 0) {
531 $this->tpl->setCurrentBlock('type');
532 $this->tpl->setVariable("QUESTION_TYPE", assQuestion::_getQuestionTypeName($data["type_tag"]));
533 $this->tpl->parseCurrentBlock();
534 }
535 }
536 $this->tpl->setVariable('QUESTION_ID', $data["question_id"]);
537 if (!$this->confirmdelete) {
538 $this->tpl->setVariable('QUESTION_HREF_LINKED', $this->ctrl->getLinkTargetByClass('ilAssQuestionPreviewGUI', ilAssQuestionPreviewGUI::CMD_SHOW));
539 $this->tpl->setVariable('QUESTION_TITLE_LINKED', $data['title']);
540 $this->tpl->setVariable('ACTIONS', $actions->getHTML());
541 } else {
542 $this->tpl->setVariable('QUESTION_ID_UNLINKED', $data['question_id']);
543 $this->tpl->setVariable('QUESTION_TITLE_UNLINKED', $data['title']);
544 }
545 }
const IL_CAL_UNIX
static _getGUIClassNameForId($a_q_id)
static sumTimesInISO8601FormatH_i_s_Extended($time1, $time2)
static _getQuestionTypeName($type_tag)
Return the translation for a given question type tag.
User interface class for advanced drop-down selection lists.
const CMD_SHOW_LIST
command constants
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date @access public.
@classDescription Date and time handling
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
$ilUser
Definition: imgupload.php:18

References $c, ilTableGUI\$data, $DIC, $ilUser, assQuestionGUI\_getGUIClassNameForId(), assQuestion\_getQuestionTypeName(), ilAssQuestionFeedbackEditingGUI\CMD_SHOW, ilAssQuestionPreviewGUI\CMD_SHOW, ilAssQuestionHintsGUI\CMD_SHOW_LIST, ilAssQuestionPreviewGUI\CMD_STATISTICS, ilDatePresentation\formatDate(), getCommentsHtml(), getEditable(), ilUtil\getImagePath(), ilAssQuestionLifecycle\getInstance(), ilTable2GUI\getSelectedColumns(), getWriteAccess(), IL_CAL_UNIX, isQuestionCommentingEnabled(), and assQuestion\sumTimesInISO8601FormatH_i_s_Extended().

+ Here is the call graph for this function:

◆ getCommentsAjaxLink()

ilQuestionBrowserTableGUI::getCommentsAjaxLink (   $questionId)
protected

Definition at line 593 of file class.ilQuestionBrowserTableGUI.php.

594 {
595 $ajax_hash = ilCommonActionDispatcherGUI::buildAjaxHash(1, $_GET['ref_id'], 'quest', $this->parent_obj->object->getId(), 'quest', $questionId);
596 return ilNoteGUI::getListCommentsJSCall($ajax_hash, '');
597 }
$_GET["client_id"]
static buildAjaxHash( $a_node_type, $a_node_id, $a_obj_type, $a_obj_id, $a_sub_type=null, $a_sub_id=null, $a_news_id=0)
Build ajax hash.
static getListCommentsJSCall($a_hash, $a_update_code=null)
Get list comments js call.

References $_GET, ilCommonActionDispatcherGUI\buildAjaxHash(), and ilNoteGUI\getListCommentsJSCall().

Referenced by getCommentsHtml().

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

◆ getCommentsHtml()

ilQuestionBrowserTableGUI::getCommentsHtml (   $qData)
protected

Definition at line 580 of file class.ilQuestionBrowserTableGUI.php.

581 {
582 if (!$qData['comments']) {
583 return '';
584 }
585
586 $ajaxLink = $this->getCommentsAjaxLink($qData['question_id']);
587
588 return "<a class='comment' href='#' onclick=\"return " . $ajaxLink . "\">
589 <img src='" . ilUtil::getImagePath("comment_unlabeled.svg")
590 . "' alt='{$qData['comments']}'><span class='ilHActProp'>{$qData['comments']}</span></a>";
591 }

References getCommentsAjaxLink(), and ilUtil\getImagePath().

Referenced by fillRow().

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

◆ getEditable()

ilQuestionBrowserTableGUI::getEditable ( )

Definition at line 552 of file class.ilQuestionBrowserTableGUI.php.

References $editable.

Referenced by fillRow().

+ Here is the caller graph for this function:

◆ getSelectableColumns()

ilQuestionBrowserTableGUI::getSelectableColumns ( )

Get selectable columns.

Returns
array key: column id, val: true/false -> default on/off

Reimplemented from ilTable2GUI.

Definition at line 212 of file class.ilQuestionBrowserTableGUI.php.

213 {
214 global $DIC;
215 $lng = $DIC['lng'];
216 $cols["description"] = array(
217 "txt" => $lng->txt("description"),
218 "default" => true
219 );
220 $cols["type"] = array(
221 "txt" => $lng->txt("question_type"),
222 "default" => true
223 );
224 if (!$this->confirmdelete) {
225 $cols["points"] = array(
226 "txt" => $lng->txt("points"),
227 "default" => true
228 );
229 $cols["statistics"] = array(
230 "txt" => $lng->txt("statistics"),
231 "default" => true
232 );
233 $cols["author"] = array(
234 "txt" => $lng->txt("author"),
235 "default" => true
236 );
237 $cols['lifecycle'] = array(
238 'txt' => $lng->txt('qst_lifecycle'),
239 'default' => true
240 );
241 if ($this->isQuestionCommentingEnabled()) {
242 $cols["comments"] = array(
243 "txt" => $lng->txt("comments"),
244 "default" => true
245 );
246 }
247 $cols["created"] = array(
248 "txt" => $lng->txt("create_date"),
249 "default" => true
250 );
251 $cols["tstamp"] = array(
252 "txt" => $lng->txt("last_update"),
253 "default" => true
254 );
255 $cols["working_time"] = array(
256 "txt" => $lng->txt("working_time"),
257 "default" => true
258 );
259 }
260 return $cols;
261 }
$cols
Definition: xhr_table.php:11

References $cols, $DIC, ilTableGUI\$lng, and isQuestionCommentingEnabled().

+ Here is the call graph for this function:

◆ getWriteAccess()

ilQuestionBrowserTableGUI::getWriteAccess ( )

Definition at line 562 of file class.ilQuestionBrowserTableGUI.php.

References $writeAccess.

Referenced by __construct(), and fillRow().

+ Here is the caller graph for this function:

◆ initFilter()

ilQuestionBrowserTableGUI::initFilter ( )

Init filter.

Reimplemented from ilTable2GUI.

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

267 {
268 global $DIC;
269 $lng = $DIC['lng'];
270 $rbacreview = $DIC['rbacreview'];
271 $ilUser = $DIC['ilUser'];
272
273 // title
274 include_once("./Services/Form/classes/class.ilTextInputGUI.php");
275 $ti = new ilTextInputGUI($lng->txt("title"), "title");
276 $ti->setMaxLength(64);
277 $ti->setValidationRegexp('/^[^%]+$/is');
278 $ti->setSize(20);
279 $this->addFilterItem($ti);
280 $ti->readFromSession();
281 $this->filter["title"] = $ti->getValue();
282
283 // description
284 $ti = new ilTextInputGUI($lng->txt("description"), "description");
285 $ti->setMaxLength(64);
286 $ti->setSize(20);
287 $ti->setValidationRegexp('/^[^%]+$/is');
288 $this->addFilterItem($ti);
289 $ti->readFromSession();
290 $this->filter["description"] = $ti->getValue();
291
292 if (!$this->confirmdelete) {
293 // author
294 $ti = new ilTextInputGUI($lng->txt("author"), "author");
295 $ti->setMaxLength(64);
296 $ti->setSize(20);
297 $ti->setValidationRegexp('/^[^%]+$/is');
298 $this->addFilterItem($ti);
299 $ti->readFromSession();
300 $this->filter["author"] = $ti->getValue();
301 }
302
303 // lifecycle
304 $lifecycleOptions = array_merge(
305 array('' => $this->lng->txt('qst_lifecycle_filter_all')),
306 ilAssQuestionLifecycle::getDraftInstance()->getSelectOptions($this->lng)
307 );
308 $lifecycleInp = new ilSelectInputGUI($this->lng->txt('qst_lifecycle'), 'lifecycle');
309 $lifecycleInp->setOptions($lifecycleOptions);
310 $this->addFilterItem($lifecycleInp);
311 $lifecycleInp->readFromSession();
312 $this->filter['lifecycle'] = $lifecycleInp->getValue();
313
314 // questiontype
315 include_once("./Services/Form/classes/class.ilSelectInputGUI.php");
316 include_once("./Modules/TestQuestionPool/classes/class.ilObjQuestionPool.php");
318 $options = array();
319 $options[""] = $lng->txt('filter_all_question_types');
320 foreach ($types as $translation => $row) {
321 $options[$row['type_tag']] = $translation;
322 }
323
324 $si = new ilSelectInputGUI($this->lng->txt("question_type"), "type");
325 $si->setOptions($options);
326 $this->addFilterItem($si);
327 $si->readFromSession();
328 $this->filter["type"] = $si->getValue();
329
330 if ($this->parent_obj->object->getShowTaxonomies()) {
331 require_once 'Services/Taxonomy/classes/class.ilTaxSelectInputGUI.php';
332
333 foreach ($this->taxIds as $taxId) {
334 if ($taxId == $this->parent_obj->object->getNavTaxonomyId()) {
335 continue;
336 }
337
338 $postvar = "tax_$taxId";
339
340 $inp = new ilTaxSelectInputGUI($taxId, $postvar, true);
341 $this->addFilterItem($inp);
342 $inp->readFromSession();
343 $this->filter[$postvar] = $inp->getValue();
344 }
345 }
346
347 // comments
348 if ($this->isQuestionCommentingEnabled()) {
349 $comments = new ilCheckboxInputGUI($lng->txt('ass_commented_questions_only'), 'commented');
350 $this->addFilterItem($comments);
351 $comments->readFromSession();
352 $this->filter['commented'] = $comments->getChecked();
353 }
354 }
This class represents a checkbox property in a property form.
static _getQuestionTypes($all_tags=false, $fixOrder=false, $withDeprecatedTypes=true)
This class represents a selection list property in a property form.
addFilterItem($a_input_item, $a_optional=false)
Add filter item.
Select taxonomy nodes input GUI.
This class represents a text property in a property form.
filter()
Definition: filter.php:2

References $DIC, $ilUser, ilTableGUI\$lng, $si, ilObjQuestionPool\_getQuestionTypes(), ilTable2GUI\addFilterItem(), filter(), ilAssQuestionLifecycle\getDraftInstance(), and isQuestionCommentingEnabled().

Referenced by __construct().

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

◆ isCommentsColumnSelected()

ilQuestionBrowserTableGUI::isCommentsColumnSelected ( )
protected

Definition at line 184 of file class.ilQuestionBrowserTableGUI.php.

185 {
186 return in_array('comments', $this->getSelectedColumns());
187 }

References ilTable2GUI\getSelectedColumns().

Referenced by setQuestionData().

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

◆ isQuestionCommentingEnabled()

ilQuestionBrowserTableGUI::isQuestionCommentingEnabled ( )
Returns
bool

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

References $questionCommentingEnabled.

Referenced by __construct(), fillRow(), getSelectableColumns(), initFilter(), and setQuestionData().

+ Here is the caller graph for this function:

◆ numericOrdering()

ilQuestionBrowserTableGUI::numericOrdering (   $column)
Parameters
string$column
Returns
bool

Reimplemented from ilTable2GUI.

Definition at line 571 of file class.ilQuestionBrowserTableGUI.php.

572 {
573 if (in_array($column, array('points', 'created', 'tstamp', 'comments'))) {
574 return true;
575 }
576
577 return false;
578 }

◆ setEditable()

ilQuestionBrowserTableGUI::setEditable (   $value)

Definition at line 547 of file class.ilQuestionBrowserTableGUI.php.

548 {
549 $this->editable = $value;
550 }

◆ setQuestionCommentingEnabled()

ilQuestionBrowserTableGUI::setQuestionCommentingEnabled ( bool  $questionCommentingEnabled)
Parameters
bool$questionCommentingEnabled

Definition at line 179 of file class.ilQuestionBrowserTableGUI.php.

180 {
181 $this->questionCommentingEnabled = $questionCommentingEnabled;
182 }

References $questionCommentingEnabled.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setQuestionData()

ilQuestionBrowserTableGUI::setQuestionData (   $questionData)

Definition at line 189 of file class.ilQuestionBrowserTableGUI.php.

190 {
191 if ($this->isQuestionCommentingEnabled() && ($this->isCommentsColumnSelected() || $this->filter['commented'])) {
192 foreach ($questionData as $key => $data) {
193 $numComments = count(ilNote::_getNotesOfObject(
194 $this->parent_obj->object->getId(),
195 $data['question_id'],
196 'quest',
198 ));
199
200 if ($this->filter['commented'] && !$numComments) {
201 unset($questionData[$key]);
202 continue;
203 }
204
205 $questionData[$key]['comments'] = $numComments;
206 }
207 }
208
209 $this->setData($questionData);
210 }
static _getNotesOfObject( $a_rep_obj_id, $a_obj_id, $a_obj_type, $a_type=IL_NOTE_PRIVATE, $a_incl_sub=false, $a_filter="", $a_all_public="y", $a_repository_mode=true, $a_sort_ascending=false, $a_news_id=0)
get all notes related to a specific object
setData($a_data)
set table data @access public

References ilTableGUI\$data, ilNote\_getNotesOfObject(), filter(), IL_NOTE_PUBLIC, isCommentsColumnSelected(), isQuestionCommentingEnabled(), and ilTable2GUI\setData().

+ Here is the call graph for this function:

◆ setWriteAccess()

ilQuestionBrowserTableGUI::setWriteAccess (   $value)

Definition at line 557 of file class.ilQuestionBrowserTableGUI.php.

558 {
559 $this->writeAccess = $value;
560 }

Referenced by __construct().

+ Here is the caller graph for this function:

Field Documentation

◆ $confirmdelete

ilQuestionBrowserTableGUI::$confirmdelete
protected

Definition at line 27 of file class.ilQuestionBrowserTableGUI.php.

Referenced by __construct().

◆ $editable

ilQuestionBrowserTableGUI::$editable = true
protected

Definition at line 23 of file class.ilQuestionBrowserTableGUI.php.

Referenced by getEditable().

◆ $notes

ilQuestionBrowserTableGUI::$notes
protected

Definition at line 20 of file class.ilQuestionBrowserTableGUI.php.

◆ $questionCommentingEnabled

ilQuestionBrowserTableGUI::$questionCommentingEnabled = false
protected

◆ $renderer

ilQuestionBrowserTableGUI::$renderer
protected

Definition at line 22 of file class.ilQuestionBrowserTableGUI.php.

◆ $taxIds

ilQuestionBrowserTableGUI::$taxIds = array()
protected

Definition at line 29 of file class.ilQuestionBrowserTableGUI.php.

Referenced by __construct().

◆ $totalPoints

ilQuestionBrowserTableGUI::$totalPoints = 0
protected

Definition at line 25 of file class.ilQuestionBrowserTableGUI.php.

◆ $totalWorkingTime

ilQuestionBrowserTableGUI::$totalWorkingTime = '00:00:00'
protected

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

◆ $ui_factory

ilQuestionBrowserTableGUI::$ui_factory
protected

Definition at line 21 of file class.ilQuestionBrowserTableGUI.php.

◆ $writeAccess

ilQuestionBrowserTableGUI::$writeAccess = false
protected

Definition at line 24 of file class.ilQuestionBrowserTableGUI.php.

Referenced by getWriteAccess().


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