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);
44 $this->ctrl->setReturn($this,
"");
46 switch ($this->ctrl->getNextClass()) {
47 case 'iltruserobjectspropstablegui':
48 $user_id = (int)
$_GET[
"user_id"];
49 $this->ctrl->setParameter($this,
"user_id", $user_id);
51 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
53 include_once(
"./Services/Tracking/classes/repository_statistics/class.ilTrUserObjectsPropsTableGUI.php");
58 $this->details_obj_id,
61 $this->ctrl->forwardCommand($table_gui);
64 case 'iltrsummarytablegui':
65 $cmd =
"showObjectSummary";
66 if (!$this->details_id) {
67 $this->details_id = ROOT_FOLDER_ID;
70 include_once
'./Services/Tracking/classes/repository_statistics/class.ilTrSummaryTableGUI.php';
72 $this->ctrl->forwardCommand($table_gui);
75 case 'iltrmatrixtablegui':
76 include_once
'./Services/Tracking/classes/repository_statistics/class.ilTrMatrixTableGUI.php';
78 $this->ctrl->forwardCommand($table_gui);
81 case 'iltrobjectuserspropstablegui':
82 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
84 include_once
'./Services/Tracking/classes/repository_statistics/class.ilTrObjectUsersPropsTableGUI.php';
86 $this->ctrl->forwardCommand($table_gui);
101 $rbacsystem = $DIC[
'rbacsystem'];
103 if (isset(
$_GET[
"userdetails_id"])) {
108 include_once
'./Services/Tracking/classes/class.ilLearningProgressAccess.php';
111 $this->ctrl->returnToParent($this);
114 $this->
__updateUser($_REQUEST[
'user_id'], $this->details_obj_id);
115 ilUtil::sendSuccess($this->lng->txt(
'trac_update_edit_user'),
true);
117 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
120 if (!isset(
$_GET[
"userdetails_id"])) {
121 $this->ctrl->redirect($this,
"details");
123 $this->ctrl->setParameter($this,
"userdetails_id", (
int)
$_GET[
"userdetails_id"]);
124 $this->ctrl->redirect($this,
"userdetails");
132 $ilObjDataCache = $DIC[
'ilObjDataCache'];
133 $rbacsystem = $DIC[
'rbacsystem'];
136 if (isset(
$_GET[
"userdetails_id"])) {
139 $cancel =
"userdetails";
145 include_once
'./Services/Tracking/classes/class.ilLearningProgressAccess.php';
148 $this->ctrl->returnToParent($this);
151 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
153 $info->setFormAction($this->ctrl->getFormAction($this));
158 $this->tpl->setVariable(
"ADM_CONTENT", $this->
__showEditUser((
int) $_GET[
'user_id'], $parent_id, $cancel, $sub_id) .
"<br />" .
$info->getHTML());
165 $ilToolbar = $DIC[
'ilToolbar'];
167 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_loo.html',
'Services/Tracking');
170 if ($this->
getMode() == self::LP_CONTEXT_PERSONAL_DESKTOP
or 171 $this->
getMode() == self::LP_CONTEXT_ADMINISTRATION) {
174 $ilToolbar->addButton(
175 $this->lng->txt(
'trac_view_list'),
176 $this->ctrl->getLinkTarget($this,
'show')
191 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
193 $info->setFormAction($this->ctrl->getFormAction($this));
195 $this->tpl->setCurrentBlock(
"info");
196 $this->tpl->setVariable(
"INFO_TABLE",
$info->getHTML());
197 $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());
231 $ilObjDataCache = $DIC[
'ilObjDataCache'];
232 $ilToolbar = $DIC[
'ilToolbar'];
239 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
241 $print_view = (bool)
$_GET[
'prt'];
244 $ilToolbar->addButton($this->lng->txt(
'trac_view_list'), $this->ctrl->getLinkTarget($this,
'details'));
247 $user_id = (int)
$_GET[
"user_id"];
248 $this->ctrl->setParameter($this,
"user_id", $user_id);
259 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_loo.html',
'Services/Tracking');
261 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
263 $info->setFormAction($this->ctrl->getFormAction($this));
267 $this->tpl->setVariable(
"INFO_TABLE",
$info->getHTML());
269 include_once(
"./Services/Tracking/classes/repository_statistics/class.ilTrUserObjectsPropsTableGUI.php");
274 $this->details_obj_id,
278 $this->tpl->setVariable(
'LP_OBJECTS',
$table->getHTML());
293 $this->ctrl->saveParameter($this,
'offset', 0);
297 case self::LP_CONTEXT_REPOSITORY:
311 $ilObjDataCache = $DIC[
'ilObjDataCache'];
313 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_list_objects.html',
'Services/Tracking');
315 include_once(
"./Services/Tracking/classes/repository_statistics/class.ilTrSummaryTableGUI.php");
318 $this->tpl->setVariable(
"LP_OBJECTS", $lp_table->getHTML());
326 $ilObjDataCache = $DIC[
'ilObjDataCache'];
328 if (!$a_details_id) {
332 $_GET[
'details_id'] = $a_details_id;
333 $this->details_id = $a_details_id;
334 $this->details_obj_id = $ilObjDataCache->lookupObjId($this->details_id);
335 $this->details_type = $ilObjDataCache->lookupType($this->details_obj_id);
337 include_once
'Services/Object/classes/class.ilObjectLP.php';
339 $this->details_mode = $olp->getCurrentMode();
351 $ilToolbar = $DIC[
'ilToolbar'];
364 include_once(
"./Services/Tracking/classes/repository_statistics/class.ilTrSummaryTableGUI.php");
369 $tpl->setVariable(
"ADM_CONTENT",
$table->getHTML());
370 echo $tpl->get(
"DEFAULT",
false,
false,
false,
false,
false,
false);
390 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_loo.html',
'Services/Tracking');
392 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
394 $info->setFormAction($this->ctrl->getFormAction($this));
396 $this->tpl->setCurrentBlock(
"info");
397 $this->tpl->setVariable(
"INFO_TABLE",
$info->getHTML());
398 $this->tpl->parseCurrentBlock();
401 include_once(
"./Services/Tracking/classes/repository_statistics/class.ilTrMatrixTableGUI.php");
403 $this->tpl->setVariable(
'LP_OBJECTS',
$table->getHTML());
__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)
if(empty($password)) $table
__updateUser($user_id, $obj_id)
static getInstance($a_obj_id)