55 $this->
setId(
'myst_cs');
59 $this->
setRowTemplate(
'tpl.list_skills_row.html',
"Services/MyStaff");
93 'filters' => $this->filter,
104 $count = $skills_fetcher->getData($options);
105 $options[
'limit'] = array(
109 $options[
'count'] =
false;
110 $data = $skills_fetcher->getData($options);
122 $item =
new ilTextInputGUI($this->dic->language()->txt(
"skmg_skill"),
'skill');
124 $item->readFromSession();
125 $this->filter[
'skill'] = $item->getValue();
128 $item =
new ilTextInputGUI($this->dic->language()->txt(
"skmg_skill_level"),
'skill_level');
130 $item->readFromSession();
131 $this->filter[
'skill_level'] = $item->getValue();
134 $item =
new ilTextInputGUI($this->dic->language()->txt(
"login") .
"/" . $this->dic->language()->txt(
"email") .
"/" . $this->dic->language()
135 ->txt(
"name"),
"user");
138 $item->readFromSession();
139 $this->filter[
'user'] = $item->getValue();
144 $options[0] = $this->dic->language()->txt(
'mst_opt_all');
145 foreach ($paths as $org_ref_id => $path) {
146 $options[$org_ref_id] = $path;
148 $item =
new ilSelectInputGUI($this->dic->language()->txt(
'obj_orgu'),
'org_unit');
149 $item->setOptions($options);
151 $item->readFromSession();
152 $this->filter[
'org_unit'] = $item->getValue();
166 $cols[
'skill_title'] = array(
167 'txt' => $this->dic->language()->txt(
'skmg_skill'),
170 'sort_field' =>
'skill_title',
172 $cols[
'skill_level'] = array(
173 'txt' => $this->dic->language()->txt(
'skmg_skill_level'),
176 'sort_field' =>
'skill_level',
179 if ($arr_searchable_user_columns[
'login']) {
180 $cols[
'login'] = array(
181 'txt' => $this->dic->language()->txt(
'login'),
184 'sort_field' =>
'login',
187 if ($arr_searchable_user_columns[
'firstname']) {
188 $cols[
'first_name'] = array(
189 'txt' => $this->dic->language()->txt(
'firstname'),
192 'sort_field' =>
'firstname',
195 if ($arr_searchable_user_columns[
'lastname']) {
196 $cols[
'last_name'] = array(
197 'txt' => $this->dic->language()->txt(
'lastname'),
200 'sort_field' =>
'lastname',
215 if (isset($v[
'sort_field'])) {
216 $sort = $v[
'sort_field'];
220 $this->
addColumn($v[
'txt'], $sort, $v[
'width']);
226 $this->
addColumn($this->dic->language()->txt(
'actions'));
236 $propGetter = Closure::bind(
function ($prop) {
238 }, $profile, $profile);
242 if ($propGetter($k) !== null) {
243 $this->tpl->setCurrentBlock(
'td');
244 $this->tpl->setVariable(
'VALUE', (is_array($propGetter($k)) ? implode(
", ", $propGetter($k)) : $propGetter($k)));
245 $this->tpl->parseCurrentBlock();
247 $this->tpl->setCurrentBlock(
'td');
248 $this->tpl->setVariable(
'VALUE',
' ');
249 $this->tpl->parseCurrentBlock();
255 $actions->setListTitle($this->dic->language()->txt(
"actions"));
256 $actions->setAsynch(
true);
258 $this->dic->ctrl()->setParameterByClass(get_class($this->parent_obj),
'mst_lcom_usr_id', $profile->getUserId());
260 $actions->setAsynchUrl(str_replace(
"\\",
"\\\\", $this->dic->ctrl()
262 $this->tpl->setVariable(
'ACTIONS', $actions->getHTML());
263 $this->tpl->parseCurrentBlock();
276 $a_excel->
setCell($a_row, $col, $v);
289 $a_csv->addColumn($v);
302 $propGetter = Closure::bind(
function ($prop) {
304 }, $selected_skill, $selected_skill);
306 $field_values = array();
310 $field_values[$k] = strip_tags($propGetter($k));
315 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.
isColumnSelected($a_col)
Is given column selected?
determineOffsetAndOrder($a_omit_offset=false)
Determine offset and order.
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)