35 $this->usr_id = $DIC->http()->request()->getQueryParams()[
'usr_id'];
39 $this->
setId(
'myst_su');
42 $this->
setRowTemplate(
'tpl.list_user_courses_row.html',
"Services/MyStaff");
43 $this->
setFormAction($DIC->ctrl()->getFormAction($parent_obj));
77 $arr_usr_id = $this->access->getUsersForUserOperationAndContext($DIC->user()
82 'filters' => $this->filter,
110 $item =
new ilTextInputGUI($DIC->language()->txt(
"crs_title"),
"crs_title");
112 $item->readFromSession();
113 $this->filter[
'crs_title'] = $item->getValue();
117 $item->
setSelectText($DIC->language()->txt(
"mst_select_course"));
118 $item->setHeaderMessage($DIC->language()->txt(
"mst_please_select_course"));
121 $item->readFromSession();
123 $this->filter[
"course"] = $item->getValue();
126 $item =
new ilSelectInputGUI($DIC->language()->txt(
'member_status'),
'memb_status');
128 "" => $DIC->language()->txt(
"mst_opt_all"),
134 $item->readFromSession();
135 $this->filter[
"memb_status"] = $item->getValue();
139 $item =
new ilSelectInputGUI($DIC->language()->txt(
'learning_progress'),
'lp_status');
142 "" => $DIC->language()->txt(
"mst_opt_all"),
149 $item->readFromSession();
150 $this->filter[
"lp_status"] = $item->getValue();
151 if ($this->filter[
"lp_status"]) {
152 $this->filter[
"lp_status"] = $this->filter[
"lp_status"] - 1;
167 $cols[
'crs_title'] = array(
168 'txt' => $DIC->language()->txt(
'crs_title'),
171 'sort_field' =>
'crs_title',
173 $cols[
'usr_reg_status'] = array(
174 'txt' => $DIC->language()->txt(
'member_status'),
177 'sort_field' =>
'reg_status',
180 $cols[
'usr_lp_status'] = array(
181 'txt' => $DIC->language()->txt(
'learning_progress'),
184 'sort_field' =>
'lp_status',
199 if (isset($v[
'sort_field'])) {
200 $sort = $v[
'sort_field'];
204 $this->
addColumn($v[
'txt'], $sort, $v[
'width']);
215 $propGetter = Closure::bind(
function ($prop) {
217 }, $my_staff_course, $my_staff_course);
222 case 'usr_reg_status':
223 $this->tpl->setCurrentBlock(
'td');
225 $this->tpl->parseCurrentBlock();
227 case 'usr_lp_status':
228 $this->tpl->setCurrentBlock(
'td');
230 $this->tpl->parseCurrentBlock();
233 if ($propGetter($k) !== null) {
234 $this->tpl->setCurrentBlock(
'td');
235 $this->tpl->setVariable(
'VALUE', (is_array($propGetter($k)) ? implode(
", ", $propGetter($k)) : $propGetter($k)));
236 $this->tpl->parseCurrentBlock();
238 $this->tpl->setCurrentBlock(
'td');
239 $this->tpl->setVariable(
'VALUE',
' ');
240 $this->tpl->parseCurrentBlock();
258 $a_excel->
setCell($a_row, $col, $v);
271 $a_csv->addColumn($v);
282 $propGetter = Closure::bind(
function ($prop) {
284 }, $my_staff_course, $my_staff_course);
286 $field_values = array();
290 case 'usr_reg_status':
293 case 'usr_lp_status':
297 $field_values[$k] = strip_tags($propGetter($k));
302 return $field_values;
const LP_STATUS_COMPLETED_NUM
static getData(array $arr_usr_ids=array(), array $options=array())
const MEMBERSHIP_STATUS_REGISTERED
setExternalSorting($a_val)
Set external sorting.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setExportFormats(array $formats)
Set available export formats.
fillRow($my_staff_course)
setEnableNumInfo($a_val)
Set enable num info.
const LP_STATUS_NOT_ATTEMPTED
setFilterCols($a_val)
Set filter columns.
setExternalSegmentation($a_val)
Set external segmentation.
const LP_STATUS_IN_PROGRESS_NUM
__construct(ilMStShowUserGUI $parent_obj, $parent_cmd=ilMStShowUserGUI::CMD_INDEX)
addFilterItem($a_input_item, $a_optional=false)
Add filter item.
determineLimit()
Determine the limit.
getOrderDirection()
Get order direction.
static getUserLpStatusAsHtml(ilMStListCourse $my_staff_course)
fillRowExcel(ilExcel $a_excel, &$a_row, $my_staff_course)
getParentObject()
Get parent object.
const LP_STATUS_IN_PROGRESS
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
static _enabledLearningProgress()
check wether learing progress is enabled or not
setDisableFilterHiding($a_val=true)
Set disable filter hiding.
This class represents a text property in a property form.
static getUserLpStatusAsText(ilMStListCourse $my_staff_course)
getSelectedColumns()
Get selected columns.
setCell($a_row, $a_col, $a_value, $a_datatype=null)
Set cell value.
fillRowCSV($a_csv, $my_staff_course)
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.
const LP_STATUS_NOT_ATTEMPTED_NUM
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
const OP_ACCESS_ENROLMENTS
setFormName($a_formname="")
Set Form name.
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.
static getMembershipStatusText($status)
getFieldValuesForExport(ilMStListCourse $my_staff_course)
const MEMBERSHIP_STATUS_WAITINGLIST
setMaxCount($a_max_count)
set max.
Class ilMStShowUserCoursesTableGUI.
setEnableTitle($a_enabletitle)
Set Enable Title.
const LP_STATUS_COMPLETED
const LP_STATUS_FAILED_NUM
const MEMBERSHIP_STATUS_REQUESTED