ILIAS  Release_3_10_x_branch Revision 61812
 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)
 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)
static

check access to learning progress

Parameters
int$a_ref_idreference ifd of object
Returns

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

References ilObjUserTracking\_enabledLearningProgress(), ilLPObjSettings\_lookupMode(), ilObject\_lookupObjId(), and LP_MODE_DEACTIVATED.

Referenced by ilObjFolderGUI\getTabs(), ilObjSAHSLearningModuleGUI\getTabs(), ilObjFileBasedLMGUI\getTabs(), ilObjExerciseGUI\getTabs(), ilObjGroupGUI\getTabs(), ilObjContentObjectGUI\getTabs(), ilObjCourseGUI\getTabs(), and ilObjTestGUI\getTabs().

{
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;
}
include_once './Services/Tracking/classes/class.ilLPObjSettings.php';
{
return false;
}
if(!$ilAccess->checkAccess('read','',$a_ref_id))
{
return false;
}
return true;
}

+ 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: