ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilSkillLevelTableGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilSkillLevelTableGUI:
+ Collaboration diagram for ilSkillLevelTableGUI:

Public Member Functions

 __construct (int $a_skill_id, $a_parent_obj, string $a_parent_cmd, int $a_tref_id=0, bool $a_in_use=false, bool $a_manage_perm=false)
 
 numericOrdering (string $a_field)
 
 getSkillLevelData ()
 
- 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)
 
- 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

ilAccessHandler $access
 
int $skill_id = 0
 
ilBasicSkill $skill
 
int $tref_id = 0
 
bool $in_use = false
 
bool $manage_perm = false
 
ILIAS UI Factory $ui_fac
 
ILIAS UI Renderer $ui_ren
 
- 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
 

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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Skill level table

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e

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

Constructor & Destructor Documentation

◆ __construct()

ilSkillLevelTableGUI::__construct ( int  $a_skill_id,
  $a_parent_obj,
string  $a_parent_cmd,
int  $a_tref_id = 0,
bool  $a_in_use = false,
bool  $a_manage_perm = false 
)

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

References $DIC, ilTableGUI\$lng, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\access(), ilTable2GUI\addColumn(), ilTable2GUI\addCommandButton(), ilTable2GUI\addMultiCommand(), ILIAS\Repository\ctrl(), ilTable2GUI\getData(), getSkillLevelData(), ILIAS\Repository\lng(), ilTable2GUI\setData(), ilTable2GUI\setDefaultOrderDirection(), ilTable2GUI\setDefaultOrderField(), ilTable2GUI\setDescription(), ilTable2GUI\setEnableHeader(), ilTable2GUI\setEnableTitle(), ilTable2GUI\setFormAction(), ilTable2GUI\setLimit(), ilTable2GUI\setRowTemplate(), ilTable2GUI\setTitle(), and ilLanguage\txt().

44  {
45  global $DIC;
46 
47  $this->ctrl = $DIC->ctrl();
48  $this->lng = $DIC->language();
49  $this->access = $DIC->access();
50  $ilCtrl = $DIC->ctrl();
51  $lng = $DIC->language();
52  $this->ui_fac = $DIC->ui()->factory();
53  $this->ui_ren = $DIC->ui()->renderer();
54 
55  $this->skill_id = $a_skill_id;
56  $this->skill = new ilBasicSkill($a_skill_id);
57  $this->tref_id = $a_tref_id;
58  $this->in_use = $a_in_use;
59  $this->manage_perm = $a_manage_perm;
60 
61  parent::__construct($a_parent_obj, $a_parent_cmd);
62  $this->setLimit(9999);
63  $this->setData($this->getSkillLevelData());
64  $this->setTitle($lng->txt("skmg_skill_levels"));
65  if ($this->tref_id == 0) {
66  $this->setDescription($lng->txt("skmg_from_lower_to_higher_levels"));
67  }
68 
69  if ($this->tref_id == 0 && !$this->in_use) {
70  if ($this->manage_perm) {
71  $this->addColumn("", "", "1", true);
72  }
73  $this->addColumn($this->lng->txt("skmg_nr"));
74  }
75  $this->addColumn($this->lng->txt("title"));
76  $this->addColumn($this->lng->txt("description"));
77  $this->addColumn($this->lng->txt("skmg_suggested"));
78  $this->addColumn($this->lng->txt("skmg_lp_triggers_level"));
79  if ($this->manage_perm) {
80  $this->addColumn($this->lng->txt("actions"));
81  }
82  $this->setDefaultOrderField("nr");
83  $this->setDefaultOrderDirection("asc");
84 
85  $this->setEnableHeader(true);
86  $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
87  $this->setRowTemplate("tpl.skill_level_row.html", "Services/Skill");
88  $this->setEnableTitle(true);
89 
90  if ($this->tref_id == 0 && !$this->in_use && $this->manage_perm) {
91  $this->addMultiCommand("confirmLevelDeletion", $lng->txt("delete"));
92  if (count($this->getData()) > 0) {
93  $this->addCommandButton("updateLevelOrder", $lng->txt("skmg_update_order"));
94  }
95  }
96  }
setData(array $a_data)
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
setFormAction(string $a_form_action, bool $a_multipart=false)
setEnableTitle(bool $a_enabletitle)
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
setDescription(string $a_val)
ilLanguage $lng
global $DIC
Definition: feed.php:28
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
__construct(Container $dic, ilPlugin $plugin)
setLimit(int $a_limit=0, int $a_default_limit=0)
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addMultiCommand(string $a_cmd, string $a_text)
setEnableHeader(bool $a_enableheader)
+ Here is the call graph for this function:

Member Function Documentation

◆ fillRow()

ilSkillLevelTableGUI::fillRow ( array  $a_set)
protected

Definition at line 129 of file class.ilSkillLevelTableGUI.php.

References ilTable2GUI\$ctrl, ilTableGUI\$lng, ilLink\_getStaticLink(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ILIAS\Repository\lng(), ilCtrl\setParameter(), and ilLanguage\txt().

129  : void
130  {
131  $lng = $this->lng;
132  $ilCtrl = $this->ctrl;
133 
134  if ($this->tref_id == 0 && !$this->in_use) {
135  if ($this->manage_perm) {
136  $this->tpl->setCurrentBlock("cb");
137  $this->tpl->setVariable("CB_ID", $a_set["id"]);
138  $this->tpl->parseCurrentBlock();
139  }
140 
141  $this->tpl->setCurrentBlock("nr");
142  $this->tpl->setVariable("ORD_ID", $a_set["id"]);
143  $this->tpl->setVariable("VAL_NR", ((int) $a_set["nr"]) * 10);
144  if (!$this->manage_perm) {
145  $this->tpl->touchBlock("disabled");
146  }
147  $this->tpl->parseCurrentBlock();
148  }
149 
150  $this->tpl->setCurrentBlock("cmd");
151  if ($this->manage_perm) {
152  $this->tpl->setVariable("TXT_CMD", $lng->txt("edit"));
153  }
154  $ilCtrl->setParameter($this->parent_obj, "level_id", $a_set["id"]);
155  if ($this->tref_id == 0) {
156  $this->tpl->setVariable(
157  "HREF_CMD",
158  $ilCtrl->getLinkTarget($this->parent_obj, "editLevel")
159  );
160  } else {
161  $this->tpl->setVariable(
162  "HREF_CMD",
163  $ilCtrl->getLinkTarget($this->parent_obj, "showLevelResources")
164  );
165  }
166  $this->tpl->parseCurrentBlock();
167 
168  $this->tpl->setVariable("TXT_TITLE", $a_set["title"]);
169  $this->tpl->setVariable("TXT_DESCRIPTION", $a_set["description"]);
170  if (isset($a_set["ressources"]) && is_array($a_set["ressources"])) {
171  foreach ($a_set["ressources"] as $rref_id => $ressource) {
172  $robj_id = ilObject::_lookupObjId($rref_id);
173  $robj_type = ilObject::_lookupType($robj_id);
174  $robj_icon = $this->ui_fac->symbol()->icon()->standard(
175  $robj_type,
176  $this->lng->txt("icon") . " " . $this->lng->txt($robj_type),
177  "medium"
178  );
179  $robj_title = ilObject::_lookupTitle($robj_id);
180  $robj_link = ilLink::_getStaticLink($rref_id);
181 
182  if ($ressource["imparting"]) {
183  $this->tpl->setCurrentBlock("ressource_sugg");
184  $this->tpl->setVariable("RSRC_IMG", $this->ui_ren->render($robj_icon));
185  $this->tpl->setVariable("RSRC_TITLE", $robj_title);
186  $this->tpl->setVariable("RSRC_URL", $robj_link);
187  $this->tpl->parseCurrentBlock();
188  }
189 
190  if ($ressource["trigger"]) {
191  $this->tpl->setCurrentBlock("ressource_trigg");
192  $this->tpl->setVariable("RSRC_IMG", $this->ui_ren->render($robj_icon));
193  $this->tpl->setVariable("RSRC_TITLE", $robj_title);
194  $this->tpl->setVariable("RSRC_URL", $robj_link);
195  $this->tpl->parseCurrentBlock();
196  }
197  }
198  }
199  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
ilLanguage $lng
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
static _lookupType(int $id, bool $reference=false)
+ Here is the call graph for this function:

◆ getSkillLevelData()

ilSkillLevelTableGUI::getSkillLevelData ( )

Definition at line 109 of file class.ilSkillLevelTableGUI.php.

References $res, and $resources.

Referenced by __construct().

109  : array
110  {
111  $levels = $this->skill->getLevelData();
112 
113  // add ressource data
114  $res = [];
115  $resources = new ilSkillResources($this->skill_id, $this->tref_id);
116  foreach ($resources->getResources() as $level_id => $item) {
117  $res[$level_id] = $item;
118  }
119 
120  foreach ($levels as $idx => $item) {
121  if (isset($res[$item["id"]])) {
122  $levels[$idx]["ressources"] = $res[$item["id"]];
123  }
124  }
125 
126  return $levels;
127  }
$res
Definition: ltiservices.php:69
$resources
Definition: ltiservices.php:68
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

◆ numericOrdering()

ilSkillLevelTableGUI::numericOrdering ( string  $a_field)

Definition at line 101 of file class.ilSkillLevelTableGUI.php.

101  : bool
102  {
103  if ($a_field == "nr") {
104  return true;
105  }
106  return false;
107  }

Field Documentation

◆ $access

ilAccessHandler ilSkillLevelTableGUI::$access
protected

Definition at line 28 of file class.ilSkillLevelTableGUI.php.

◆ $in_use

bool ilSkillLevelTableGUI::$in_use = false
protected

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

◆ $manage_perm

bool ilSkillLevelTableGUI::$manage_perm = false
protected

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

◆ $skill

ilBasicSkill ilSkillLevelTableGUI::$skill
protected

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

◆ $skill_id

int ilSkillLevelTableGUI::$skill_id = 0
protected

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

◆ $tref_id

int ilSkillLevelTableGUI::$tref_id = 0
protected

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

◆ $ui_fac

ILIAS UI Factory ilSkillLevelTableGUI::$ui_fac
protected

Definition at line 34 of file class.ilSkillLevelTableGUI.php.

◆ $ui_ren

ILIAS UI Renderer ilSkillLevelTableGUI::$ui_ren
protected

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


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