6 include_once
'./Services/Tracking/classes/class.ilLearningProgressBaseGUI.php';
7 include_once
'./Services/Tracking/classes/class.ilLPStatusWrapper.php';
8 include_once
'Services/Search/classes/class.ilUserFilterGUI.php';
30 parent::__construct($a_mode,$a_ref_id);
42 $this->ctrl->setReturn($this,
"");
44 switch($this->ctrl->getNextClass())
46 case 'iltruserobjectspropstablegui':
47 $user_id = (int)
$_GET[
"user_id"];
48 $this->ctrl->setParameter($this,
"user_id", $user_id);
50 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
52 include_once(
"./Services/Tracking/classes/repository_statistics/class.ilTrUserObjectsPropsTableGUI.php");
54 $user_id, $this->details_obj_id, $this->details_id);
55 $this->ctrl->forwardCommand($table_gui);
58 case 'iltrsummarytablegui':
59 $cmd =
"showObjectSummary";
60 if(!$this->details_id)
62 $this->details_id = ROOT_FOLDER_ID;
65 include_once
'./Services/Tracking/classes/repository_statistics/class.ilTrSummaryTableGUI.php';
67 $this->ctrl->forwardCommand($table_gui);
70 case 'iltrmatrixtablegui':
71 include_once
'./Services/Tracking/classes/repository_statistics/class.ilTrMatrixTableGUI.php';
73 $this->ctrl->forwardCommand($table_gui);
76 case 'iltrobjectuserspropstablegui':
77 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
79 include_once
'./Services/Tracking/classes/repository_statistics/class.ilTrObjectUsersPropsTableGUI.php';
81 $this->ctrl->forwardCommand($table_gui);
96 if(isset(
$_GET[
"userdetails_id"]))
102 include_once
'./Services/Tracking/classes/class.ilLearningProgressAccess.php';
106 $this->ctrl->returnToParent($this);
109 $this->
__updateUser($_REQUEST[
'user_id'], $this->details_obj_id);
112 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
115 if(!isset(
$_GET[
"userdetails_id"]))
117 $this->ctrl->redirect($this,
"details");
121 $this->ctrl->setParameter($this,
"userdetails_id", (
int)
$_GET[
"userdetails_id"]);
122 $this->ctrl->redirect($this,
"userdetails");
128 global $ilObjDataCache, $rbacsystem;
131 if(isset(
$_GET[
"userdetails_id"]))
135 $cancel =
"userdetails";
143 include_once
'./Services/Tracking/classes/class.ilLearningProgressAccess.php';
147 $this->ctrl->returnToParent($this);
150 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
152 $info->setFormAction($this->ctrl->getFormAction($this));
157 $this->tpl->setVariable(
"ADM_CONTENT", $this->
__showEditUser((
int)$_GET[
'user_id'], $parent_id, $cancel, $sub_id).
"<br />".
$info->getHTML());
164 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_loo.html',
'Services/Tracking');
167 if($this->
getMode() == self::LP_CONTEXT_PERSONAL_DESKTOP
or 168 $this->
getMode() == self::LP_CONTEXT_ADMINISTRATION)
172 $ilToolbar->addButton($this->lng->txt(
'trac_view_list'),
173 $this->ctrl->getLinkTarget($this,
'show'));
189 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
191 $info->setFormAction($this->ctrl->getFormAction($this));
194 $this->tpl->setCurrentBlock(
"info");
195 $this->tpl->setVariable(
"INFO_TABLE",
$info->getHTML());
196 $this->tpl->parseCurrentBlock();
210 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
212 include_once
"Services/Tracking/classes/repository_statistics/class.ilTrObjectUsersPropsTableGUI.php";
215 $this->tpl->setVariable(
"LP_OBJECTS", $gui->getHTML());
229 global $ilObjDataCache, $ilToolbar;
237 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
239 $print_view = (bool)
$_GET[
'prt'];
243 $ilToolbar->addButton($this->lng->txt(
'trac_view_list'), $this->ctrl->getLinkTarget($this,
'details'));
246 $user_id = (int)
$_GET[
"user_id"];
247 $this->ctrl->setParameter($this,
"user_id", $user_id);
258 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_loo.html',
'Services/Tracking');
260 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
262 $info->setFormAction($this->ctrl->getFormAction($this));
266 $this->tpl->setVariable(
"INFO_TABLE",
$info->getHTML());
268 include_once(
"./Services/Tracking/classes/repository_statistics/class.ilTrUserObjectsPropsTableGUI.php");
270 $this->details_obj_id, $this->details_id, $print_view);
271 $this->tpl->setVariable(
'LP_OBJECTS', $table->getHTML());
286 $this->ctrl->saveParameter($this,
'offset',0);
291 case self::LP_CONTEXT_REPOSITORY:
302 global
$ilUser,$ilObjDataCache;
304 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_list_objects.html',
'Services/Tracking');
306 include_once(
"./Services/Tracking/classes/repository_statistics/class.ilTrSummaryTableGUI.php");
309 $this->tpl->setVariable(
"LP_OBJECTS", $lp_table->getHTML());
315 global $ilObjDataCache;
323 $_GET[
'details_id'] = $a_details_id;
324 $this->details_id = $a_details_id;
325 $this->details_obj_id = $ilObjDataCache->lookupObjId($this->details_id);
326 $this->details_type = $ilObjDataCache->lookupType($this->details_obj_id);
328 include_once
'Services/Object/classes/class.ilObjectLP.php';
330 $this->details_mode = $olp->getCurrentMode();
339 global
$tpl, $ilToolbar;
352 include_once(
"./Services/Tracking/classes/repository_statistics/class.ilTrSummaryTableGUI.php");
356 $tpl->setContent($table->getHTML());
360 $tpl->setVariable(
"ADM_CONTENT", $table->getHTML());
361 echo $tpl->get(
"DEFAULT",
false,
false,
false,
false,
false,
false);
380 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_loo.html',
'Services/Tracking');
382 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
384 $info->setFormAction($this->ctrl->getFormAction($this));
387 $this->tpl->setCurrentBlock(
"info");
388 $this->tpl->setVariable(
"INFO_TABLE",
$info->getHTML());
389 $this->tpl->parseCurrentBlock();
392 include_once(
"./Services/Tracking/classes/repository_statistics/class.ilTrMatrixTableGUI.php");
394 $this->tpl->setVariable(
'LP_OBJECTS', $table->getHTML());
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
__showEditUser($a_user_id, $a_ref_id, $a_cancel, $a_sub_id=false)
__initDetails($a_details_id)
__construct($a_mode, $a_ref_id)
executeCommand()
execute command
showUserObjectMatrix()
Show object user matrix.
static checkPermission($a_permission, $a_ref_id, $a_user_id=null)
wrapper for rbac access checks
__showObjectDetails(&$info, $item_id=0, $add_section=true)
show details about current object.
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, ...
__appendUserInfo(&$info, $a_user)
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
Build table list for objects of given user.
__showUsersList($a_print_view=false)
__updateUser($user_id, $obj_id)
static getInstance($a_obj_id)