17 include_once
'./Services/Tracking/classes/class.ilLearningProgressBaseGUI.php';
18 include_once
'./Services/Tracking/classes/class.ilLPStatusWrapper.php';
36 $this->ctrl->saveParameter($this,
'details_id',
$_REQUEST[
'details_id']);
47 $this->ctrl->setReturn($this,
"show");
48 $this->ctrl->saveParameter($this,
'user_id',$this->
getUserId());
49 switch($this->ctrl->getNextClass())
51 case 'illpprogresstablegui':
52 include_once
'./Services/Tracking/classes/class.ilLPProgressTableGUI.php';
54 $this->ctrl->setReturn($this,
'show');
55 $this->ctrl->forwardCommand($table_gui);
78 global $ilObjDataCache;
99 global $ilObjDataCache,
$ilCtrl, $rbacsystem;
103 if((
int)
$_GET[
'crs_id'])
105 $this->ctrl->setParameter($this,
'details_id',(
int) $_GET[
'crs_id']);
106 $this->
__showButton($this->ctrl->getLinkTarget($this,
'details'),$this->lng->txt(
'trac_view_crs'));
112 $this->
__showButton($this->ctrl->getLinkTarget($this,
'show'),$this->lng->txt(
'trac_view_list'));
122 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_progress_container.html',
'Services/Tracking');
124 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
126 $info->setFormAction($ilCtrl->getFormAction($this));
129 $this->
__appendLPDetails($info,$this->details_obj_id,$this->tracked_user->getId());
132 $this->tpl->setVariable(
"LM_INFO",$info->getHTML());
134 include_once
'./Services/Tracking/classes/class.ilLPCollectionCache.php';
138 switch($this->details_mode)
151 $personal_only = !$rbacsystem->checkAccess(
'edit_learning_progress',$this->
getRefId());
153 include_once(
"./Services/Tracking/classes/class.ilLPProgressTableGUI.php");
154 $lp_table =
new ilLPProgressTableGUI($this,
"details", $this->tracked_user, $obj_ids,
true, $this->details_mode, $personal_only, $this->details_obj_id);
155 $this->tpl->setVariable(
"LP_OBJECTS", $lp_table->getHTML());
162 global $ilUser,$ilObjDataCache,
$ilCtrl;
164 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_list_progress.html',
'Services/Tracking');
167 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
169 $info->setFormAction($ilCtrl->getFormAction($this));
173 $this->tpl->setCurrentBlock(
"info_user");
174 $this->tpl->setVariable(
"USER_INFO",$info->getHTML());
175 $this->tpl->parseCurrentBlock();
194 include_once(
"./Services/Tracking/classes/class.ilLPProgressTableGUI.php");
196 $this->tpl->setVariable(
"LP_OBJECTS", $lp_table->getHTML());
203 global $ilUser,$rbacreview;
207 $a_usr_id =
$_POST[
'user_id'];
208 $this->ctrl->setParameter($this,
'user_id',
$_POST[
'user_id']);
217 $this->tracked_user = $ilUser;
221 if(!$rbacreview->isAssigned($ilUser->getId(),SYSTEM_ROLE_ID))
223 $this->tracked_user = $ilUser;
231 global $ilObjDataCache;
241 $this->details_id = $a_details_id;
242 $this->details_obj_id = $ilObjDataCache->lookupObjId($this->details_id);
243 $this->details_type = $ilObjDataCache->lookupType($this->details_obj_id);