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';
32 parent::ilLearningProgressBaseGUI($a_mode,$a_ref_id);
44 $this->ctrl->setReturn($this,
"");
46 switch($this->ctrl->getNextClass())
48 case 'iltruserobjectspropstablegui':
49 $user_id = (int)
$_GET[
"user_id"];
50 $this->ctrl->setParameter($this,
"user_id", $user_id);
52 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
54 include_once(
"./Services/Tracking/classes/repository_statistics/class.ilTrUserObjectsPropsTableGUI.php");
56 $user_id, $this->details_obj_id, $this->details_id);
57 $this->ctrl->forwardCommand($table_gui);
60 case 'iltrsummarytablegui':
61 $cmd =
"showObjectSummary";
62 if(!$this->details_id)
64 $this->details_id = ROOT_FOLDER_ID;
67 include_once
'./Services/Tracking/classes/repository_statistics/class.ilTrSummaryTableGUI.php';
69 $this->ctrl->forwardCommand($table_gui);
72 case 'iltrmatrixtablegui':
73 include_once
'./Services/Tracking/classes/repository_statistics/class.ilTrMatrixTableGUI.php';
75 $this->ctrl->forwardCommand($table_gui);
78 case 'iltrobjectuserspropstablegui':
79 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
81 include_once
'./Services/Tracking/classes/repository_statistics/class.ilTrObjectUsersPropsTableGUI.php';
83 $this->ctrl->forwardCommand($table_gui);
98 if(isset(
$_GET[
"userdetails_id"]))
104 include_once
'./Services/Tracking/classes/class.ilLearningProgressAccess.php';
108 $this->ctrl->returnToParent($this);
114 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
117 if(!isset(
$_GET[
"userdetails_id"]))
119 $this->ctrl->redirect($this,
"details");
123 $this->ctrl->setParameter($this,
"userdetails_id", (
int)
$_GET[
"userdetails_id"]);
124 $this->ctrl->redirect($this,
"userdetails");
130 global $ilObjDataCache, $rbacsystem;
133 if(isset(
$_GET[
"userdetails_id"]))
137 $cancel =
"userdetails";
145 include_once
'./Services/Tracking/classes/class.ilLearningProgressAccess.php';
149 $this->ctrl->returnToParent($this);
152 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
154 $info->setFormAction($this->ctrl->getFormAction($this));
159 $this->tpl->setVariable(
"ADM_CONTENT", $this->
__showEditUser((
int)$_GET[
'user_id'], $parent_id, $cancel, $sub_id).
"<br />".
$info->getHTML());
166 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_loo.html',
'Services/Tracking');
169 if($this->
getMode() == self::LP_CONTEXT_PERSONAL_DESKTOP or
170 $this->
getMode() == self::LP_CONTEXT_ADMINISTRATION)
174 $ilToolbar->addButton($this->lng->txt(
'trac_view_list'),
175 $this->ctrl->getLinkTarget($this,
'show'));
191 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
193 $info->setFormAction($this->ctrl->getFormAction($this));
196 $this->tpl->setCurrentBlock(
"info");
197 $this->tpl->setVariable(
"INFO_TABLE",
$info->getHTML());
198 $this->tpl->parseCurrentBlock();
212 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
214 include_once
"Services/Tracking/classes/repository_statistics/class.ilTrObjectUsersPropsTableGUI.php";
217 $this->tpl->setVariable(
"LP_OBJECTS", $gui->getHTML());
231 global $ilObjDataCache, $ilToolbar;
239 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
241 $print_view = (bool)
$_GET[
'prt'];
245 $ilToolbar->addButton($this->lng->txt(
'trac_view_list'), $this->ctrl->getLinkTarget($this,
'details'));
248 $user_id = (int)
$_GET[
"user_id"];
249 $this->ctrl->setParameter($this,
"user_id", $user_id);
260 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_loo.html',
'Services/Tracking');
262 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
264 $info->setFormAction($this->ctrl->getFormAction($this));
268 $this->tpl->setVariable(
"INFO_TABLE",
$info->getHTML());
270 include_once(
"./Services/Tracking/classes/repository_statistics/class.ilTrUserObjectsPropsTableGUI.php");
272 $this->details_obj_id, $this->details_id, $print_view);
273 $this->tpl->setVariable(
'LP_OBJECTS', $table->getHTML());
288 $this->ctrl->saveParameter($this,
'offset',0);
293 case self::LP_CONTEXT_REPOSITORY:
304 global
$ilUser,$ilObjDataCache;
306 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_list_objects.html',
'Services/Tracking');
308 include_once(
"./Services/Tracking/classes/repository_statistics/class.ilTrSummaryTableGUI.php");
311 $this->tpl->setVariable(
"LP_OBJECTS", $lp_table->getHTML());
317 global $ilObjDataCache;
325 $_GET[
'details_id'] = $a_details_id;
326 $this->details_id = $a_details_id;
327 $this->details_obj_id = $ilObjDataCache->lookupObjId($this->details_id);
328 $this->details_type = $ilObjDataCache->lookupType($this->details_obj_id);
330 include_once
'Services/Object/classes/class.ilObjectLP.php';
332 $this->details_mode = $olp->getCurrentMode();
341 global
$tpl, $ilToolbar;
354 include_once(
"./Services/Tracking/classes/repository_statistics/class.ilTrSummaryTableGUI.php");
358 $tpl->setContent($table->getHTML());
362 $tpl->setVariable(
"ADM_CONTENT", $table->getHTML());
363 echo $tpl->get(
"DEFAULT",
false,
false,
false,
false,
false,
false);
382 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_loo.html',
'Services/Tracking');
384 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
386 $info->setFormAction($this->ctrl->getFormAction($this));
389 $this->tpl->setCurrentBlock(
"info");
390 $this->tpl->setVariable(
"INFO_TABLE",
$info->getHTML());
391 $this->tpl->parseCurrentBlock();
394 include_once(
"./Services/Tracking/classes/repository_statistics/class.ilTrMatrixTableGUI.php");
396 $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)
& executeCommand()
execute command
ilLPListOfObjectsGUI($a_mode, $a_ref_id)
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($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
__updateUser($user_id, $obj_id)
static getInstance($a_obj_id)