3 declare(strict_types=0);
44 if ($this->
http->wrapper()->query()->has(
'userdetails_id')) {
45 return $this->
http->wrapper()->query()->retrieve(
58 if ($this->
http->wrapper()->post()->has(
'user_id')) {
59 return $this->
http->wrapper()->post()->retrieve(
69 if ($this->
http->wrapper()->query()->has(
'details_id')) {
70 return $this->
http->wrapper()->query()->retrieve(
75 if ($this->
http->wrapper()->post()->has(
'details_id')) {
76 return $this->
http->wrapper()->post()->retrieve(
86 $this->
ctrl->setReturn($this,
"");
88 switch ($this->
ctrl->getNextClass()) {
89 case 'iltruserobjectspropstablegui':
91 $this->
ctrl->setParameter($this,
"user_id", $user_id);
93 $this->
ctrl->setParameter(
103 $this->details_obj_id,
106 $this->
ctrl->forwardCommand($table_gui);
109 case 'iltrsummarytablegui':
110 $cmd =
"showObjectSummary";
111 if (!$this->details_id) {
120 $this->
ctrl->forwardCommand($table_gui);
123 case 'iltrmatrixtablegui':
126 "showUserObjectMatrix",
129 $this->
ctrl->forwardCommand($table_gui);
132 case 'iltrobjectuserspropstablegui':
133 $this->
ctrl->setParameter(
142 $this->details_obj_id,
145 $this->
ctrl->forwardCommand($table_gui);
163 'edit_learning_progress',
166 $this->tpl->setOnScreenMessage(
168 $this->
lng->txt(
"permission_denied"),
171 $this->
ctrl->returnToParent($this);
176 $this->details_obj_id
178 $this->tpl->setOnScreenMessage(
180 $this->
lng->txt(
'trac_update_edit_user'),
184 $this->
ctrl->setParameter(
192 $this->
ctrl->redirect($this,
"details");
194 $this->
ctrl->setParameter($this,
"userdetails_id", $details_id);
195 $this->
ctrl->redirect($this,
"userdetails");
207 $cancel =
"userdetails";
214 'edit_learning_progress',
217 $this->tpl->setOnScreenMessage(
219 $this->
lng->txt(
"permission_denied"),
222 $this->
ctrl->returnToParent($this);
226 $info->setFormAction($this->
ctrl->getFormAction($this));
230 $this->tpl->setVariable(
235 strlen($cancel) > 0 ? $cancel : null,
237 ) .
"<br />" . $info->getHTML()
243 $this->tpl->addBlockFile(
251 if ($this->
getMode() == self::LP_CONTEXT_PERSONAL_DESKTOP or
252 $this->
getMode() == self::LP_CONTEXT_ADMINISTRATION) {
254 $this->
lng->txt(
'trac_view_list'),
255 $this->
ctrl->getLinkTarget($this,
'show')
260 $info->setFormAction($this->
ctrl->getFormAction($this));
262 $this->tpl->setCurrentBlock(
"info");
263 $this->tpl->setVariable(
"INFO_TABLE", $info->getHTML());
264 $this->tpl->parseCurrentBlock();
272 $this->tpl->setOnScreenMessage(
274 $this->
lng->txt(
'permission_denied')
278 $this->
ctrl->setParameter($this,
"details_id", $this->details_id);
282 $this->details_obj_id,
287 $this->tpl->setVariable(
"LP_OBJECTS", $gui->getHTML());
294 $this->tpl->setOnScreenMessage(
296 $this->
lng->txt(
'permission_denied')
301 $this->
ctrl->setParameter($this,
"details_id", $this->details_id);
304 if ($this->
http->wrapper()->query()->has(
'prt')) {
305 $print_view = $this->
http->wrapper()->query()->retrieve(
313 $this->
lng->txt(
'trac_view_list'),
314 $this->
ctrl->getLinkTarget(
322 $this->
ctrl->setParameter($this,
"user_id", $user_id);
323 $this->tpl->addBlockFile(
331 $info->setFormAction($this->
ctrl->getFormAction($this));
334 $this->tpl->setVariable(
"INFO_TABLE", $info->getHTML());
340 $this->details_obj_id,
344 $this->tpl->setVariable(
'LP_OBJECTS', $table->getHTML());
350 $this->
ctrl->setParameter($this,
'offset', 0);
354 case self::LP_CONTEXT_REPOSITORY:
364 $this->tpl->addBlockFile(
367 'tpl.lp_list_objects.html',
373 $this->tpl->setVariable(
"LP_OBJECTS", $lp_table->getHTML());
374 if ($lp_table->isStatusShown()) {
381 if (!$a_details_id) {
385 $this->details_id = $a_details_id;
390 $this->details_obj_id
394 $this->details_mode = $olp->getCurrentMode();
409 $content = $table->getHTML();
410 if ($table->isStatusShown()) {
413 $this->tpl->setContent($content);
422 $this->tpl->setOnScreenMessage(
424 $this->
lng->txt(
'permission_denied')
428 $this->tpl->addBlockFile(
435 $info->setFormAction($this->
ctrl->getFormAction($this));
437 $this->tpl->setCurrentBlock(
"info");
438 $this->tpl->setVariable(
"INFO_TABLE", $info->getHTML());
439 $this->tpl->parseCurrentBlock();
444 "showUserObjectMatrix",
447 $this->tpl->setVariable(
'LP_OBJECTS', $table->getHTML());
__showEditUser(int $a_user_id, int $a_ref_id, ?string $a_cancel=null, int $a_sub_id=0)
__showObjectDetails(ilInfoScreenGUI $info, int $item_id=0, bool $add_section=true)
show details about current object.
__updateUser(int $user_id, int $obj_id)
showUserObjectMatrix()
Show object user matrix.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
initUserDetailsIdFromQuery()
__construct(int $a_mode, int $a_ref_id)
static http()
Fetches the global http state from ILIAS.
showObjectSummary()
Show object-based summarized tracking data.
Learning progress table: One object, rows: users, columns: properties Example: A course, rows: members, columns: name, status, mark, ...
__initDetails(int $a_details_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
initDetailsIdFromRequest(int $default_id)
__construct(Container $dic, ilPlugin $plugin)
static checkPermission(string $a_permission, int $a_ref_id, ?int $a_user_id=null)
wrapper for rbac access checks
__showUsersList($a_print_view=false)
__getLegendHTML(int $variant=ilLPStatusIcons::ICON_VARIANT_LONG)
static getInstance(int $obj_id)