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

Public Member Functions

 __construct (ilCtrl $ctrl, $parent, $cmd)
 
 initColumns ()
 
 initFilter ()
 
 isPdfGenerationRequest ()
 
 setIsPdfGenerationRequest (bool $is_print_request)
 
 fillRow (array $a_set)
 
 setSingleAnswerScreenCmd ($singleAnswerScreenCmd)
 
 getSingleAnswerScreenCmd ()
 
 setAnswerListAnchorEnabled ($answerListAnchorEnabled)
 
 getAnswerListAnchorEnabled ()
 
 setShowHintCount ($showHintCount)
 
 getShowHintCount ()
 
 setShowSuggestedSolution (bool $showSuggestedSolution)
 
 getShowSuggestedSolution ()
 
 setActiveId ($activeId)
 
 getActiveId ()
 
 isObjectiveOrientedPresentationEnabled ()
 
 setObjectiveOrientedPresentationEnabled (bool $objectiveOrientedPresentationEnabled)
 
 areMultipleObjectivesInvolved ()
 
 setMultipleObjectivesInvolved ($multipleObjectivesInvolved)
 
 getQuestionRelatedObjectivesList ()
 
 setQuestionRelatedObjectivesList (ilTestQuestionRelatedObjectivesList $questionRelatedObjectivesList)
 
 isPassColumnEnabled ()
 
 setPassColumnEnabled (bool $passColumnEnabled)
 
- 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)
 

Private Member Functions

 getRowId ($questionId)
 
 getQuestionTitleLink ($questionId)
 
 isQuestionTitleLinkPossible ()
 
 areActionListsRequired ()
 
 getActionList ($questionId)
 
 getAnswerListAnchor ($questionId)
 

Private Attributes

string $singleAnswerScreenCmd = null
 
bool $answerListAnchorEnabled = false
 
bool $showHintCount = false
 
bool $showSuggestedSolution = false
 
 $activeId = null
 
bool $is_pdf_generation_request = false
 
bool $objectiveOrientedPresentationEnabled = false
 
bool $multipleObjectivesInvolved = true
 
bool $passColumnEnabled = false
 
array $tableIdsByParentClasses
 
ilTestQuestionRelatedObjectivesList $questionRelatedObjectivesList = null
 

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='')
 
- 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 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...
 
- 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

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

Constructor & Destructor Documentation

◆ __construct()

ilTestPassDetailsOverviewTableGUI::__construct ( ilCtrl  $ctrl,
  $parent,
  $cmd 
)

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

References ilTable2GUI\$ctrl, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\ctrl(), ilTableGUI\disable(), ilTable2GUI\setDefaultOrderDirection(), ilTable2GUI\setDefaultOrderField(), ilTable2GUI\setExternalSegmentation(), ilTable2GUI\setFormAction(), ilTable2GUI\setFormName(), ilTable2GUI\setId(), ilTable2GUI\setLimit(), ilTable2GUI\setPrefix(), and ilTable2GUI\setRowTemplate().

55  {
56  $tableId = 0;
57  if (isset($this->tableIdsByParentClasses[get_class($parent)])) {
58  $tableId = $this->tableIdsByParentClasses[get_class($parent)];
59  }
60 
61  $this->ctrl = $ctrl;
62 
63  $this->setId('tst_pdo_' . $tableId);
64  $this->setPrefix('tst_pdo_' . $tableId);
65 
66  $this->setDefaultOrderField('nr');
67  $this->setDefaultOrderDirection('ASC');
68 
69  parent::__construct($parent, $cmd);
70 
71  $this->setFormName('tst_pass_details_overview');
72  $this->setFormAction($this->ctrl->getFormAction($parent, $cmd));
73 
74  // Don't set any limit because of print/pdf views.
75  $this->setLimit(PHP_INT_MAX);
76  $this->setExternalSegmentation(true);
77 
78  $this->disable('linkbar');
79  $this->disable('hits');
80  $this->disable('sort');
81 
82  //$this->disable('numinfo');
83  //$this->disable('numinfo_header');
84  // KEEP THIS ENABLED, SINCE NO TABLE FILTER ARE PROVIDED OTHERWISE
85 
86  $this->setRowTemplate('tpl.il_as_tst_pass_details_overview_qst_row.html', 'Modules/Test');
87  }
setFormAction(string $a_form_action, bool $a_multipart=false)
setFormName(string $a_name="")
setId(string $a_val)
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
__construct(Container $dic, ilPlugin $plugin)
setLimit(int $a_limit=0, int $a_default_limit=0)
disable(string $a_module_name)
setExternalSegmentation(bool $a_val)
setPrefix(string $a_prefix)
+ Here is the call graph for this function:

Member Function Documentation

◆ areActionListsRequired()

ilTestPassDetailsOverviewTableGUI::areActionListsRequired ( )
private

Definition at line 238 of file class.ilTestPassDetailsOverviewTableGUI.php.

References getAnswerListAnchorEnabled(), getSingleAnswerScreenCmd(), and isPdfGenerationRequest().

Referenced by fillRow(), and initColumns().

238  : bool
239  {
240  if ($this->isPdfGenerationRequest()) {
241  return false;
242  }
243 
244  if (!$this->getAnswerListAnchorEnabled()) {
245  return false;
246  }
247 
248  if (!strlen($this->getSingleAnswerScreenCmd())) {
249  return false;
250  }
251 
252  return true;
253  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ areMultipleObjectivesInvolved()

ilTestPassDetailsOverviewTableGUI::areMultipleObjectivesInvolved ( )

Definition at line 346 of file class.ilTestPassDetailsOverviewTableGUI.php.

References $multipleObjectivesInvolved.

Referenced by fillRow(), and initColumns().

+ Here is the caller graph for this function:

◆ fillRow()

ilTestPassDetailsOverviewTableGUI::fillRow ( array  $a_set)

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

References $objectives, areActionListsRequired(), areMultipleObjectivesInvolved(), ILIAS\Repository\ctrl(), getActionList(), getQuestionTitleLink(), getRowId(), getShowHintCount(), getShowSuggestedSolution(), isObjectiveOrientedPresentationEnabled(), isPassColumnEnabled(), and isQuestionTitleLinkPossible().

154  : void
155  {
156  $this->ctrl->setParameter($this->parent_obj, 'evaluation', $a_set['qid']);
157 
158  if (isset($a_set['pass'])) {
159  $this->ctrl->setParameter($this->parent_obj, 'pass', $a_set['pass']);
160  }
161 
162  if ($this->isQuestionTitleLinkPossible()) {
163  $questionTitleLink = $this->getQuestionTitleLink($a_set['qid']);
164 
165  if (strlen($questionTitleLink)) {
166  $this->tpl->setVariable('URL_QUESTION_TITLE', $questionTitleLink);
167 
168  $this->tpl->setCurrentBlock('title_link_end_tag');
169  $this->tpl->touchBlock('title_link_end_tag');
170  $this->tpl->parseCurrentBlock();
171  }
172  }
173 
175  $objectives = $this->questionRelatedObjectivesList->getQuestionRelatedObjectiveTitles($a_set['qid']);
176  $this->tpl->setVariable('VALUE_LO_OBJECTIVES', strlen($objectives) ? $objectives : ' ');
177  }
178 
179  if ($this->getShowHintCount()) {
180  $this->tpl->setVariable('VALUE_HINT_COUNT', (int) $a_set['requested_hints']);
181  }
182 
183  if ($this->getShowSuggestedSolution()) {
184  $this->tpl->setVariable('SOLUTION_HINT', $a_set['solution']);
185  }
186 
187  if ($this->areActionListsRequired()) {
188  $this->tpl->setVariable('ACTIONS_MENU', $this->getActionList($a_set['qid']));
189  }
190 
191  $this->tpl->setVariable('VALUE_QUESTION_TITLE', $a_set['title']);
192  $this->tpl->setVariable('VALUE_QUESTION_ID', $a_set['qid']);
193 
194  if ($this->isPassColumnEnabled()) {
195  $this->tpl->setVariable('VALUE_QUESTION_PASS', $a_set['pass'] + 1);
196  } else {
197  $this->tpl->setVariable('VALUE_QUESTION_COUNTER', $a_set['nr']);
198  }
199 
200  $this->tpl->setVariable('VALUE_MAX_POINTS', $a_set['max']);
201  $this->tpl->setVariable('VALUE_REACHED_POINTS', $a_set['reached']);
202  $this->tpl->setVariable('VALUE_PERCENT_SOLVED', $a_set['percent']);
203 
204  $this->tpl->setVariable('ROW_ID', $this->getRowId($a_set['qid']));
205  }
$objectives
+ Here is the call graph for this function:

◆ getActionList()

ilTestPassDetailsOverviewTableGUI::getActionList (   $questionId)
private

Definition at line 255 of file class.ilTestPassDetailsOverviewTableGUI.php.

References ILIAS\Repository\ctrl(), getAnswerListAnchor(), getAnswerListAnchorEnabled(), getSingleAnswerScreenCmd(), and ILIAS\Repository\lng().

Referenced by fillRow().

255  : string
256  {
257  $aslGUI = new ilAdvancedSelectionListGUI();
258  $aslGUI->setListTitle($this->lng->txt('tst_answer_details'));
259  $aslGUI->setId("act{$this->getActiveId()}_qst{$questionId}");
260 
261  if ($this->getAnswerListAnchorEnabled()) {
262  $aslGUI->addItem(
263  $this->lng->txt('tst_list_answer_details'),
264  'tst_pass_details',
265  $this->getAnswerListAnchor($questionId)
266  );
267  }
268 
269  if (strlen($this->getSingleAnswerScreenCmd())) {
270  $aslGUI->addItem(
271  $this->lng->txt('tst_single_answer_details'),
272  'tst_pass_details',
273  $this->ctrl->getLinkTarget($this->parent_obj, $this->getSingleAnswerScreenCmd())
274  );
275  }
276 
277  return $aslGUI->getHTML();
278  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getActiveId()

ilTestPassDetailsOverviewTableGUI::getActiveId ( )

◆ getAnswerListAnchor()

ilTestPassDetailsOverviewTableGUI::getAnswerListAnchor (   $questionId)
private

Definition at line 300 of file class.ilTestPassDetailsOverviewTableGUI.php.

Referenced by getActionList(), and getQuestionTitleLink().

300  : string
301  {
302  return "#detailed_answer_block_act_{$this->getActiveId()}_qst_{$questionId}";
303  }
+ Here is the caller graph for this function:

◆ getAnswerListAnchorEnabled()

ilTestPassDetailsOverviewTableGUI::getAnswerListAnchorEnabled ( )

Definition at line 295 of file class.ilTestPassDetailsOverviewTableGUI.php.

References $answerListAnchorEnabled.

Referenced by areActionListsRequired(), getActionList(), getQuestionTitleLink(), and isQuestionTitleLinkPossible().

+ Here is the caller graph for this function:

◆ getQuestionRelatedObjectivesList()

ilTestPassDetailsOverviewTableGUI::getQuestionRelatedObjectivesList ( )

◆ getQuestionTitleLink()

ilTestPassDetailsOverviewTableGUI::getQuestionTitleLink (   $questionId)
private

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

References ILIAS\Repository\ctrl(), getAnswerListAnchor(), getAnswerListAnchorEnabled(), and getSingleAnswerScreenCmd().

Referenced by fillRow().

212  : string
213  {
214  if ($this->getAnswerListAnchorEnabled()) {
215  return $this->getAnswerListAnchor($questionId);
216  }
217 
218  if (strlen($this->getSingleAnswerScreenCmd())) {
219  return $this->ctrl->getLinkTarget($this->parent_obj, $this->getSingleAnswerScreenCmd());
220  }
221 
222  return '';
223  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRowId()

ilTestPassDetailsOverviewTableGUI::getRowId (   $questionId)
private

Definition at line 207 of file class.ilTestPassDetailsOverviewTableGUI.php.

Referenced by fillRow().

207  : string
208  {
209  return "pass_details_tbl_row_act_{$this->getActiveId()}_qst_{$questionId}";
210  }
+ Here is the caller graph for this function:

◆ getShowHintCount()

ilTestPassDetailsOverviewTableGUI::getShowHintCount ( )

Definition at line 311 of file class.ilTestPassDetailsOverviewTableGUI.php.

References $showHintCount.

Referenced by fillRow(), and initColumns().

311  : bool
312  {
313  return $this->showHintCount;
314  }
+ Here is the caller graph for this function:

◆ getShowSuggestedSolution()

ilTestPassDetailsOverviewTableGUI::getShowSuggestedSolution ( )

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

References $showSuggestedSolution.

Referenced by fillRow(), and initColumns().

+ Here is the caller graph for this function:

◆ getSingleAnswerScreenCmd()

ilTestPassDetailsOverviewTableGUI::getSingleAnswerScreenCmd ( )

Definition at line 285 of file class.ilTestPassDetailsOverviewTableGUI.php.

References $singleAnswerScreenCmd.

Referenced by areActionListsRequired(), getActionList(), getQuestionTitleLink(), and isQuestionTitleLinkPossible().

285  : ?string
286  {
288  }
+ Here is the caller graph for this function:

◆ initColumns()

ilTestPassDetailsOverviewTableGUI::initColumns ( )

Definition at line 89 of file class.ilTestPassDetailsOverviewTableGUI.php.

References ilTable2GUI\addColumn(), areActionListsRequired(), areMultipleObjectivesInvolved(), getShowHintCount(), getShowSuggestedSolution(), isObjectiveOrientedPresentationEnabled(), isPassColumnEnabled(), and ILIAS\Repository\lng().

89  : void
90  {
91  if ($this->isPassColumnEnabled()) {
93  $passHeaderLabel = $this->lng->txt("tst_attempt");
94  } else {
95  $passHeaderLabel = $this->lng->txt("pass");
96  }
97 
98  $this->addColumn($passHeaderLabel, 'pass', '');
99  } else {
100  $this->addColumn($this->lng->txt("tst_question_no"), '', '');
101  }
102 
103  $this->addColumn($this->lng->txt("question_id"), '', '');
104  $this->addColumn($this->lng->txt("tst_question_title"), '', '');
105 
107  $this->addColumn($this->lng->txt('tst_res_lo_objectives_header'), '', '');
108  }
109 
110  $this->addColumn($this->lng->txt("tst_maximum_points"), '', '');
111  $this->addColumn($this->lng->txt("tst_reached_points"), '', '');
112 
113  if ($this->getShowHintCount()) {
114  $this->addColumn($this->lng->txt("tst_question_hints_requested_hint_count_header"), '', '');
115  }
116 
117  $this->addColumn($this->lng->txt("tst_percent_solved"), '', '');
118 
119  if ($this->getShowSuggestedSolution()) {
120  $this->addColumn($this->lng->txt("solution_hint"), '', '');
121  }
122 
123  if ($this->areActionListsRequired()) {
124  $this->addColumn($this->lng->txt('actions'), '', '1');
125  }
126  }
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:

◆ initFilter()

ilTestPassDetailsOverviewTableGUI::initFilter ( )

Definition at line 128 of file class.ilTestPassDetailsOverviewTableGUI.php.

References ilTable2GUI\addFilterItem(), and ILIAS\UI\examples\Symbol\Glyph\Filter\filter().

128  : void
129  {
130  if (count($this->parent_obj->object->getResultFilterTaxIds())) {
131  require_once 'Services/Taxonomy/classes/class.ilTaxSelectInputGUI.php';
132 
133  foreach ($this->parent_obj->object->getResultFilterTaxIds() as $taxId) {
134  $postvar = "tax_$taxId";
135 
136  $inp = new ilTaxSelectInputGUI($taxId, $postvar, true);
137  $this->addFilterItem($inp);
138  $inp->readFromSession();
139  $this->filter[$postvar] = $inp->getValue();
140  }
141  }
142  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addFilterItem(ilTableFilterItem $a_input_item, bool $a_optional=false)
+ Here is the call graph for this function:

◆ isObjectiveOrientedPresentationEnabled()

ilTestPassDetailsOverviewTableGUI::isObjectiveOrientedPresentationEnabled ( )

Definition at line 336 of file class.ilTestPassDetailsOverviewTableGUI.php.

References $objectiveOrientedPresentationEnabled.

Referenced by fillRow(), and initColumns().

+ Here is the caller graph for this function:

◆ isPassColumnEnabled()

ilTestPassDetailsOverviewTableGUI::isPassColumnEnabled ( )

Definition at line 369 of file class.ilTestPassDetailsOverviewTableGUI.php.

References $passColumnEnabled.

Referenced by fillRow(), and initColumns().

+ Here is the caller graph for this function:

◆ isPdfGenerationRequest()

ilTestPassDetailsOverviewTableGUI::isPdfGenerationRequest ( )

Definition at line 144 of file class.ilTestPassDetailsOverviewTableGUI.php.

References $is_pdf_generation_request.

Referenced by areActionListsRequired().

+ Here is the caller graph for this function:

◆ isQuestionTitleLinkPossible()

ilTestPassDetailsOverviewTableGUI::isQuestionTitleLinkPossible ( )
private

Definition at line 225 of file class.ilTestPassDetailsOverviewTableGUI.php.

References getAnswerListAnchorEnabled(), and getSingleAnswerScreenCmd().

Referenced by fillRow().

225  : bool
226  {
227  if ($this->getAnswerListAnchorEnabled()) {
228  return true;
229  }
230 
231  if (strlen($this->getSingleAnswerScreenCmd())) {
232  return true;
233  }
234 
235  return false;
236  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setActiveId()

ilTestPassDetailsOverviewTableGUI::setActiveId (   $activeId)

Definition at line 326 of file class.ilTestPassDetailsOverviewTableGUI.php.

References $activeId.

326  : void
327  {
328  $this->activeId = $activeId;
329  }

◆ setAnswerListAnchorEnabled()

ilTestPassDetailsOverviewTableGUI::setAnswerListAnchorEnabled (   $answerListAnchorEnabled)

Definition at line 290 of file class.ilTestPassDetailsOverviewTableGUI.php.

References $answerListAnchorEnabled.

290  : void
291  {
292  $this->answerListAnchorEnabled = $answerListAnchorEnabled;
293  }

◆ setIsPdfGenerationRequest()

ilTestPassDetailsOverviewTableGUI::setIsPdfGenerationRequest ( bool  $is_print_request)

Definition at line 149 of file class.ilTestPassDetailsOverviewTableGUI.php.

149  : void
150  {
151  $this->is_pdf_generation_request = $is_print_request;
152  }

◆ setMultipleObjectivesInvolved()

ilTestPassDetailsOverviewTableGUI::setMultipleObjectivesInvolved (   $multipleObjectivesInvolved)
Parameters
boolean$multipleObjectivesInvolved

Definition at line 354 of file class.ilTestPassDetailsOverviewTableGUI.php.

References $multipleObjectivesInvolved.

355  {
356  $this->multipleObjectivesInvolved = $multipleObjectivesInvolved;
357  }

◆ setObjectiveOrientedPresentationEnabled()

ilTestPassDetailsOverviewTableGUI::setObjectiveOrientedPresentationEnabled ( bool  $objectiveOrientedPresentationEnabled)

Definition at line 341 of file class.ilTestPassDetailsOverviewTableGUI.php.

References $objectiveOrientedPresentationEnabled.

341  : void
342  {
343  $this->objectiveOrientedPresentationEnabled = $objectiveOrientedPresentationEnabled;
344  }

◆ setPassColumnEnabled()

ilTestPassDetailsOverviewTableGUI::setPassColumnEnabled ( bool  $passColumnEnabled)

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

References $passColumnEnabled.

375  {
376  $this->passColumnEnabled = $passColumnEnabled;
377  }

◆ setQuestionRelatedObjectivesList()

ilTestPassDetailsOverviewTableGUI::setQuestionRelatedObjectivesList ( ilTestQuestionRelatedObjectivesList  $questionRelatedObjectivesList)

Definition at line 364 of file class.ilTestPassDetailsOverviewTableGUI.php.

References $questionRelatedObjectivesList.

364  : void
365  {
366  $this->questionRelatedObjectivesList = $questionRelatedObjectivesList;
367  }
ilTestQuestionRelatedObjectivesList $questionRelatedObjectivesList

◆ setShowHintCount()

ilTestPassDetailsOverviewTableGUI::setShowHintCount (   $showHintCount)

Definition at line 305 of file class.ilTestPassDetailsOverviewTableGUI.php.

305  : void
306  {
307  // Has to be called before column initialization
308  $this->showHintCount = (bool) $showHintCount;
309  }

◆ setShowSuggestedSolution()

ilTestPassDetailsOverviewTableGUI::setShowSuggestedSolution ( bool  $showSuggestedSolution)

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

References $showSuggestedSolution.

316  : void
317  {
318  $this->showSuggestedSolution = $showSuggestedSolution;
319  }

◆ setSingleAnswerScreenCmd()

ilTestPassDetailsOverviewTableGUI::setSingleAnswerScreenCmd (   $singleAnswerScreenCmd)

Definition at line 280 of file class.ilTestPassDetailsOverviewTableGUI.php.

References $singleAnswerScreenCmd.

280  : void
281  {
282  $this->singleAnswerScreenCmd = $singleAnswerScreenCmd;
283  }

Field Documentation

◆ $activeId

ilTestPassDetailsOverviewTableGUI::$activeId = null
private

Definition at line 37 of file class.ilTestPassDetailsOverviewTableGUI.php.

Referenced by getActiveId(), and setActiveId().

◆ $answerListAnchorEnabled

bool ilTestPassDetailsOverviewTableGUI::$answerListAnchorEnabled = false
private

◆ $is_pdf_generation_request

bool ilTestPassDetailsOverviewTableGUI::$is_pdf_generation_request = false
private

Definition at line 39 of file class.ilTestPassDetailsOverviewTableGUI.php.

Referenced by isPdfGenerationRequest().

◆ $multipleObjectivesInvolved

bool ilTestPassDetailsOverviewTableGUI::$multipleObjectivesInvolved = true
private

◆ $objectiveOrientedPresentationEnabled

bool ilTestPassDetailsOverviewTableGUI::$objectiveOrientedPresentationEnabled = false
private

◆ $passColumnEnabled

bool ilTestPassDetailsOverviewTableGUI::$passColumnEnabled = false
private

◆ $questionRelatedObjectivesList

ilTestQuestionRelatedObjectivesList ilTestPassDetailsOverviewTableGUI::$questionRelatedObjectivesList = null
private

◆ $showHintCount

bool ilTestPassDetailsOverviewTableGUI::$showHintCount = false
private

Definition at line 33 of file class.ilTestPassDetailsOverviewTableGUI.php.

Referenced by getShowHintCount().

◆ $showSuggestedSolution

bool ilTestPassDetailsOverviewTableGUI::$showSuggestedSolution = false
private

◆ $singleAnswerScreenCmd

string ilTestPassDetailsOverviewTableGUI::$singleAnswerScreenCmd = null
private

◆ $tableIdsByParentClasses

array ilTestPassDetailsOverviewTableGUI::$tableIdsByParentClasses
private
Initial value:
= array(
'ilTestEvaluationGUI' => 1,
'ilTestServiceGUI' => 2
)

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


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