17 include_once
'./Services/Tracking/classes/class.ilLearningProgressBaseGUI.php';
18 include_once
'./Services/Tracking/classes/class.ilLPStatusWrapper.php';
35 $this->ctrl->saveParameter($this,
'details_id',
$_REQUEST[
'details_id']);
46 $this->ctrl->setReturn($this,
"show");
47 $this->ctrl->saveParameter($this,
'user_id',$this->
getUserId());
48 switch($this->ctrl->getNextClass())
50 case 'illpprogresstablegui':
51 include_once
'./Services/Tracking/classes/class.ilLPProgressTableGUI.php';
53 $this->ctrl->setReturn($this,
'show');
54 $this->ctrl->forwardCommand($table_gui);
67 global $ilObjDataCache;
88 global $ilObjDataCache,
$ilCtrl,$rbacsystem;
92 if((
int)
$_GET[
'crs_id'])
94 $this->ctrl->setParameter($this,
'details_id',(
int) $_GET[
'crs_id']);
95 $this->
__showButton($this->ctrl->getLinkTarget($this,
'details'),$this->lng->txt(
'trac_view_crs'));
101 $this->
__showButton($this->ctrl->getLinkTarget($this,
'show'),$this->lng->txt(
'trac_view_list'));
104 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_progress_container.html',
'Services/Tracking');
106 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
108 $info->setFormAction($ilCtrl->getFormAction($this));
111 $this->
__appendLPDetails($info,$this->details_obj_id,$this->tracked_user->getId());
114 $this->tpl->setVariable(
"LM_INFO",$info->getHTML());
116 include_once
'./Services/Tracking/classes/class.ilLPCollectionCache.php';
120 switch($this->details_mode)
133 $personal_only = !$rbacsystem->checkAccess(
'edit_learning_progress',$this->
getRefId());
135 include_once(
"./Services/Tracking/classes/class.ilLPProgressTableGUI.php");
136 $lp_table =
new ilLPProgressTableGUI($this,
"details", $this->tracked_user, $obj_ids,
true, $this->details_mode, $personal_only, $this->details_obj_id);
137 $this->tpl->setVariable(
"LP_OBJECTS", $lp_table->getHTML());
146 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_list_progress.html',
'Services/Tracking');
149 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
151 $info->setFormAction($ilCtrl->getFormAction($this));
155 $this->tpl->setCurrentBlock(
"info_user");
156 $this->tpl->setVariable(
"USER_INFO",$info->getHTML());
157 $this->tpl->parseCurrentBlock();
160 include_once(
"./Services/Tracking/classes/class.ilLPProgressTableGUI.php");
162 $this->tpl->setVariable(
"LP_OBJECTS", $lp_table->getHTML());
169 global
$ilUser,$rbacreview,$rbacsystem;
173 $a_usr_id =
$_POST[
'user_id'];
174 $this->ctrl->setParameter($this,
'user_id',
$_POST[
'user_id']);
193 if(!$rbacreview->isAssigned($ilUser->getId(),SYSTEM_ROLE_ID))
203 global $ilObjDataCache;
213 $this->details_id = $a_details_id;
214 $this->details_obj_id = $ilObjDataCache->lookupObjId($this->details_id);
215 $this->details_type = $ilObjDataCache->lookupType($this->details_obj_id);