Inheritance diagram for ilLearningProgressBaseGUI:Public Member Functions | |
| ilLearningProgressBaseGUI ($a_mode, $a_ref_id=0, $a_usr_id=0) | |
| activePDF () | |
| __checkPDF () | |
| isAnonymized () | |
| isObjectAnonymized () | |
| getMode () | |
| getRefId () | |
| getObjId () | |
| getUserId () | |
| activateStatistics ($a_act=true) | |
| __getDefaultCommand () | |
| __setSubTabs ($a_active) | |
| __buildFooter () | |
| __buildHeader () | |
| __insertPath (&$a_tpl, $a_ref_id) | |
| insert path | |
| __showImageByStatus (&$tpl, $a_status, $tpl_prefix="") | |
| & | __initTableGUI () |
| __showObjectDetails (&$info, $item_id=0) | |
| show details about current object. | |
| __appendLPDetails (&$info, $item_id, $user_id) | |
| __readStatus ($a_obj_id, $user_id) | |
| __showButton ($a_link, $a_text, $a_target= '') | |
| __sort ($a_ids, $a_table, $a_field, $a_id_name) | |
| Function that sorts ids by a given table field using WHERE IN E.g: __sort(array(6,7),'usr_data','lastname','usr_id') => sorts by lastname. | |
| __getPercent ($max, $reached) | |
| __readItemStatusInfo ($a_items) | |
| __getLegendHTML () | |
Data Fields | |
| $tpl = null | |
| $ctrl = null | |
| $lng = null | |
| $ref_id = 0 | |
| $mode = 0 | |
| $statistics_activated = false | |
Definition at line 52 of file class.ilLearningProgressBaseGUI.php.
| ilLearningProgressBaseGUI::__appendLPDetails | ( | &$ | info, | |
| $ | item_id, | |||
| $ | user_id | |||
| ) |
Definition at line 382 of file class.ilLearningProgressBaseGUI.php.
References $comment, __readStatus(), ilLearningProgress::_getProgress(), ilLPMarks::_lookupComment(), ilLPMarks::_lookupMark(), and ilFormat::_secondsToString().
Referenced by ilLPListOfProgressGUI::__showContainerList(), ilLPListOfProgressGUI::__showDetails(), and ilLPListOfObjectsGUI::editUser().
{
global $ilObjDataCache;
$type = $ilObjDataCache->lookupType($item_id);
// Section learning_progress
$info->addSection($this->lng->txt('trac_learning_progress'));
switch($type)
{
case 'lm':
case 'htlm':
include_once 'Services/Tracking/classes/class.ilLearningProgress.php';
$progress = ilLearningProgress::_getProgress($user_id,$item_id);
if($progress['access_time'])
{
$info->addProperty($this->lng->txt('last_access'),date('Y-m-d H:i:s',$progress['access_time']));
}
else
{
$info->addProperty($this->lng->txt('last_access'),$this->lng->txt('trac_not_accessed'));
}
$info->addProperty($this->lng->txt('trac_visits'),(int) $progress['visits']);
if($type == 'lm')
{
$info->addProperty($this->lng->txt('trac_spent_time'),ilFormat::_secondsToString($progress['spent_time']));
}
$info->addProperty($this->lng->txt('trac_status'),$this->lng->txt($this->__readStatus($item_id,$user_id)));
break;
case 'exc':
case 'tst':
case 'crs':
case 'sahs':
case 'grp':
$info->addProperty($this->lng->txt('trac_status'),$this->lng->txt($this->__readStatus($item_id,$user_id)));
break;
}
include_once 'Services/Tracking/classes/class.ilLPMarks.php';
if(strlen($mark = ilLPMarks::_lookupMark($user_id,$item_id)))
{
$info->addProperty($this->lng->txt('trac_mark'),$mark);
}
if(strlen($comment = ilLPMarks::_lookupComment($user_id,$item_id)))
{
$info->addProperty($this->lng->txt('trac_comment'),$comment);
}
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilLearningProgressBaseGUI::__buildFooter | ( | ) |
Definition at line 238 of file class.ilLearningProgressBaseGUI.php.
References getMode().
Referenced by ilLearningProgressGUI::executeCommand().
{
switch($this->getMode())
{
case LP_MODE_PERSONAL_DESKTOP:
$this->tpl->show(true);
}
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilLearningProgressBaseGUI::__buildHeader | ( | ) |
Definition at line 248 of file class.ilLearningProgressBaseGUI.php.
References ilUtil::getImagePath(), getMode(), ilUtil::infoPanel(), and ilUtil::sendInfo().
Referenced by ilLearningProgressGUI::executeCommand().
{
if($this->getMode() == LP_MODE_PERSONAL_DESKTOP)
{
$this->tpl->setCurrentBlock("header_image");
$this->tpl->setVariable("IMG_HEADER", ilUtil::getImagePath("icon_pd_b.gif"));
$this->tpl->parseCurrentBlock();
$this->tpl->setVariable("HEADER",$this->lng->txt("personal_desktop"));
// set locator
/*
$this->tpl->setVariable("TXT_LOCATOR", $this->lng->txt("locator"));
$this->tpl->touchBlock("locator_separator");
$this->tpl->touchBlock("locator_item");
//$this->tpl->setCurrentBlock("locator_item");
//$this->tpl->setVariable("ITEM", $this->lng->txt("personal_desktop"));
//$this->tpl->setVariable("LINK_ITEM",
// $this->ctrl->getLinkTargetByClass("ilpersonaldesktopgui"));
//$this->tpl->parseCurrentBlock();
$this->tpl->setCurrentBlock("locator_item");
$this->tpl->setVariable("ITEM", $this->lng->txt("learning_progress"));
$this->tpl->setVariable("LINK_ITEM",
$this->ctrl->getLinkTargetByClass('illearningprogressgui'));
$this->tpl->parseCurrentBlock();
*/
// catch feedback message
ilUtil::sendInfo();
// display infopanel if something happened
ilUtil::infoPanel();
}
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilLearningProgressBaseGUI::__checkPDF | ( | ) |
Definition at line 88 of file class.ilLearningProgressBaseGUI.php.
Referenced by ilLPListOfObjectsGUI::ilLPListOfObjectsGUI(), and ilLPListOfProgressGUI::ilLPListOfProgressGUI().
{
include_once 'Services/WebServices/RPC/classes/class.ilRPCServerSettings.php';
$rpc_server = new ilRPCServerSettings();
$this->active_pdf = $rpc_server->getHost() ? true : false;
}
Here is the caller graph for this function:| ilLearningProgressBaseGUI::__getDefaultCommand | ( | ) |
Definition at line 150 of file class.ilLearningProgressBaseGUI.php.
References $cmd.
Referenced by ilLPListOfSettingsGUI::executeCommand(), ilLPListOfProgressGUI::executeCommand(), ilLPListOfObjectsGUI::executeCommand(), and ilLMStatisticsGUI::executeCommand().
Here is the caller graph for this function:| ilLearningProgressBaseGUI::__getLegendHTML | ( | ) |
Definition at line 549 of file class.ilLearningProgressBaseGUI.php.
References $lng, $tpl, and ilUtil::getImagePath().
Referenced by ilLPListOfProgressGUI::__showContainerList(), ilLPListOfProgressGUI::__showProgressList(), and ilLPListOfObjectsGUI::__showUsersList().
{
global $lng;
$tpl = new ilTemplate("tpl.lp_legend.html", true, true, "Services/Tracking");
$tpl->setVariable("IMG_NOT_ATTEMPTED",
ilUtil::getImagePath("scorm/not_attempted.gif"));
$tpl->setVariable("IMG_IN_PROGRESS",
ilUtil::getImagePath("scorm/incomplete.gif"));
$tpl->setVariable("IMG_COMPLETED",
ilUtil::getImagePath("scorm/completed.gif"));
$tpl->setVariable("IMG_FAILED",
ilUtil::getImagePath("scorm/failed.gif"));
$tpl->setVariable("TXT_NOT_ATTEMPTED",
$lng->txt("trac_not_attempted"));
$tpl->setVariable("TXT_IN_PROGRESS",
$lng->txt("trac_in_progress"));
$tpl->setVariable("TXT_COMPLETED",
$lng->txt("trac_completed"));
$tpl->setVariable("TXT_FAILED",
$lng->txt("trac_failed"));
return $tpl->get();
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilLearningProgressBaseGUI::__getPercent | ( | $ | max, | |
| $ | reached | |||
| ) |
Definition at line 513 of file class.ilLearningProgressBaseGUI.php.
{
if(!$max)
{
return "0%";
}
return sprintf("%.2f%%",$reached / $max * 100);
}
| & ilLearningProgressBaseGUI::__initTableGUI | ( | ) |
Definition at line 343 of file class.ilLearningProgressBaseGUI.php.
Referenced by ilLMStatisticsGUI::__showSearchGroupTable(), ilLMStatisticsGUI::__showSearchRoleTable(), and ilLMStatisticsGUI::__showSearchUserTable().
{
include_once "./Services/Table/classes/class.ilTableGUI.php";
return new ilTableGUI(0,false);
}
Here is the caller graph for this function:| ilLearningProgressBaseGUI::__insertPath | ( | &$ | a_tpl, | |
| $ | a_ref_id | |||
| ) |
insert path
Definition at line 286 of file class.ilLearningProgressBaseGUI.php.
References $data.
{
global $tree;
$path_arr = $tree->getPathFull($a_ref_id);
$counter = 0;
foreach($tree->getPathFull($a_ref_id) as $data)
{
if($counter++)
{
$path .= " -> ";
}
$path .= $data['title'];
}
$a_tpl->setCurrentBlock("path_item");
$a_tpl->setVariable("PATH_ITEM",$path);
$a_tpl->parseCurrentBlock();
$a_tpl->setCurrentBlock("path");
$a_tpl->parseCurrentBlock();
return $path;
}
| ilLearningProgressBaseGUI::__readItemStatusInfo | ( | $ | a_items | ) |
Definition at line 523 of file class.ilLearningProgressBaseGUI.php.
References ilLPCollectionCache::_getItems(), ilMDEducational::_getTypicalLearningTimeSeconds(), ilLPObjSettings::_lookupMode(), and ilLPObjSettings::_lookupVisits().
{
global $ilObjDataCache;
foreach($a_items as $item_id)
{
$this->obj_data[$item_id]['mode'] = ilLPObjSettings::_lookupMode($item_id);
$this->obj_data[$item_id]['type'] = $ilObjDataCache->lookupType($item_id);
if($this->obj_data[$item_id]['mode'] == LP_MODE_TLT)
{
include_once './Services/MetaData/classes/class.ilMDEducational.php';
$this->obj_data[$item_id]['tlt'] = ilMDEducational::_getTypicalLearningTimeSeconds($item_id);
}
if($this->obj_data[$item_id]['mode'] == LP_MODE_VISITS)
{
include_once './Services/Tracking/classes/class.ilLPObjSettings.php';
$this->obj_data[$item_id]['visits'] = ilLPObjSettings::_lookupVisits($item_id);
}
if($this->obj_data[$item_id]['mode'] == LP_MODE_SCORM)
{
include_once './Services/Tracking/classes/class.ilLPCollectionCache.php';
$this->obj_data[$item_id]['scos'] = count(ilLPCollectionCache::_getItems($item_id));
}
}
}
Here is the call graph for this function:| ilLearningProgressBaseGUI::__readStatus | ( | $ | a_obj_id, | |
| $ | user_id | |||
| ) |
Definition at line 435 of file class.ilLearningProgressBaseGUI.php.
References ilLPStatusWrapper::_getCompleted(), ilLPStatusWrapper::_getFailed(), and ilLPStatusWrapper::_getInProgress().
Referenced by __appendLPDetails().
{
include_once 'Services/Tracking/classes/class.ilLPStatusWrapper.php';
if(in_array($user_id,ilLPStatusWrapper::_getInProgress($a_obj_id)))
{
return $status = LP_STATUS_IN_PROGRESS;
}
elseif(in_array($user_id,ilLPStatusWrapper::_getCompleted($a_obj_id)))
{
return $status = LP_STATUS_COMPLETED;
}
elseif(in_array($user_id,ilLPStatusWrapper::_getFailed($a_obj_id)))
{
return $status = LP_STATUS_FAILED;
}
else
{
return $status = LP_STATUS_NOT_ATTEMPTED;
}
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilLearningProgressBaseGUI::__setSubTabs | ( | $ | a_active | ) |
Definition at line 159 of file class.ilLearningProgressBaseGUI.php.
References getMode(), getUserId(), and isAnonymized().
Referenced by ilLearningProgressGUI::executeCommand(), and ilLPListOfProgressGUI::show().
{
global $rbacsystem,$ilObjDataCache;
switch($this->getMode())
{
case LP_MODE_PERSONAL_DESKTOP:
$this->tabs_gui->addSubTabTarget('trac_progress',
$this->ctrl->getLinkTargetByClass('illplistofprogressgui',''),
"","","",$a_active == LP_ACTIVE_PROGRESS);
$this->tabs_gui->addSubTabTarget('trac_objects',
$this->ctrl->getLinkTargetByClass("illplistofobjectsgui",''),
"","","",$a_active == LP_ACTIVE_OBJECTS);
break;
case LP_MODE_REPOSITORY:
if($rbacsystem->checkAccess('edit_learning_progress',$this->getRefId()))
{
if($this->isAnonymized())
{
$this->ctrl->setParameterByClass('illplistofprogressgui','user_id',$this->getUserId());
$this->tabs_gui->addSubTabTarget('trac_progress',
$this->ctrl->getLinkTargetByClass('illplistofprogressgui',''),
"","","",$a_active == LP_ACTIVE_PROGRESS);
}
if(!$this->isAnonymized())
{
// Check if it is a course
$sub_tab = ($ilObjDataCache->lookupType($ilObjDataCache->lookupObjId($this->getRefId())) == 'crs') ?
'trac_crs_objects' :
'trac_objects';
$this->tabs_gui->addSubTabTarget($sub_tab,
$this->ctrl->getLinkTargetByClass("illplistofobjectsgui",''),
"","","",$a_active == LP_ACTIVE_OBJECTS);
}
if ($this->statistics_activated)
{
$this->tabs_gui->addSubTabTarget('trac_lm_statistics',
$this->ctrl->getLinkTargetByClass('illmstatisticsgui',''),
"","","",$a_active == LP_ACTIVE_LM_STATISTICS);
}
$this->tabs_gui->addSubTabTarget('trac_settings',
$this->ctrl->getLinkTargetByClass('illplistofsettingsgui',''),
"","","",$a_active == LP_ACTIVE_SETTINGS);
}
break;
case LP_MODE_ADMINISTRATION:
$this->tabs_gui->addSubTabTarget('trac_progress',
$this->ctrl->getLinkTargetByClass('illplistofprogressgui',''),
"","","",$a_active == LP_ACTIVE_PROGRESS);
$this->tabs_gui->addSubTabTarget('trac_objects',
$this->ctrl->getLinkTargetByClass("illplistofobjectsgui",''),
"","","",$a_active == LP_ACTIVE_OBJECTS);
break;
case LP_MODE_USER_FOLDER:
// No tabs default class is lpprogressgui
break;
default:
die ('No valid mode given');
break;
}
return true;
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilLearningProgressBaseGUI::__showButton | ( | $ | a_link, | |
| $ | a_text, | |||
| $ | a_target = '' | |||
| ) |
Definition at line 458 of file class.ilLearningProgressBaseGUI.php.
Referenced by ilLPListOfObjectsGUI::__listObjects(), ilLPListOfProgressGUI::__showProgressList(), ilLPListOfProgressGUI::details(), ilLPListOfObjectsGUI::details(), ilLMStatisticsGUI::listUsersGroup(), ilLMStatisticsGUI::listUsersRole(), and ilLMStatisticsGUI::search().
{
$this->tpl->addBlockfile("BUTTONS", "buttons", "tpl.buttons.html");
// display button
$this->tpl->setCurrentBlock("btn_cell");
$this->tpl->setVariable("BTN_LINK",$a_link);
$this->tpl->setVariable("BTN_TXT",$a_text);
if($a_target)
{
$this->tpl->setVariable("BTN_TARGET",$a_target);
}
$this->tpl->parseCurrentBlock();
}
Here is the caller graph for this function:| ilLearningProgressBaseGUI::__showImageByStatus | ( | &$ | tpl, | |
| $ | a_status, | |||
| $ | tpl_prefix = "" | |||
| ) |
Definition at line 310 of file class.ilLearningProgressBaseGUI.php.
References $tpl, and ilUtil::getImagePath().
Referenced by ilLPListOfProgressGUI::__renderContainerRow(), ilLPListOfObjectsGUI::__renderContainerRow(), and ilLPListOfProgressGUI::__showProgressList().
{
switch($a_status)
{
case LP_STATUS_IN_PROGRESS:
case LP_STATUS_REGISTERED:
$tpl->setVariable($tpl_prefix."STATUS_IMG",ilUtil::getImagePath('scorm/incomplete.gif'));
$tpl->setVariable($tpl_prefix."STATUS_ALT",$this->lng->txt($a_status));
break;
case LP_STATUS_COMPLETED:
case LP_STATUS_PARTICIPATED:
$tpl->setVariable($tpl_prefix."STATUS_IMG",ilUtil::getImagePath('scorm/complete.gif'));
$tpl->setVariable($tpl_prefix."STATUS_ALT",$this->lng->txt($a_status));
break;
case LP_STATUS_NOT_ATTEMPTED:
case LP_STATUS_NOT_PARTICIPATED:
case LP_STATUS_NOT_REGISTERED:
$tpl->setVariable($tpl_prefix."STATUS_IMG",ilUtil::getImagePath('scorm/not_attempted.gif'));
$tpl->setVariable($tpl_prefix."STATUS_ALT",$this->lng->txt($a_status));
break;
case LP_STATUS_FAILED:
$tpl->setVariable($tpl_prefix."STATUS_IMG",ilUtil::getImagePath('scorm/failed.gif'));
$tpl->setVariable($tpl_prefix."STATUS_ALT",$this->lng->txt($a_status));
break;
}
return true;
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilLearningProgressBaseGUI::__showObjectDetails | ( | &$ | info, | |
| $ | item_id = 0 | |||
| ) |
show details about current object.
Uses an existing info_gui object.
Definition at line 354 of file class.ilLearningProgressBaseGUI.php.
References ilMDEducational::_getTypicalLearningTimeSeconds(), ilLPObjSettings::_lookupMode(), ilLPObjSettings::_lookupVisits(), ilLPObjSettings::_mode2Text(), and ilFormat::_secondsToString().
Referenced by ilLPListOfProgressGUI::__showContainerList(), and ilLPListOfProgressGUI::__showDetails().
{
global $ilObjDataCache;
$details_id = $item_id ? $item_id : $this->details_id;
// Section object details
$info->addSection($this->lng->txt('details'));
$info->addProperty($this->lng->txt('title'),$ilObjDataCache->lookupTitle($details_id));
if(strlen($desc = $ilObjDataCache->lookupDescription($details_id)))
{
$info->addProperty($this->lng->txt('description'),$desc);
}
$info->addProperty($this->lng->txt('trac_mode'),ilLPObjSettings::_mode2Text(ilLPObjSettings::_lookupMode($details_id)));
if(ilLPObjSettings::_lookupMode($details_id) == LP_MODE_VISITS)
{
$info->addProperty($this->lng->txt('trac_required_visits'),ilLPObjSettings::_lookupVisits($details_id));
}
include_once './Services/MetaData/classes/class.ilMDEducational.php';
if($seconds = ilMDEducational::_getTypicalLearningTimeSeconds($details_id))
{
$info->addProperty($this->lng->txt('meta_typical_learning_time'),ilFormat::_secondsToString($seconds));
}
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilLearningProgressBaseGUI::__sort | ( | $ | a_ids, | |
| $ | a_table, | |||
| $ | a_field, | |||
| $ | a_id_name | |||
| ) |
Function that sorts ids by a given table field using WHERE IN E.g: __sort(array(6,7),'usr_data','lastname','usr_id') => sorts by lastname.
| array | Array of ids | |
| string | table name | |
| string | table field | |
| string | id name |
protected
Definition at line 487 of file class.ilLearningProgressBaseGUI.php.
References $res.
Referenced by ilPDFPresentation::__createObjectList(), ilPDFPresentation::__createPersonalProgressList(), ilLPListOfObjectsGUI::__listObjects(), ilPDFPresentation::__showItems(), ilLPListOfProgressGUI::__showProgressList(), and ilLPListOfObjectsGUI::__showUsersList().
{
global $ilDB;
if(!$a_ids)
{
return array();
}
// use database to sort user array
$where = "WHERE ".$a_id_name." IN ('";
$where .= implode("','",$a_ids);
$where .= "') ";
$query = "SELECT ".$a_id_name." FROM ".$a_table." ".
$where.
"ORDER BY ".$a_field;
$res = $ilDB->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$ids[] = $row->$a_id_name;
}
return $ids ? $ids : array();
}
Here is the caller graph for this function:| ilLearningProgressBaseGUI::activateStatistics | ( | $ | a_act = true |
) |
Definition at line 144 of file class.ilLearningProgressBaseGUI.php.
{
$this->statistics_activated = $a_act;
}
| ilLearningProgressBaseGUI::activePDF | ( | ) |
Definition at line 83 of file class.ilLearningProgressBaseGUI.php.
Referenced by ilLPListOfObjectsGUI::__listObjects(), ilLPListOfProgressGUI::__showProgressList(), ilLPListOfProgressGUI::details(), and ilLPListOfObjectsGUI::details().
{
return $this->active_pdf;
}
Here is the caller graph for this function:| ilLearningProgressBaseGUI::getMode | ( | ) |
Definition at line 116 of file class.ilLearningProgressBaseGUI.php.
Referenced by __buildFooter(), __buildHeader(), ilLearningProgressGUI::__getNextClass(), __setSubTabs(), ilPDFPresentation::createDetails(), ilPDFPresentation::createList(), ilLPListOfProgressGUI::details(), ilLPListOfObjectsGUI::details(), ilLPListOfProgressGUI::executeCommand(), ilLPListOfObjectsGUI::executeCommand(), ilLearningProgressGUI::executeCommand(), ilLPListOfProgressGUI::show(), and ilLPListOfObjectsGUI::show().
{
return $this->mode;
}
Here is the caller graph for this function:| ilLearningProgressBaseGUI::getObjId | ( | ) |
Definition at line 126 of file class.ilLearningProgressBaseGUI.php.
Referenced by ilLPListOfSettingsGUI::__showCollectionTable(), ilLPListOfSettingsGUI::__showSCOTable(), ilLPListOfSettingsGUI::assign(), ilLPListOfSettingsGUI::deassign(), and ilLPListOfSettingsGUI::ilLPListOfSettingsGUI().
{
return $this->obj_id;
}
Here is the caller graph for this function:| ilLearningProgressBaseGUI::getRefId | ( | ) |
Definition at line 121 of file class.ilLearningProgressBaseGUI.php.
Referenced by ilPDFPresentation::__createObjectDetails(), ilLearningProgressGUI::__getNextClass(), ilLPListOfProgressGUI::__initDetails(), ilLPListOfObjectsGUI::__initDetails(), ilLPListOfSettingsGUI::__showCollectionTable(), ilPDFPresentation::__showItems(), ilLearningProgressGUI::executeCommand(), ilLPListOfProgressGUI::show(), and ilLPListOfObjectsGUI::show().
{
return $this->ref_id;
}
Here is the caller graph for this function:| ilLearningProgressBaseGUI::getUserId | ( | ) |
Definition at line 131 of file class.ilLearningProgressBaseGUI.php.
References $_GET.
Referenced by __setSubTabs(), ilLPListOfProgressGUI::executeCommand(), ilLPListOfObjectsGUI::executeCommand(), ilLearningProgressGUI::executeCommand(), and ilLPListOfProgressGUI::show().
{
if($this->usr_id)
{
return $this->usr_id;
}
if((int) $_GET['user_id'])
{
return (int) $_GET['user_id'];
}
return 0;
}
Here is the caller graph for this function:| ilLearningProgressBaseGUI::ilLearningProgressBaseGUI | ( | $ | a_mode, | |
| $ | a_ref_id = 0, |
|||
| $ | a_usr_id = 0 | |||
| ) |
Definition at line 64 of file class.ilLearningProgressBaseGUI.php.
References $ilCtrl, $lng, $tpl, and ilObjUserTracking::_enabledUserRelatedData().
Referenced by ilLearningProgressGUI::ilLearningProgressGUI(), ilLMStatisticsGUI::ilLMStatisticsGUI(), ilLPListOfObjectsGUI::ilLPListOfObjectsGUI(), ilLPListOfProgressGUI::ilLPListOfProgressGUI(), ilLPListOfSettingsGUI::ilLPListOfSettingsGUI(), and ilPDFPresentation::ilPDFPresentation().
{
global $tpl,$ilCtrl,$lng,$ilObjDataCache,$ilTabs;
$this->tpl =& $tpl;
$this->ctrl =& $ilCtrl;
$this->lng =& $lng;
$this->lng->loadLanguageModule('trac');
$this->tabs_gui =& $ilTabs;
$this->mode = $a_mode;
$this->ref_id = $a_ref_id;
$this->obj_id = $ilObjDataCache->lookupObjId($this->ref_id);
$this->obj_type = $ilObjDataCache->lookupType($this->obj_id);
$this->usr_id = $a_usr_id;
$this->anonymized = (bool) !ilObjUserTracking::_enabledUserRelatedData();
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilLearningProgressBaseGUI::isAnonymized | ( | ) |
Definition at line 95 of file class.ilLearningProgressBaseGUI.php.
Referenced by __setSubTabs().
{
return $this->anonymized;
}
Here is the caller graph for this function:| ilLearningProgressBaseGUI::isObjectAnonymized | ( | ) |
Definition at line 100 of file class.ilLearningProgressBaseGUI.php.
References ilObjTest::_lookupAnonymity().
Referenced by ilLearningProgressGUI::__getNextClass().
{
switch($this->obj_type)
{
case 'tst':
include_once './Modules/Test/classes/class.ilObjTest.php';
if(ilObjTest::_lookupAnonymity($this->obj_id))
{
return true;
}
default:
return false;
}
return false;
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilLearningProgressBaseGUI::$ctrl = null |
Definition at line 55 of file class.ilLearningProgressBaseGUI.php.
| ilLearningProgressBaseGUI::$lng = null |
Definition at line 56 of file class.ilLearningProgressBaseGUI.php.
Referenced by __getLegendHTML(), ilLearningProgressBaseGUI(), ilPDFPresentation::ilPDFPresentation(), and ilLMStatisticsGUI::show().
| ilLearningProgressBaseGUI::$mode = 0 |
Definition at line 60 of file class.ilLearningProgressBaseGUI.php.
Referenced by ilLPListOfObjectsGUI::__showEditUser().
| ilLearningProgressBaseGUI::$ref_id = 0 |
Definition at line 58 of file class.ilLearningProgressBaseGUI.php.
Referenced by ilLPListOfSettingsGUI::__showCollectionTable(), ilLPListOfSettingsGUI::assign(), and ilLPListOfSettingsGUI::deassign().
| ilLearningProgressBaseGUI::$statistics_activated = false |
Definition at line 62 of file class.ilLearningProgressBaseGUI.php.
| ilLearningProgressBaseGUI::$tpl = null |
Definition at line 54 of file class.ilLearningProgressBaseGUI.php.
Referenced by __getLegendHTML(), ilLPListOfObjectsGUI::__listObjects(), ilLPListOfSettingsGUI::__showCollectionTable(), __showImageByStatus(), ilLPListOfProgressGUI::__showProgressList(), ilLPListOfSettingsGUI::__showSCOTable(), ilLMStatisticsGUI::__showSearchGroupTable(), ilLMStatisticsGUI::__showSearchRoleTable(), ilLMStatisticsGUI::__showSearchUserTable(), ilLearningProgressBaseGUI(), and ilLMStatisticsGUI::show().
1.7.1