63 $this->
setId(
'myst_cs');
67 $this->
setRowTemplate(
'tpl.list_skills_row.html',
"Services/MyStaff");
101 'filters' => $this->
filter,
112 $count = $skills_fetcher->getData($options);
113 $options[
'limit'] = array(
117 $options[
'count'] =
false;
118 $data = $skills_fetcher->getData($options);
130 $item =
new ilTextInputGUI($this->dic->language()->txt(
"skmg_skill"),
'skill');
132 $item->readFromSession();
133 $this->
filter[
'skill'] = $item->getValue();
136 $item =
new ilTextInputGUI($this->dic->language()->txt(
"skmg_skill_level"),
'skill_level');
138 $item->readFromSession();
139 $this->
filter[
'skill_level'] = $item->getValue();
142 $item =
new ilTextInputGUI($this->dic->language()->txt(
"login") .
"/" . $this->dic->language()->txt(
"email") .
"/" . $this->dic->language()
143 ->txt(
"name"),
"user");
146 $item->readFromSession();
147 $this->
filter[
'user'] = $item->getValue();
152 $options[0] = $this->dic->language()->txt(
'mst_opt_all');
153 foreach ($paths as $org_ref_id => $path) {
154 $options[$org_ref_id] = $path;
156 $item =
new ilSelectInputGUI($this->dic->language()->txt(
'obj_orgu'),
'org_unit');
157 $item->setOptions($options);
159 $item->readFromSession();
160 $this->
filter[
'org_unit'] = $item->getValue();
166 if ($this->selectable_columns_cached) {
179 $cols[
'skill_title'] = array(
180 'txt' => $this->dic->language()->txt(
'skmg_skill'),
183 'sort_field' =>
'skill_title',
185 $cols[
'skill_level'] = array(
186 'txt' => $this->dic->language()->txt(
'skmg_skill_level'),
189 'sort_field' =>
'skill_level',
192 if ($arr_searchable_user_columns[
'login']) {
193 $cols[
'login'] = array(
194 'txt' => $this->dic->language()->txt(
'login'),
197 'sort_field' =>
'login',
200 if ($arr_searchable_user_columns[
'firstname']) {
201 $cols[
'first_name'] = array(
202 'txt' => $this->dic->language()->txt(
'firstname'),
205 'sort_field' =>
'firstname',
208 if ($arr_searchable_user_columns[
'lastname']) {
209 $cols[
'last_name'] = array(
210 'txt' => $this->dic->language()->txt(
'lastname'),
213 'sort_field' =>
'lastname',
216 if ($arr_searchable_user_columns[
'email']) {
217 $cols[
'email'] = array(
218 'txt' => $this->dic->language()->txt(
'email'),
221 'sort_field' =>
'email',
224 if ($arr_searchable_user_columns[
'org_units'] ??
false) {
225 $cols[
'usr_assinged_orgus'] = array(
226 'txt' => $this->dic->language()->txt(
'objs_orgu'),
243 if (isset($v[
'sort_field'])) {
244 $sort = $v[
'sort_field'];
248 $this->
addColumn($v[
'txt'], $sort, $v[
'width']);
254 $this->
addColumn($this->dic->language()->txt(
'actions'));
260 if (isset($this->usr_orgu_names[$user_id])) {
261 return $this->usr_orgu_names[$user_id];
264 return $this->usr_orgu_names[$user_id] = \ilOrgUnitPathStorage::getTextRepresentationOfUsersOrgUnits($user_id);
272 $propGetter = Closure::bind(
function ($prop) {
274 }, $profile, $profile);
278 case 'usr_assinged_orgus':
279 $this->tpl->setCurrentBlock(
'td');
280 $this->tpl->setVariable(
284 $this->tpl->parseCurrentBlock();
287 if ($propGetter($k) !== null) {
288 $this->tpl->setCurrentBlock(
'td');
289 $this->tpl->setVariable(
291 (is_array($propGetter($k)) ? implode(
", ", $propGetter($k)) : $propGetter($k))
293 $this->tpl->parseCurrentBlock();
295 $this->tpl->setCurrentBlock(
'td');
296 $this->tpl->setVariable(
'VALUE',
' ');
297 $this->tpl->parseCurrentBlock();
304 $actions->setListTitle($this->dic->language()->txt(
"actions"));
305 $actions->setId($profile->getUserId() .
"-" . $profile->getSkillNodeId());
307 $mst_lcom_usr_id = $profile->getUserId();
309 $this->dic->ctrl()->setParameterByClass(get_class($this->parent_obj),
'mst_lcom_usr_id', $mst_lcom_usr_id);
311 $actions = \ilMyStaffGUI::extendActionMenuWithUserActions(
314 rawurlencode($this->dic->ctrl()->getLinkTargetByClass(
315 "ilMStListCompetencesSkillsGUI",
320 $this->tpl->setVariable(
'ACTIONS', $actions->getHTML());
321 $this->tpl->parseCurrentBlock();
334 $a_excel->
setCell($a_row, $col, $v);
347 $a_csv->addColumn($v);
360 $propGetter = Closure::bind(
function ($prop) {
362 }, $selected_skill, $selected_skill);
364 $field_values = array();
367 case 'usr_assinged_orgus':
371 $field_values[$k] = strip_tags($propGetter($k));
376 return $field_values;
setExternalSorting($a_val)
Set external sorting.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setExportFormats(array $formats)
Set available export formats.
getFieldValuesForExport(ilMStListCompetencesSkill $selected_skill)
setEnableNumInfo($a_val)
Set enable num info.
setFilterCols($a_val)
Set filter columns.
setExternalSegmentation($a_val)
Set external segmentation.
addFilterItem($a_input_item, $a_optional=false)
Add filter item.
determineLimit()
Determine the limit.
getOrderDirection()
Get order direction.
Customizing of pimple-DIC for ILIAS.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
static getTextRepresentationOfOrgUnits($sort_by_title=true)
Get ref id path array.
fillRowExcel(ilExcel $a_excel, &$a_row, $selected_skill)
static getSelectableColumnInfo($a_admin=false)
Get info of searchable fields for selectable columns in table gui.
setDisableFilterHiding($a_val=true)
Set disable filter hiding.
getSelectedColumns()
Get selected columns.
setCell($a_row, $a_col, $a_value, $a_datatype=null)
Set cell value.
Class ilMStListCompetencesTableGUI.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
getTextRepresentationOfUsersOrgUnits(int $user_id)
isColumnSelected($a_col)
Is given column selected?
determineOffsetAndOrder($a_omit_offset=false)
Determine offset and order.
$selectable_columns_cached
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setFormName($a_formname="")
Set Form name.
__construct(Container $dic, ilPlugin $plugin)
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setMaxCount($a_max_count)
set max.
getExportMode()
Was export activated?
setEnableTitle($a_enabletitle)
Set Enable Title.
__construct($parent_obj, string $parent_cmd, Container $dic)
static _isEnabled($a_key)
fillRowCSV($a_csv, $selected_skill)