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()) {
45 case 'iltruserobjectspropstablegui':
46 $user_id = (int)
$_GET[
"user_id"];
47 $this->ctrl->setParameter($this,
"user_id", $user_id);
49 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
51 include_once(
"./Services/Tracking/classes/repository_statistics/class.ilTrUserObjectsPropsTableGUI.php");
56 $this->details_obj_id,
59 $this->ctrl->forwardCommand($table_gui);
62 case 'iltrsummarytablegui':
63 $cmd =
"showObjectSummary";
64 if (!$this->details_id) {
65 $this->details_id = ROOT_FOLDER_ID;
68 include_once
'./Services/Tracking/classes/repository_statistics/class.ilTrSummaryTableGUI.php';
70 $this->ctrl->forwardCommand($table_gui);
73 case 'iltrmatrixtablegui':
74 include_once
'./Services/Tracking/classes/repository_statistics/class.ilTrMatrixTableGUI.php';
76 $this->ctrl->forwardCommand($table_gui);
79 case 'iltrobjectuserspropstablegui':
80 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
82 include_once
'./Services/Tracking/classes/repository_statistics/class.ilTrObjectUsersPropsTableGUI.php';
84 $this->ctrl->forwardCommand($table_gui);
99 if (isset(
$_GET[
"userdetails_id"])) {
104 include_once
'./Services/Tracking/classes/class.ilLearningProgressAccess.php';
107 $this->ctrl->returnToParent($this);
110 $this->
__updateUser($_REQUEST[
'user_id'], $this->details_obj_id);
113 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
116 if (!isset(
$_GET[
"userdetails_id"])) {
117 $this->ctrl->redirect($this,
"details");
119 $this->ctrl->setParameter($this,
"userdetails_id", (
int)
$_GET[
"userdetails_id"]);
120 $this->ctrl->redirect($this,
"userdetails");
126 global $ilObjDataCache, $rbacsystem;
129 if (isset(
$_GET[
"userdetails_id"])) {
132 $cancel =
"userdetails";
138 include_once
'./Services/Tracking/classes/class.ilLearningProgressAccess.php';
141 $this->ctrl->returnToParent($this);
144 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
146 $info->setFormAction($this->ctrl->getFormAction($this));
151 $this->tpl->setVariable(
"ADM_CONTENT", $this->
__showEditUser((
int) $_GET[
'user_id'], $parent_id, $cancel, $sub_id) .
"<br />" .
$info->getHTML());
158 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_loo.html',
'Services/Tracking');
161 if ($this->
getMode() == self::LP_CONTEXT_PERSONAL_DESKTOP or
162 $this->
getMode() == self::LP_CONTEXT_ADMINISTRATION) {
165 $ilToolbar->addButton(
166 $this->lng->txt(
'trac_view_list'),
167 $this->ctrl->getLinkTarget($this,
'show')
182 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
184 $info->setFormAction($this->ctrl->getFormAction($this));
186 $this->tpl->setCurrentBlock(
"info");
187 $this->tpl->setVariable(
"INFO_TABLE",
$info->getHTML());
188 $this->tpl->parseCurrentBlock();
201 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
203 include_once
"Services/Tracking/classes/repository_statistics/class.ilTrObjectUsersPropsTableGUI.php";
206 $this->tpl->setVariable(
"LP_OBJECTS", $gui->getHTML());
220 global $ilObjDataCache, $ilToolbar;
227 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
229 $print_view = (bool)
$_GET[
'prt'];
232 $ilToolbar->addButton($this->lng->txt(
'trac_view_list'), $this->ctrl->getLinkTarget($this,
'details'));
235 $user_id = (int)
$_GET[
"user_id"];
236 $this->ctrl->setParameter($this,
"user_id", $user_id);
247 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_loo.html',
'Services/Tracking');
249 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
251 $info->setFormAction($this->ctrl->getFormAction($this));
255 $this->tpl->setVariable(
"INFO_TABLE",
$info->getHTML());
257 include_once(
"./Services/Tracking/classes/repository_statistics/class.ilTrUserObjectsPropsTableGUI.php");
262 $this->details_obj_id,
266 $this->tpl->setVariable(
'LP_OBJECTS',
$table->getHTML());
281 $this->ctrl->saveParameter($this,
'offset', 0);
285 case self::LP_CONTEXT_REPOSITORY:
296 global
$ilUser,$ilObjDataCache;
298 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_list_objects.html',
'Services/Tracking');
300 include_once(
"./Services/Tracking/classes/repository_statistics/class.ilTrSummaryTableGUI.php");
303 $this->tpl->setVariable(
"LP_OBJECTS", $lp_table->getHTML());
309 global $ilObjDataCache;
311 if (!$a_details_id) {
315 $_GET[
'details_id'] = $a_details_id;
316 $this->details_id = $a_details_id;
317 $this->details_obj_id = $ilObjDataCache->lookupObjId($this->details_id);
318 $this->details_type = $ilObjDataCache->lookupType($this->details_obj_id);
320 include_once
'Services/Object/classes/class.ilObjectLP.php';
322 $this->details_mode = $olp->getCurrentMode();
331 global
$tpl, $ilToolbar;
344 include_once(
"./Services/Tracking/classes/repository_statistics/class.ilTrSummaryTableGUI.php");
347 $tpl->setContent(
$table->getHTML());
349 $tpl->setVariable(
"ADM_CONTENT",
$table->getHTML());
350 echo $tpl->get(
"DEFAULT",
false,
false,
false,
false,
false,
false);
368 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_loo.html',
'Services/Tracking');
370 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
372 $info->setFormAction($this->ctrl->getFormAction($this));
374 $this->tpl->setCurrentBlock(
"info");
375 $this->tpl->setVariable(
"INFO_TABLE",
$info->getHTML());
376 $this->tpl->parseCurrentBlock();
379 include_once(
"./Services/Tracking/classes/repository_statistics/class.ilTrMatrixTableGUI.php");
381 $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)
if(empty($password)) $table
__updateUser($user_id, $obj_id)
static getInstance($a_obj_id)