ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilEvaluationAllTableGUI Class Reference

TableGUI class for evaluation of all users. More...

+ Inheritance diagram for ilEvaluationAllTableGUI:
+ Collaboration diagram for ilEvaluationAllTableGUI:

Public Member Functions

 __construct (ilObjTestGUI|ilTestEvaluationGUI $parent_obj, string $parent_cmd, private ilSetting $settings, private bool $anonymity=false, private bool $offeringQuestionHintsEnabled=false)
 
 numericOrdering (string $a_field)
 Should this field be sorted numeric? More...
 
 getSelectableColumns ()
 
 initFilter ()
 Init filter. More...
 
 getSelectedColumns ()
 
- 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

 fillRow (array $a_set)
 Standard Version of Fill Row. More...
 
 getCountryTranslation ($countryCode)
 
 isFieldEnabledEnoughByAdministration ($fieldIdentifier)
 
- 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...
 

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 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

TableGUI class for evaluation of all users.

Author
Helmut Schottmüller helmu.nosp@m.t.sc.nosp@m.hottm.nosp@m.uell.nosp@m.er@ma.nosp@m.c.co.nosp@m.m
Version
$Id$

Definition at line 30 of file class.ilEvaluationAllTableGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilEvaluationAllTableGUI::__construct ( ilObjTestGUI|ilTestEvaluationGUI  $parent_obj,
string  $parent_cmd,
private ilSetting  $settings,
private bool  $anonymity = false,
private bool  $offeringQuestionHintsEnabled = false 
)

Definition at line 32 of file class.ilEvaluationAllTableGUI.php.

References Vendor\Package\$c, ILIAS\MetaData\Repository\Validation\Data\__construct(), ilTable2GUI\addColumn(), ILIAS\Repository\ctrl(), ilTableGUI\enable(), getSelectedColumns(), initFilter(), isFieldEnabledEnoughByAdministration(), ILIAS\Repository\lng(), ilTable2GUI\setDefaultOrderDirection(), ilTable2GUI\setDefaultOrderField(), ilTable2GUI\setFilterCommand(), ilTable2GUI\setFormAction(), ilTable2GUI\setFormName(), ilTable2GUI\setId(), ilTable2GUI\setResetCommand(), ilTable2GUI\setRowTemplate(), and ilTableGUI\setStyle().

38  {
39  $this->setId('tst_eval_all');
40 
42 
43  $this->setFormName('evaluation_all');
44  $this->setStyle('table', 'fullwidth');
45  $this->addColumn($this->lng->txt("name"), "name", "");
46  $this->addColumn($this->lng->txt("login"), "login", "");
47 
48  if (!$this->anonymity) {
49  foreach ($this->getSelectedColumns() as $c) {
50  if (strcmp($c, 'email') == 0) {
51  $this->addColumn($this->lng->txt("email"), 'email', '');
52  }
53  if (strcmp($c, 'exam_id') == 0 && $this->parent_obj->getObject()->isShowExamIdInTestResultsEnabled()) {
54  $this->addColumn($this->lng->txt("exam_id_label"), 'exam_id', '');
55  }
56  if (strcmp($c, 'institution') == 0) {
57  $this->addColumn($this->lng->txt("institution"), 'institution', '');
58  }
59  if (strcmp($c, 'street') == 0) {
60  $this->addColumn($this->lng->txt("street"), 'street', '');
61  }
62  if (strcmp($c, 'city') == 0) {
63  $this->addColumn($this->lng->txt("city"), 'city', '');
64  }
65  if (strcmp($c, 'zipcode') == 0) {
66  $this->addColumn($this->lng->txt("zipcode"), 'zipcode', '');
67  }
68 
69  if ($this->isFieldEnabledEnoughByAdministration('country') && $c == 'country') {
70  $this->addColumn($this->lng->txt("country"), 'country', '');
71  }
72 
73  if ($this->isFieldEnabledEnoughByAdministration('sel_country') && $c == 'sel_country') {
74  $this->addColumn($this->lng->txt("country"), 'sel_country', '');
75  }
76 
77  if (strcmp($c, 'department') == 0) {
78  $this->addColumn($this->lng->txt("department"), 'department', '');
79  }
80  if (strcmp($c, 'matriculation') == 0) {
81  $this->addColumn($this->lng->txt("matriculation"), 'matriculation', '');
82  }
83  }
84  }
85 
86  $this->addColumn($this->lng->txt("tst_reached_points"), "reached", "");
87 
88  if ($this->offeringQuestionHintsEnabled) {
89  $this->addColumn($this->lng->txt("tst_question_hints_requested_hint_count_header"), "hint_count", "");
90  }
91 
92  $this->addColumn($this->lng->txt("tst_mark"), "mark", "");
93 
94  $this->addColumn($this->lng->txt("tst_answered_questions"), "answered", "");
95  $this->addColumn($this->lng->txt("working_time"), "working_time", "");
96  $this->addColumn($this->lng->txt("detailed_evaluation"), "", "");
97 
98  $this->setFormAction($this->ctrl->getFormAction($parent_obj, $parent_cmd));
99  $this->setRowTemplate("tpl.table_evaluation_all.html", "Modules/Test");
100  $this->setDefaultOrderField("name");
101  $this->setDefaultOrderDirection("asc");
102  $this->enable('sort');
103  $this->enable('header');
104 
105  $this->setFilterCommand('filterEvaluation');
106  $this->setResetCommand('resetfilterEvaluation');
107  $this->initFilter();
108 
109  if ($this->isFieldEnabledEnoughByAdministration('sel_country')) {
110  $this->lng->loadLanguageModule('meta');
111  }
112  }
enable(string $a_module_name)
setFormAction(string $a_form_action, bool $a_multipart=false)
setResetCommand(string $a_val, string $a_caption="")
setFormName(string $a_name="")
setId(string $a_val)
setStyle(string $a_element, string $a_style)
__construct(VocabulariesInterface $vocabularies)
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setFilterCommand(string $a_val, string $a_caption="")
isFieldEnabledEnoughByAdministration($fieldIdentifier)
setDefaultOrderDirection(string $a_defaultorderdirection)
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:

Member Function Documentation

◆ fillRow()

ilEvaluationAllTableGUI::fillRow ( array  $a_set)
protected

Standard Version of Fill Row.

Most likely to be overwritten by derived class.

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

References Vendor\Package\$c, getCountryTranslation(), getSelectedColumns(), isFieldEnabledEnoughByAdministration(), and ILIAS\Repository\lng().

231  : void
232  {
233  $this->tpl->setVariable("NAME", $a_set['name']);
234  $this->tpl->setVariable("LOGIN", $a_set['login']);
235  foreach ($this->getSelectedColumns() as $c) {
236  if (!$this->anonymity) {
237  if (strcmp($c, 'email') == 0) {
238  $this->tpl->setCurrentBlock('email');
239  $this->tpl->setVariable("EMAIL", strlen($a_set['email']) ? $a_set['email'] : ' ');
240  $this->tpl->parseCurrentBlock();
241  }
242  if (strcmp($c, 'institution') == 0) {
243  $this->tpl->setCurrentBlock('institution');
244  $this->tpl->setVariable("INSTITUTION", strlen($a_set['institution']) ? $a_set['institution'] : ' ');
245  $this->tpl->parseCurrentBlock();
246  }
247  if (strcmp($c, 'street') == 0) {
248  $this->tpl->setCurrentBlock('street');
249  $this->tpl->setVariable("STREET", strlen($a_set['street']) ? $a_set['street'] : ' ');
250  $this->tpl->parseCurrentBlock();
251  }
252  if (strcmp($c, 'city') == 0) {
253  $this->tpl->setCurrentBlock('city');
254  $this->tpl->setVariable("CITY", strlen($a_set['city']) ? $a_set['city'] : ' ');
255  $this->tpl->parseCurrentBlock();
256  }
257  if (strcmp($c, 'zipcode') == 0) {
258  $this->tpl->setCurrentBlock('zipcode');
259  $this->tpl->setVariable("ZIPCODE", strlen($a_set['zipcode']) ? $a_set['zipcode'] : ' ');
260  $this->tpl->parseCurrentBlock();
261  }
262  if ($this->isFieldEnabledEnoughByAdministration('country') && $c == 'country') {
263  $this->tpl->setCurrentBlock('country');
264  $this->tpl->setVariable("COUNTRY", strlen($a_set['country']) ? $a_set['country'] : ' ');
265  $this->tpl->parseCurrentBlock();
266  }
267  if ($this->isFieldEnabledEnoughByAdministration('sel_country') && $c == 'sel_country') {
268  $this->tpl->setCurrentBlock('country');
269  $this->tpl->setVariable("COUNTRY", strlen($a_set['sel_country']) ? $this->getCountryTranslation($a_set['sel_country']) : ' ');
270  $this->tpl->parseCurrentBlock();
271  }
272  if (strcmp($c, 'department') == 0) {
273  $this->tpl->setCurrentBlock('department');
274  $this->tpl->setVariable("DEPARTMENT", strlen($a_set['department']) ? $a_set['department'] : ' ');
275  $this->tpl->parseCurrentBlock();
276  }
277  if (strcmp($c, 'matriculation') == 0) {
278  $this->tpl->setCurrentBlock('matriculation');
279  $this->tpl->setVariable("MATRICULATION", strlen($a_set['matriculation']) ? $a_set['matriculation'] : ' ');
280  $this->tpl->parseCurrentBlock();
281  }
282  if (strcmp($c, 'exam_id') == 0 && $this->parent_obj->getObject()->isShowExamIdInTestResultsEnabled()) {
283  $this->tpl->setCurrentBlock('exam_id');
284  $examId = is_string($a_set['exam_id']) && strlen($a_set['exam_id']) ? $a_set['exam_id'] : ' ';
285  $this->tpl->setVariable('EXAM_ID', $examId);
286  $this->tpl->parseCurrentBlock();
287  }
288  }
289  }
290  $reachedPercent = !$a_set['max'] ? 0 : $a_set['reached'] / $a_set['max'] * 100;
291  $reached = $a_set['reached'] . " " . strtolower($this->lng->txt("of")) . " " . $a_set['max'] . " (" . sprintf("%2.2f", $reachedPercent) . " %)";
292  $this->tpl->setVariable("REACHED", $reached);
293 
294  if ($this->offeringQuestionHintsEnabled) {
295  $this->tpl->setVariable("HINT_COUNT", $a_set['hint_count']);
296  }
297 
298  $a_set['answered'] = $a_set['questions_worked_through'] . " " . strtolower($this->lng->txt("of")) . " " . $a_set['number_of_questions'] . " (" . sprintf("%2.2f", $a_set['answered']) . " %" . ")";
299 
300  $this->tpl->setVariable("MARK", $a_set['mark']);
301  $this->tpl->setVariable("ANSWERED", $a_set['answered']);
302  $this->tpl->setVariable("WORKING_TIME", $a_set['working_time']);
303  $this->tpl->setVariable("DETAILED", $a_set['details']);
304  }
isFieldEnabledEnoughByAdministration($fieldIdentifier)
+ Here is the call graph for this function:

◆ getCountryTranslation()

ilEvaluationAllTableGUI::getCountryTranslation (   $countryCode)
protected

Definition at line 324 of file class.ilEvaluationAllTableGUI.php.

References ILIAS\Repository\lng().

Referenced by fillRow().

325  {
326  return $this->lng->txt('meta_c_' . $countryCode);
327  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSelectableColumns()

ilEvaluationAllTableGUI::getSelectableColumns ( )

Definition at line 140 of file class.ilEvaluationAllTableGUI.php.

References isFieldEnabledEnoughByAdministration(), and ILIAS\Repository\lng().

Referenced by getSelectedColumns(), and ilEvaluationAllTableGUITest\testGetSelectableColumns().

140  : array
141  {
142  $cols = [];
143  if (!$this->anonymity) {
144  $cols["email"] = array(
145  "txt" => $this->lng->txt("email"),
146  "default" => false
147  );
148  $cols["institution"] = array(
149  "txt" => $this->lng->txt("institution"),
150  "default" => false
151  );
152  $cols["street"] = array(
153  "txt" => $this->lng->txt("street"),
154  "default" => false
155  );
156  $cols["city"] = array(
157  "txt" => $this->lng->txt("city"),
158  "default" => false
159  );
160  $cols["zipcode"] = array(
161  "txt" => $this->lng->txt("zipcode"),
162  "default" => false
163  );
164  if ($this->isFieldEnabledEnoughByAdministration('country')) {
165  $cols["country"] = array(
166  "txt" => $this->lng->txt("country"),
167  "default" => false
168  );
169  }
170  if ($this->isFieldEnabledEnoughByAdministration('sel_country')) {
171  $cols["sel_country"] = array(
172  "txt" => $this->lng->txt("country"),
173  "default" => false
174  );
175  }
176  $cols["department"] = array(
177  "txt" => $this->lng->txt("department"),
178  "default" => false
179  );
180  $cols["matriculation"] = array(
181  "txt" => $this->lng->txt("matriculation"),
182  "default" => false
183  );
184  if ($this->parent_obj->getObject()->isShowExamIdInTestResultsEnabled()) {
185  $cols["exam_id"] = array(
186  "txt" => $this->lng->txt("exam_id_label"),
187  "default" => false
188  );
189  }
190  }
191  return $cols;
192  }
isFieldEnabledEnoughByAdministration($fieldIdentifier)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSelectedColumns()

ilEvaluationAllTableGUI::getSelectedColumns ( )

Definition at line 306 of file class.ilEvaluationAllTableGUI.php.

References ILIAS\LTI\ToolProvider\$key, and getSelectableColumns().

Referenced by __construct(), and fillRow().

306  : array
307  {
308  $scol = parent::getSelectedColumns();
309 
310  $cols = $this->getSelectableColumns();
311  if (!is_array($cols)) {
312  $cols = array();
313  }
314 
315  $fields_to_unset = array_diff(array_keys($scol), array_keys($cols));
316 
317  foreach ($fields_to_unset as $key) {
318  unset($scol[$key]);
319  }
320 
321  return $scol;
322  }
string $key
Consumer key/client ID value.
Definition: System.php:193
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initFilter()

ilEvaluationAllTableGUI::initFilter ( )

Init filter.

Definition at line 197 of file class.ilEvaluationAllTableGUI.php.

References ilTable2GUI\addFilterItem(), and ILIAS\Repository\lng().

Referenced by __construct().

197  : void
198  {
199  $ti = new ilTextInputGUI($this->lng->txt("name"), "name");
200  $ti->setMaxLength(64);
201  $ti->setValidationRegexp('/^[^%]*$/is');
202  $ti->setSize(20);
203  $this->addFilterItem($ti);
204  $ti->readFromSession();
205 
206  // group
207  $ti = new ilTextInputGUI($this->lng->txt("grp"), "group");
208  $ti->setMaxLength(64);
209  $ti->setValidationRegexp('/^[^%]*$/is');
210  $ti->setSize(20);
211  $this->addFilterItem($ti);
212  $ti->readFromSession();
213 
214  // course
215  $ti = new ilTextInputGUI($this->lng->txt("course"), "course");
216  $ti->setMaxLength(64);
217  $ti->setSize(20);
218  $ti->setValidationRegexp('/^[^%]*$/is');
219  $this->addFilterItem($ti);
220  $ti->readFromSession();
221 
222  $si = new ilCheckboxInputGUI($this->lng->txt("passed_only"), "passed_only");
223  $this->addFilterItem($si);
224  $si->readFromSession();
225  }
addFilterItem(ilTableFilterItem $a_input_item, bool $a_optional=false)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isFieldEnabledEnoughByAdministration()

ilEvaluationAllTableGUI::isFieldEnabledEnoughByAdministration (   $fieldIdentifier)
protected

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

References ILIAS\Repository\settings().

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

329  : bool
330  {
331  if ($this->settings->get("usr_settings_hide_" . $fieldIdentifier)) { // visible
332  return false;
333  }
334 
335  if (!$this->settings->get('usr_settings_visib_reg_' . $fieldIdentifier)) { // visib_reg
336  return false;
337  }
338 
339  if (!$this->settings->get('usr_settings_visib_lua_' . $fieldIdentifier)) { // visib_lua
340  return false;
341  }
342 
343  if ($this->settings->get("usr_settings_disable_" . $fieldIdentifier)) { // changeable
344  return false;
345  }
346 
347  if (!$this->settings->get('usr_settings_changeable_lua_' . $fieldIdentifier)) { // changeable_lua
348  return false;
349  }
350 
351  return true;
352  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ numericOrdering()

ilEvaluationAllTableGUI::numericOrdering ( string  $a_field)

Should this field be sorted numeric?

Returns
boolean numeric ordering; default is false

Definition at line 118 of file class.ilEvaluationAllTableGUI.php.

Referenced by ilEvaluationAllTableGUITest\testNumericOrdering().

118  : bool
119  {
120  switch ($a_field) {
121  case 'name':
122  if ($this->anonymity) {
123  return true;
124  } else {
125  return false;
126  }
127  break;
128  case 'reached':
129  case 'hint_count':
130  case 'exam_id':
131  case 'answered':
132  return true;
133  break;
134  default:
135  return false;
136  break;
137  }
138  }
+ Here is the caller graph for this function:

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