ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilLearningProgressAccess Class Reference

Learning progress access checks. More...

+ Collaboration diagram for ilLearningProgressAccess:

Static Public Member Functions

static checkAccess ($a_ref_id, $a_allow_only_read=true)
 check access to learning progress

Detailed Description

Learning progress access checks.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 33 of file class.ilLearningProgressAccess.php.

Member Function Documentation

static ilLearningProgressAccess::checkAccess (   $a_ref_id,
  $a_allow_only_read = true 
)
static

check access to learning progress

Parameters
int$a_ref_idreference ifd of object
bool$a_allow_only_readread access is sufficient (see courses/groups)
Returns

Definition at line 43 of file class.ilLearningProgressAccess.php.

References $ilUser, ilObjUserTracking\_enabledLearningProgress(), ilObjUserTracking\_hasLearningProgressLearner(), ilObject\_lookupObjId(), and ilObjectLP\getInstance().

Referenced by ilObjContentObjectGUI\addTabs(), ilLMExplorer\checkLPIcon(), ilLMExplorerGUI\checkLPIcon(), ilLearningProgressGUI\editManual(), ilObjFolderGUI\getTabs(), ilObjSAHSLearningModuleGUI\getTabs(), ilObjFileBasedLMGUI\getTabs(), ilObjExerciseGUI\getTabs(), ilObjGroupGUI\getTabs(), ilObjCourseGUI\getTabs(), ilObjTestGUI\getTabs(), ilObjSCORMLearningModuleGUI\offlineModeManager(), ilObjContentObjectGUI\setilLMMenu(), ilSAHSPresentationGUI\setInfoTabs(), and ilLearningProgressGUI\updateManual().

{
global $ilUser,$ilAccess;
if($ilUser->getId() == ANONYMOUS_USER_ID)
{
return false;
}
include_once("Services/Tracking/classes/class.ilObjUserTracking.php");
{
return false;
}
if($ilAccess->checkAccess('edit_learning_progress','',$a_ref_id))
{
return true;
}
{
return false;
}
include_once './Services/Object/classes/class.ilObjectLP.php';
if(!$olp->isActive())
{
return false;
}
if(!$ilAccess->checkAccess('read','',$a_ref_id))
{
return false;
}
if($a_allow_only_read)
{
return true;
}
return false;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: