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

Public Member Functions

 __construct ($a_parent_obj, $a_parent_cmd)
 
 isAccessResultsCommandsEnabled ()
 
 setAccessResultsCommandsEnabled (bool $accessResultsCommandsEnabled)
 
 isManageResultsCommandsEnabled ()
 
 setManageResultsCommandsEnabled (bool $manageResultsCommandsEnabled)
 
 getAnonymity ()
 
 setAnonymity ($anonymity)
 
 numericOrdering (string $a_field)
 
 init ()
 
 initColumns ()
 
 initCommands ()
 
 fillRow (array $a_set)
 
- Public Member Functions inherited from ilTable2GUI
 __construct (?object $a_parent_obj, string $a_parent_cmd="", string $a_template_context="")
 
 setOpenFormTag (bool $a_val)
 
 getOpenFormTag ()
 
 setCloseFormTag (bool $a_val)
 
 getCloseFormTag ()
 
 determineLimit ()
 
 getSelectableColumns ()
 Get selectable columns. More...
 
 determineSelectedColumns ()
 
 isColumnSelected (string $col)
 
 getSelectedColumns ()
 
 resetOffset (bool $a_in_determination=false)
 
 initFilter ()
 
 getParentObject ()
 
 getParentCmd ()
 
 setTopAnchor (string $a_val)
 
 getTopAnchor ()
 
 setNoEntriesText (string $a_text)
 
 getNoEntriesText ()
 
 setIsDataTable (bool $a_val)
 
 getIsDataTable ()
 
 setEnableTitle (bool $a_enabletitle)
 
 getEnableTitle ()
 
 setEnableHeader (bool $a_enableheader)
 
 getEnableHeader ()
 
 setEnableNumInfo (bool $a_val)
 
 getEnableNumInfo ()
 
 setTitle (string $a_title, string $a_icon="", string $a_icon_alt="")
 
 setDescription (string $a_val)
 
 getDescription ()
 
 setOrderField (string $a_order_field)
 
 getOrderField ()
 
 setData (array $a_data)
 
 getData ()
 
 dataExists ()
 
 setPrefix (string $a_prefix)
 
 getPrefix ()
 
 addFilterItem (ilTableFilterItem $a_input_item, bool $a_optional=false)
 
 addFilterItemByMetaType (string $id, int $type=self::FILTER_TEXT, bool $a_optional=false, string $caption="")
 Add filter by standard type. More...
 
 getFilterItems (bool $a_optionals=false)
 
 getFilterItemByPostVar (string $a_post_var)
 
 setFilterCols (int $a_val)
 
 getFilterCols ()
 
 setDisableFilterHiding (bool $a_val=true)
 
 getDisableFilterHiding ()
 
 isFilterSelected (string $a_col)
 Is given filter selected? More...
 
 getSelectedFilters ()
 
 determineSelectedFilters ()
 
 setCustomPreviousNext (string $a_prev_link, string $a_next_link)
 
 setFormAction (string $a_form_action, bool $a_multipart=false)
 
 getFormAction ()
 
 setFormName (string $a_name="")
 
 getFormName ()
 
 setId (string $a_val)
 
 getId ()
 
 setDisplayAsBlock (bool $a_val)
 
 getDisplayAsBlock ()
 
 setSelectAllCheckbox (string $a_select_all_checkbox, bool $a_select_all_on_top=false)
 
 setExternalSorting (bool $a_val)
 
 getExternalSorting ()
 
 setFilterCommand (string $a_val, string $a_caption="")
 
 getFilterCommand ()
 
 setResetCommand (string $a_val, string $a_caption="")
 
 getResetCommand ()
 
 setExternalSegmentation (bool $a_val)
 
 getExternalSegmentation ()
 
 setRowTemplate (string $a_template, string $a_template_dir="")
 Set row template. More...
 
 setDefaultOrderField (string $a_defaultorderfield)
 
 getDefaultOrderField ()
 
 setDefaultOrderDirection (string $a_defaultorderdirection)
 
 getDefaultOrderDirection ()
 
 setDefaultFilterVisiblity (bool $a_status)
 
 getDefaultFilterVisibility ()
 
 clearCommandButtons ()
 
 addCommandButton (string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
 
 addCommandButtonInstance (ilButtonBase $a_button)
 
 addMultiItemSelectionButton (string $a_sel_var, array $a_options, string $a_cmd, string $a_text, string $a_default_selection='')
 
 setCloseCommand (string $a_link)
 
 addMultiCommand (string $a_cmd, string $a_text)
 
 addHiddenInput (string $a_name, string $a_value)
 
 addHeaderCommand (string $a_href, string $a_text, string $a_target="", string $a_img="")
 
 setTopCommands (bool $a_val)
 
 getTopCommands ()
 
 addColumn (string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
 
 getNavParameter ()
 
 setOrderLink (string $key, string $order_dir)
 
 fillHeader ()
 
 determineOffsetAndOrder (bool $a_omit_offset=false)
 
 storeNavParameter ()
 
 getHTML ()
 Get HTML. More...
 
 numericOrdering (string $a_field)
 Should this field be sorted numeric? More...
 
 render ()
 
 writeFilterToSession ()
 
 resetFilter ()
 
 fillFooter ()
 
 getLinkbar (string $a_num)
 
 fillHiddenRow ()
 
 fillActionRow ()
 
 setHeaderHTML (string $html)
 
 storeProperty (string $type, string $value)
 
 loadProperty (string $type)
 
 getCurrentState ()
 get current settings for order, limit, columns and filter More...
 
 setContext (string $id)
 
 getContext ()
 
 setShowRowsSelector (bool $a_value)
 Toggle rows-per-page selector. More...
 
 getShowRowsSelector ()
 
 setShowTemplates (bool $a_value)
 
 getShowTemplates ()
 
 restoreTemplate (string $a_name)
 Restore state from template. More...
 
 saveTemplate (string $a_name)
 Save current state as template. More...
 
 deleteTemplate (string $a_name)
 
 getLimit ()
 
 getOffset ()
 
 setExportFormats (array $formats)
 Set available export formats. More...
 
 setPrintMode (bool $a_value=false)
 
 getPrintMode ()
 
 getExportMode ()
 
 exportData (int $format, bool $send=false)
 Export and optionally send current table data. More...
 
 setEnableAllCommand (bool $a_value)
 
 setRowSelectorLabel (string $row_selector_label)
 
 getRowSelectorLabel ()
 
 setPreventDoubleSubmission (bool $a_val)
 
 getPreventDoubleSubmission ()
 
 setLimit (int $a_limit=0, int $a_default_limit=0)
 
- Public Member Functions inherited from ilTableGUI
 __construct (array $a_data=[], bool $a_global_tpl=true)
 
 setTemplate (ilTemplate $a_tpl)
 
 getTemplateObject ()
 
 setData (array $a_data)
 Set table data. More...
 
 getData ()
 
 setTitle (string $a_title, string $a_icon="", string $a_icon_alt="")
 
 setHelp (string $a_help_page, string $a_help_icon, string $a_help_icon_alt="")
 
 setHeaderNames (array $a_header_names)
 
 getColumnCount ()
 
 setHeaderVars (array $a_header_vars, array $a_header_params=[])
 
 setColumnWidth (array $a_column_width)
 set table column widths More...
 
 setOneColumnWidth (string $a_column_width, int $a_column_number)
 
 setMaxCount (int $a_max_count)
 set max. More...
 
 setLimit (int $a_limit=0, int $a_default_limit=0)
 set max. More...
 
 getLimit ()
 
 setPrefix (string $a_prefix)
 set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort separately) More...
 
 setOffset (int $a_offset)
 set dataset offset More...
 
 getOffset ()
 
 setOrderColumn (string $a_order_column="", string $a_default_column="")
 
 getOrderColumn ()
 
 setOrderDirection (string $a_order_direction)
 
 getOrderDirection ()
 
 setFooter (string $a_style, string $a_previous="", string $a_next="")
 
 enable (string $a_module_name)
 
 disable (string $a_module_name)
 
 sortData ()
 
 render ()
 
 renderHeader ()
 
 setOrderLink (string $key, string $order_dir)
 
 setStyle (string $a_element, string $a_style)
 
 getStyle (string $a_element)
 
 setBase (string $a_base)
 
 getBase ()
 
 getFormName ()
 get the name of the parent form More...
 
 setFormName (string $a_name="cmd")
 
 getSelectAllCheckbox ()
 get the name of the checkbox that should be toggled with a select all button More...
 
 setSelectAllCheckbox (string $a_select_all_checkbox)
 
 clearActionButtons ()
 
 addActionButton (string $btn_name, string $btn_value)
 

Protected Member Functions

 buildActionsMenu (array $data)
 
 isActionsColumnRequired ()
 
 isMultiRowSelectionRequired ()
 
 buildPassedStatusString (array $data)
 
 buildPassedIcon ()
 
 buildFailedIcon ()
 
 buildImageIcon (string $icon_name, string $label)
 
 buildFormattedAccessDate (array $data)
 
 buildScoredPassString (array $data)
 
 buildScoredPassFinishedString (array $data)
 
 buildAnsweredQuestionsString (array $data)
 
 buildReachedPointsString (array $data)
 
 buildPercentResultString (array $data)
 
- 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

bool $accessResultsCommandsEnabled = false
 
bool $manageResultsCommandsEnabled = false
 
 $anonymity
 
- 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
 

Private Attributes

UIServices $ui
 

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
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ __construct()

ilParticipantsTestResultsTableGUI::__construct (   $a_parent_obj,
  $a_parent_cmd 
)

Definition at line 38 of file class.ilParticipantsTestResultsTableGUI.php.

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\ctrl(), ilTableGUI\enable(), ilTable2GUI\setDefaultOrderDirection(), ilTable2GUI\setDefaultOrderField(), ilTable2GUI\setFormAction(), ilTable2GUI\setFormName(), ilTable2GUI\setId(), ilTable2GUI\setRowTemplate(), ilTable2GUI\setSelectAllCheckbox(), ilTableGUI\setStyle(), and ILIAS\Repository\ui().

39  {
40  $this->setId('tst_participants_' . $a_parent_obj->getTestObj()->getRefId());
41  parent::__construct($a_parent_obj, $a_parent_cmd);
42 
43  global $DIC;
44  $this->ui = $DIC->ui();
45 
46  $this->setStyle('table', 'fullwidth');
47 
48  $this->setFormName('partResultsForm');
49  $this->setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
50 
51  $this->setRowTemplate("tpl.il_as_tst_scorings_row.html", "Modules/Test");
52 
53  $this->enable('header');
54  $this->enable('sort');
55 
56  $this->setSelectAllCheckbox('chbUser');
57 
58  $this->setDefaultOrderField('name');
59  $this->setDefaultOrderDirection('asc');
60  }
enable(string $a_module_name)
setFormAction(string $a_form_action, bool $a_multipart=false)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
setFormName(string $a_name="")
setId(string $a_val)
global $DIC
Definition: feed.php:28
setStyle(string $a_element, string $a_style)
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ buildActionsMenu()

ilParticipantsTestResultsTableGUI::buildActionsMenu ( array  $data)
protected

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

References ILIAS\Repository\ctrl(), isAccessResultsCommandsEnabled(), and ILIAS\Repository\lng().

Referenced by fillRow().

177  {
178  $asl = new ilAdvancedSelectionListGUI();
179 
180  $this->ctrl->setParameterByClass('iltestevaluationgui', 'active_id', $data['active_id']);
181 
182  if ($this->isAccessResultsCommandsEnabled()) {
183  $resultsHref = $this->ctrl->getLinkTargetByClass([ilTestResultsGUI::class, ilParticipantsTestResultsGUI::class, ilTestEvaluationGUI::class], 'outParticipantsResultsOverview');
184  $asl->addItem($this->lng->txt('tst_show_results'), $resultsHref, $resultsHref);
185  }
186 
187  return $asl;
188  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildAnsweredQuestionsString()

ilParticipantsTestResultsTableGUI::buildAnsweredQuestionsString ( array  $data)
protected

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

References ILIAS\Repository\lng().

Referenced by fillRow().

258  : string
259  {
260  return sprintf(
261  $this->lng->txt('tst_answered_questions_of_total'),
262  $data['answered_questions'],
263  $data['total_questions']
264  );
265  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildFailedIcon()

ilParticipantsTestResultsTableGUI::buildFailedIcon ( )
protected

Definition at line 226 of file class.ilParticipantsTestResultsTableGUI.php.

References buildImageIcon(), ilUtil\getImagePath(), and ILIAS\Repository\lng().

Referenced by buildPassedStatusString().

226  : string
227  {
228  return $this->buildImageIcon(ilUtil::getImagePath("icon_not_ok.svg"), $this->lng->txt("failed"));
229  }
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildFormattedAccessDate()

ilParticipantsTestResultsTableGUI::buildFormattedAccessDate ( array  $data)
protected

Definition at line 240 of file class.ilParticipantsTestResultsTableGUI.php.

References ilDatePresentation\formatDate(), and IL_CAL_DATETIME.

240  : string
241  {
243  }
const IL_CAL_DATETIME
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
+ Here is the call graph for this function:

◆ buildImageIcon()

ilParticipantsTestResultsTableGUI::buildImageIcon ( string  $icon_name,
string  $label 
)
protected

Definition at line 231 of file class.ilParticipantsTestResultsTableGUI.php.

References ilTableGUI\$icon, and ILIAS\Repository\ui().

Referenced by buildFailedIcon(), and buildPassedIcon().

231  : string
232  {
233  $icon = $this->ui->factory()->symbol()->icon()->custom(
234  $icon_name,
235  $label
236  );
237  return $this->ui->renderer()->render($icon);
238  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildPassedIcon()

ilParticipantsTestResultsTableGUI::buildPassedIcon ( )
protected

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

References buildImageIcon(), ilUtil\getImagePath(), and ILIAS\Repository\lng().

Referenced by buildPassedStatusString().

221  : string
222  {
223  return $this->buildImageIcon(ilUtil::getImagePath("icon_ok.svg"), $this->lng->txt("passed"));
224  }
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildPassedStatusString()

ilParticipantsTestResultsTableGUI::buildPassedStatusString ( array  $data)
protected

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

References buildFailedIcon(), buildPassedIcon(), and ILIAS\Repository\lng().

Referenced by fillRow().

212  : string
213  {
214  if ($data['passed_status']) {
215  return $this->buildPassedIcon() . ' ' . $this->lng->txt('tst_passed');
216  }
217 
218  return $this->buildFailedIcon() . ' ' . $this->lng->txt('tst_failed');
219  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildPercentResultString()

ilParticipantsTestResultsTableGUI::buildPercentResultString ( array  $data)
protected

Definition at line 276 of file class.ilParticipantsTestResultsTableGUI.php.

Referenced by fillRow().

276  : string
277  {
278  return sprintf('%0.2f %%', $data['percent_result'] * 100);
279  }
+ Here is the caller graph for this function:

◆ buildReachedPointsString()

ilParticipantsTestResultsTableGUI::buildReachedPointsString ( array  $data)
protected

Definition at line 267 of file class.ilParticipantsTestResultsTableGUI.php.

References ILIAS\Repository\lng().

Referenced by fillRow().

267  : string
268  {
269  return sprintf(
270  $this->lng->txt('tst_reached_points_of_max'),
271  $data['reached_points'],
272  $data['max_points']
273  );
274  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildScoredPassFinishedString()

ilParticipantsTestResultsTableGUI::buildScoredPassFinishedString ( array  $data)
protected

Definition at line 250 of file class.ilParticipantsTestResultsTableGUI.php.

References ilDatePresentation\formatDate(), and IL_CAL_UNIX.

Referenced by fillRow().

250  : string
251  {
252  if (isset($data['scored_pass_finished_timestamp'])) {
253  return ilDatePresentation::formatDate(new ilDateTime($data['scored_pass_finished_timestamp'], IL_CAL_UNIX));
254  }
255  return '';
256  }
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
const IL_CAL_UNIX
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildScoredPassString()

ilParticipantsTestResultsTableGUI::buildScoredPassString ( array  $data)
protected

Definition at line 245 of file class.ilParticipantsTestResultsTableGUI.php.

References ILIAS\Repository\lng().

Referenced by fillRow().

245  : string
246  {
247  return $this->lng->txt('pass') . ' ' . ($data['scored_pass'] + 1);
248  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillRow()

ilParticipantsTestResultsTableGUI::fillRow ( array  $a_set)

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

References buildActionsMenu(), buildAnsweredQuestionsString(), buildPassedStatusString(), buildPercentResultString(), buildReachedPointsString(), buildScoredPassFinishedString(), buildScoredPassString(), ilTable2GUI\getHTML(), isActionsColumnRequired(), and isMultiRowSelectionRequired().

147  : void
148  {
149  if ($this->isMultiRowSelectionRequired()) {
150  $this->tpl->setCurrentBlock('checkbox_column');
151  $this->tpl->setVariable("CHB_ROW_KEY", $a_set['active_id']);
152  $this->tpl->parseCurrentBlock();
153  }
154 
155  if ($this->isActionsColumnRequired()) {
156  $this->tpl->setCurrentBlock('actions_column');
157  $this->tpl->setVariable('ACTIONS', $this->buildActionsMenu($a_set)->getHTML());
158  $this->tpl->parseCurrentBlock();
159  }
160 
161  $this->tpl->setVariable("ROW_KEY", $a_set['active_id']);
162  $this->tpl->setVariable("LOGIN", $a_set['login']);
163  $this->tpl->setVariable("FULLNAME", $a_set['name']);
164 
165  $this->tpl->setVariable("SCORED_PASS", $this->buildScoredPassString($a_set));
166  $this->tpl->setVariable("SCORED_PASS_FINISHED", $this->buildScoredPassFinishedString($a_set));
167 
168  $this->tpl->setVariable("ANSWERED_QUESTIONS", $this->buildAnsweredQuestionsString($a_set));
169  $this->tpl->setVariable("REACHED_POINTS", $this->buildReachedPointsString($a_set));
170  $this->tpl->setVariable("PERCENT_RESULT", $this->buildPercentResultString($a_set));
171 
172  $this->tpl->setVariable("PASSED_STATUS", $this->buildPassedStatusString($a_set));
173  $this->tpl->setVariable("FINAL_MARK", $a_set['final_mark']);
174  }
getHTML()
Get HTML.
+ Here is the call graph for this function:

◆ getAnonymity()

ilParticipantsTestResultsTableGUI::getAnonymity ( )

Definition at line 82 of file class.ilParticipantsTestResultsTableGUI.php.

References $anonymity.

Referenced by initCommands(), and isMultiRowSelectionRequired().

+ Here is the caller graph for this function:

◆ init()

ilParticipantsTestResultsTableGUI::init ( )

Definition at line 99 of file class.ilParticipantsTestResultsTableGUI.php.

References initColumns(), initCommands(), ilTable2GUI\initFilter(), isMultiRowSelectionRequired(), and ilTable2GUI\setShowRowsSelector().

99  : void
100  {
101  if ($this->isMultiRowSelectionRequired()) {
102  $this->setShowRowsSelector(true);
103  }
104 
105  $this->initColumns();
106  $this->initCommands();
107  $this->initFilter();
108  }
setShowRowsSelector(bool $a_value)
Toggle rows-per-page selector.
+ Here is the call graph for this function:

◆ initColumns()

ilParticipantsTestResultsTableGUI::initColumns ( )

Definition at line 110 of file class.ilParticipantsTestResultsTableGUI.php.

References ilTable2GUI\addColumn(), isActionsColumnRequired(), isMultiRowSelectionRequired(), and ILIAS\Repository\lng().

Referenced by init().

110  : void
111  {
112  if ($this->isMultiRowSelectionRequired()) {
113  $this->addColumn('', '', '1%', true);
114  }
115 
116  $this->addColumn($this->lng->txt("name"), 'name');
117  $this->addColumn($this->lng->txt("login"), 'login');
118 
119  $this->addColumn($this->lng->txt("tst_tbl_col_scored_pass"), 'scored_pass');
120  $this->addColumn($this->lng->txt("tst_tbl_col_pass_finished"), 'scored_pass_finished_timestamp');
121 
122  $this->addColumn($this->lng->txt("tst_tbl_col_answered_questions"), 'answered_questions');
123  $this->addColumn($this->lng->txt("tst_tbl_col_reached_points"), 'reached_points');
124  $this->addColumn($this->lng->txt("tst_tbl_col_percent_result"), 'percent_result');
125 
126  $this->addColumn($this->lng->txt("tst_tbl_col_passed_status"), 'passed_status');
127  $this->addColumn($this->lng->txt("tst_tbl_col_final_mark"), 'final_mark');
128 
129  if ($this->isActionsColumnRequired()) {
130  $this->addColumn($this->lng->txt('actions'), '', '');
131  }
132  }
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:
+ Here is the caller graph for this function:

◆ initCommands()

ilParticipantsTestResultsTableGUI::initCommands ( )

Definition at line 134 of file class.ilParticipantsTestResultsTableGUI.php.

References ilTable2GUI\addMultiCommand(), getAnonymity(), isAccessResultsCommandsEnabled(), isManageResultsCommandsEnabled(), and ILIAS\Repository\lng().

Referenced by init().

134  : void
135  {
136  if ($this->isAccessResultsCommandsEnabled() && !$this->getAnonymity()) {
137  $this->addMultiCommand('showPassOverview', $this->lng->txt('show_pass_overview'));
138  $this->addMultiCommand('showUserAnswers', $this->lng->txt('show_user_answers'));
139  $this->addMultiCommand('showDetailedResults', $this->lng->txt('show_detailed_results'));
140  }
141 
142  if ($this->isManageResultsCommandsEnabled()) {
143  $this->addMultiCommand('deleteSingleUserResults', $this->lng->txt('delete_user_data'));
144  }
145  }
addMultiCommand(string $a_cmd, string $a_text)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isAccessResultsCommandsEnabled()

ilParticipantsTestResultsTableGUI::isAccessResultsCommandsEnabled ( )

◆ isActionsColumnRequired()

ilParticipantsTestResultsTableGUI::isActionsColumnRequired ( )
protected

Definition at line 190 of file class.ilParticipantsTestResultsTableGUI.php.

References isAccessResultsCommandsEnabled().

Referenced by fillRow(), and initColumns().

190  : bool
191  {
192  if ($this->isAccessResultsCommandsEnabled()) {
193  return true;
194  }
195 
196  return false;
197  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isManageResultsCommandsEnabled()

ilParticipantsTestResultsTableGUI::isManageResultsCommandsEnabled ( )

Definition at line 72 of file class.ilParticipantsTestResultsTableGUI.php.

References $manageResultsCommandsEnabled.

Referenced by initCommands(), and isMultiRowSelectionRequired().

+ Here is the caller graph for this function:

◆ isMultiRowSelectionRequired()

ilParticipantsTestResultsTableGUI::isMultiRowSelectionRequired ( )
protected

Definition at line 199 of file class.ilParticipantsTestResultsTableGUI.php.

References getAnonymity(), isAccessResultsCommandsEnabled(), and isManageResultsCommandsEnabled().

Referenced by fillRow(), init(), and initColumns().

199  : bool
200  {
201  if ($this->isAccessResultsCommandsEnabled() && !$this->getAnonymity()) {
202  return true;
203  }
204 
205  if ($this->isManageResultsCommandsEnabled()) {
206  return true;
207  }
208 
209  return false;
210  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ numericOrdering()

ilParticipantsTestResultsTableGUI::numericOrdering ( string  $a_field)

Definition at line 92 of file class.ilParticipantsTestResultsTableGUI.php.

92  : bool
93  {
94  return in_array($a_field, array(
95  'scored_pass', 'answered_questions', 'points', 'percent_result'
96  ));
97  }

◆ setAccessResultsCommandsEnabled()

ilParticipantsTestResultsTableGUI::setAccessResultsCommandsEnabled ( bool  $accessResultsCommandsEnabled)

Definition at line 67 of file class.ilParticipantsTestResultsTableGUI.php.

References $accessResultsCommandsEnabled.

67  : void
68  {
69  $this->accessResultsCommandsEnabled = $accessResultsCommandsEnabled;
70  }

◆ setAnonymity()

ilParticipantsTestResultsTableGUI::setAnonymity (   $anonymity)

Definition at line 87 of file class.ilParticipantsTestResultsTableGUI.php.

References $anonymity.

◆ setManageResultsCommandsEnabled()

ilParticipantsTestResultsTableGUI::setManageResultsCommandsEnabled ( bool  $manageResultsCommandsEnabled)

Definition at line 77 of file class.ilParticipantsTestResultsTableGUI.php.

References $manageResultsCommandsEnabled.

77  : void
78  {
79  $this->manageResultsCommandsEnabled = $manageResultsCommandsEnabled;
80  }

Field Documentation

◆ $accessResultsCommandsEnabled

bool ilParticipantsTestResultsTableGUI::$accessResultsCommandsEnabled = false
protected

◆ $anonymity

ilParticipantsTestResultsTableGUI::$anonymity
protected

Definition at line 36 of file class.ilParticipantsTestResultsTableGUI.php.

Referenced by getAnonymity(), and setAnonymity().

◆ $manageResultsCommandsEnabled

bool ilParticipantsTestResultsTableGUI::$manageResultsCommandsEnabled = false
protected

◆ $ui

UIServices ilParticipantsTestResultsTableGUI::$ui
private

Definition at line 31 of file class.ilParticipantsTestResultsTableGUI.php.


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