ILIAS  release_4-3 Revision
 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(), ilLPObjSettings\_lookupMode(), ilObject\_lookupObjId(), and LP_MODE_DEACTIVATED.

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

{
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/Tracking/classes/class.ilLPObjSettings.php';
{
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: