ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilTestPassDetailsOverviewTableGUI Class Reference
+ Inheritance diagram for ilTestPassDetailsOverviewTableGUI:
+ Collaboration diagram for ilTestPassDetailsOverviewTableGUI:

Public Member Functions

 __construct (ilCtrl $ctrl, ilTestServiceGUI $parent, string $cmd)
 
 initColumns ()
 
 isPdfGenerationRequest ()
 
 setIsPdfGenerationRequest (bool $is_print_request)
 
 fillRow (array $a_set)
 
 setAnswerListAnchorEnabled ($answerListAnchorEnabled)
 
 getAnswerListAnchorEnabled ()
 
 setShowHintCount ($showHintCount)
 
 getShowHintCount ()
 
 setShowSuggestedSolution (bool $showSuggestedSolution)
 
 getShowSuggestedSolution ()
 
 setActiveId (int $active_id)
 
 getActiveId ()
 
 isObjectiveOrientedPresentationEnabled ()
 
 setObjectiveOrientedPresentationEnabled (bool $objective_oriented_presentation_enabled)
 
 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 ()
 
 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

bool $answerListAnchorEnabled = false
 
bool $showHintCount = false
 
bool $showSuggestedSolution = false
 
int $active_id = null
 
bool $is_pdf_generation_request = false
 
bool $objective_oriented_presentation_enabled = false
 
bool $multipleObjectivesInvolved = true
 
bool $passColumnEnabled = false
 
array $tableIdsByParentClasses
 
array ilTestQuestionRelatedObjectivesList $questionRelatedObjectivesList = null
 
UIFactory $ui_factory
 
UIRenderer $ui_renderer
 

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_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_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 32 of file class.ilTestPassDetailsOverviewTableGUI.php.

Constructor & Destructor Documentation

◆ __construct()

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

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

References ilTable2GUI\$ctrl, $DIC, 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().

56  {
57  $tableId = 0;
58  if (isset($this->tableIdsByParentClasses[get_class($parent)])) {
59  $tableId = $this->tableIdsByParentClasses[get_class($parent)];
60  }
61 
62  $this->ctrl = $ctrl;
63 
64  $this->setId('tst_pdo_' . $tableId);
65  $this->setPrefix('tst_pdo_' . $tableId);
66 
67  $this->setDefaultOrderField('nr');
68  $this->setDefaultOrderDirection('ASC');
69 
70  parent::__construct($parent, $cmd);
71 
72  $this->setFormName('tst_pass_details_overview');
73  $this->setFormAction($this->ctrl->getFormAction($parent, $cmd));
74 
75  // Don't set any limit because of print/pdf views.
76  $this->setLimit(PHP_INT_MAX);
77  $this->setExternalSegmentation(true);
78 
79  $this->disable('linkbar');
80  $this->disable('hits');
81  $this->disable('sort');
82 
83  global $DIC;
84  $this->ui_factory = $DIC->ui()->factory();
85  $this->ui_renderer = $DIC->ui()->renderer();
86 
87  //$this->disable('numinfo');
88  //$this->disable('numinfo_header');
89  // KEEP THIS ENABLED, SINCE NO TABLE FILTER ARE PROVIDED OTHERWISE
90 
91  $this->setRowTemplate('tpl.il_as_tst_pass_details_overview_qst_row.html', 'components/ILIAS/Test');
92  }
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.
global $DIC
Definition: shib_login.php:22
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 219 of file class.ilTestPassDetailsOverviewTableGUI.php.

References getAnswerListAnchorEnabled(), and isPdfGenerationRequest().

Referenced by fillRow(), and initColumns().

219  : bool
220  {
221  if ($this->isPdfGenerationRequest()) {
222  return false;
223  }
224 
225  if (!$this->getAnswerListAnchorEnabled()) {
226  return false;
227  }
228 
229  return true;
230  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ areMultipleObjectivesInvolved()

ilTestPassDetailsOverviewTableGUI::areMultipleObjectivesInvolved ( )

Definition at line 299 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 143 of file class.ilTestPassDetailsOverviewTableGUI.php.

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

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

◆ getActionList()

ilTestPassDetailsOverviewTableGUI::getActionList (   $questionId)
private

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

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

Referenced by fillRow().

232  : string
233  {
234  $actions = [];
235  if ($this->getAnswerListAnchorEnabled()) {
236  $actions[] = $this->ui_factory->link()->standard($this->lng->txt('tst_list_answer_details'), $this->getAnswerListAnchor($questionId));
237  }
238 
239  $dropdown = $this->ui_factory->dropdown()->standard($actions)->withLabel($this->lng->txt('tst_answer_details'));
240  return $this->ui_renderer->render($dropdown);
241  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getActiveId()

ilTestPassDetailsOverviewTableGUI::getActiveId ( )

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

References $active_id.

284  : ?int
285  {
286  return $this->active_id;
287  }

◆ getAnswerListAnchor()

ilTestPassDetailsOverviewTableGUI::getAnswerListAnchor (   $questionId)
private

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

Referenced by getActionList(), and getQuestionTitleLink().

253  : string
254  {
255  return "#detailed_answer_block_act_{$this->getActiveId()}_qst_{$questionId}";
256  }
+ Here is the caller graph for this function:

◆ getAnswerListAnchorEnabled()

ilTestPassDetailsOverviewTableGUI::getAnswerListAnchorEnabled ( )

Definition at line 248 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 201 of file class.ilTestPassDetailsOverviewTableGUI.php.

References getAnswerListAnchor(), and getAnswerListAnchorEnabled().

Referenced by fillRow().

201  : string
202  {
203  if ($this->getAnswerListAnchorEnabled()) {
204  return $this->getAnswerListAnchor($questionId);
205  }
206 
207  return '';
208  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRowId()

ilTestPassDetailsOverviewTableGUI::getRowId (   $questionId)
private

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

Referenced by fillRow().

196  : string
197  {
198  return "pass_details_tbl_row_act_{$this->getActiveId()}_qst_{$questionId}";
199  }
+ Here is the caller graph for this function:

◆ getShowHintCount()

ilTestPassDetailsOverviewTableGUI::getShowHintCount ( )

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

References $showHintCount.

Referenced by fillRow(), and initColumns().

264  : bool
265  {
266  return $this->showHintCount;
267  }
+ Here is the caller graph for this function:

◆ getShowSuggestedSolution()

ilTestPassDetailsOverviewTableGUI::getShowSuggestedSolution ( )

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

References $showSuggestedSolution.

Referenced by fillRow(), and initColumns().

+ Here is the caller graph for this function:

◆ initColumns()

ilTestPassDetailsOverviewTableGUI::initColumns ( )

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

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

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

◆ isObjectiveOrientedPresentationEnabled()

ilTestPassDetailsOverviewTableGUI::isObjectiveOrientedPresentationEnabled ( )

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

References $objective_oriented_presentation_enabled.

Referenced by fillRow(), and initColumns().

+ Here is the caller graph for this function:

◆ isPassColumnEnabled()

ilTestPassDetailsOverviewTableGUI::isPassColumnEnabled ( )

Definition at line 322 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 133 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 210 of file class.ilTestPassDetailsOverviewTableGUI.php.

References getAnswerListAnchorEnabled().

Referenced by fillRow().

210  : bool
211  {
212  if ($this->getAnswerListAnchorEnabled()) {
213  return true;
214  }
215 
216  return false;
217  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setActiveId()

ilTestPassDetailsOverviewTableGUI::setActiveId ( int  $active_id)

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

References $active_id.

279  : void
280  {
281  $this->active_id = $active_id;
282  }

◆ setAnswerListAnchorEnabled()

ilTestPassDetailsOverviewTableGUI::setAnswerListAnchorEnabled (   $answerListAnchorEnabled)

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

References $answerListAnchorEnabled.

243  : void
244  {
245  $this->answerListAnchorEnabled = $answerListAnchorEnabled;
246  }

◆ setIsPdfGenerationRequest()

ilTestPassDetailsOverviewTableGUI::setIsPdfGenerationRequest ( bool  $is_print_request)

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

138  : void
139  {
140  $this->is_pdf_generation_request = $is_print_request;
141  }

◆ setMultipleObjectivesInvolved()

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

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

References $multipleObjectivesInvolved.

308  {
309  $this->multipleObjectivesInvolved = $multipleObjectivesInvolved;
310  }

◆ setObjectiveOrientedPresentationEnabled()

ilTestPassDetailsOverviewTableGUI::setObjectiveOrientedPresentationEnabled ( bool  $objective_oriented_presentation_enabled)

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

References $objective_oriented_presentation_enabled.

294  : void
295  {
296  $this->objective_oriented_presentation_enabled = $objective_oriented_presentation_enabled;
297  }

◆ setPassColumnEnabled()

ilTestPassDetailsOverviewTableGUI::setPassColumnEnabled ( bool  $passColumnEnabled)

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

References $passColumnEnabled.

328  {
329  $this->passColumnEnabled = $passColumnEnabled;
330  }

◆ setQuestionRelatedObjectivesList()

ilTestPassDetailsOverviewTableGUI::setQuestionRelatedObjectivesList ( ilTestQuestionRelatedObjectivesList  $questionRelatedObjectivesList)

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

References $questionRelatedObjectivesList.

317  : void
318  {
319  $this->questionRelatedObjectivesList = $questionRelatedObjectivesList;
320  }
array ilTestQuestionRelatedObjectivesList $questionRelatedObjectivesList

◆ setShowHintCount()

ilTestPassDetailsOverviewTableGUI::setShowHintCount (   $showHintCount)

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

258  : void
259  {
260  // Has to be called before column initialization
261  $this->showHintCount = (bool) $showHintCount;
262  }

◆ setShowSuggestedSolution()

ilTestPassDetailsOverviewTableGUI::setShowSuggestedSolution ( bool  $showSuggestedSolution)

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

References $showSuggestedSolution.

269  : void
270  {
271  $this->showSuggestedSolution = $showSuggestedSolution;
272  }

Field Documentation

◆ $active_id

int ilTestPassDetailsOverviewTableGUI::$active_id = 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 38 of file class.ilTestPassDetailsOverviewTableGUI.php.

Referenced by isPdfGenerationRequest().

◆ $multipleObjectivesInvolved

bool ilTestPassDetailsOverviewTableGUI::$multipleObjectivesInvolved = true
private

◆ $objective_oriented_presentation_enabled

bool ilTestPassDetailsOverviewTableGUI::$objective_oriented_presentation_enabled = false
private

◆ $passColumnEnabled

bool ilTestPassDetailsOverviewTableGUI::$passColumnEnabled = false
private

◆ $questionRelatedObjectivesList

array ilTestQuestionRelatedObjectivesList ilTestPassDetailsOverviewTableGUI::$questionRelatedObjectivesList = null
private

◆ $showHintCount

bool ilTestPassDetailsOverviewTableGUI::$showHintCount = false
private

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

Referenced by getShowHintCount().

◆ $showSuggestedSolution

bool ilTestPassDetailsOverviewTableGUI::$showSuggestedSolution = false
private

◆ $tableIdsByParentClasses

array ilTestPassDetailsOverviewTableGUI::$tableIdsByParentClasses
private
Initial value:
= [
'ilTestEvaluationGUI' => 1

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

◆ $ui_factory

UIFactory ilTestPassDetailsOverviewTableGUI::$ui_factory
private

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

◆ $ui_renderer

UIRenderer ilTestPassDetailsOverviewTableGUI::$ui_renderer
private

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


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