5include_once(
"./Services/Object/classes/class.ilObjectAccess.php");
 
    6include_once 
'Services/AccessControl/interfaces/interface.ilConditionHandling.php';
 
   25        include_once 
'./Services/AccessControl/classes/class.ilConditionHandler.php';
 
   41    public static function checkCondition($a_trigger_obj_id, $a_operator, $a_value, $a_usr_id)
 
   43        switch ($a_operator) {
 
   46                include_once 
'./Services/Tracking/classes/class.ilLPStatus.php';
 
   52                include_once 
'./Services/Tracking/classes/class.ilLPStatus.php';
 
   73    public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id = 
"")
 
   77        if ($a_user_id == 
"") {
 
   85                    && !$rbacsystem->checkAccessOfUser($a_user_id, 
'write', $a_ref_id)) {
 
   92        switch ($a_permission) {
 
   95                    (!$rbacsystem->checkAccessOfUser($a_user_id, 
'write', $a_ref_id))) {
 
  121            array(
"permission" => 
"read", 
"cmd" => 
"view", 
"lang_var" => 
"show",
"default" => 
true),
 
  122            array(
"permission" => 
"write", 
"cmd" => 
"editContent", 
"lang_var" => 
"edit_content"),
 
  123            array(
"permission" => 
"write", 
"cmd" => 
"edit", 
"lang_var" => 
"settings")
 
  128            if ($offlineMode == 
false) {
 
  129                $commands[]=array(
"permission" => 
"read", 
"cmd" => 
"offlineModeStart", 
"lang_var" => 
"offline_mode");
 
  131                $commands[]=array(
"permission" => 
"read", 
"cmd" => 
"offlineModeStop", 
"lang_var" => 
"offline_mode");
 
  132                $commands[0]=array(
"permission" => 
"read", 
"cmd" => 
"offlineModeView", 
"lang_var" => 
"show",
"default" => 
true);
 
  150        $set = 
$ilDB->queryF(
 
  151            'SELECT c_online FROM sahs_lm WHERE id = %s',
 
  155        $rec = 
$ilDB->fetchAssoc($set);
 
  167        $set = 
$ilDB->queryF(
 
  168            'SELECT * FROM sahs_lm WHERE id = %s',
 
  172        $rec = 
$ilDB->fetchAssoc($set);
 
  174        return $rec[
"editable"];
 
  185        $t_arr = explode(
"_", $a_target);
 
  187        if ($t_arr[0] != 
"sahs" || ((
int) $t_arr[1]) <= 0) {
 
  191        if ($ilAccess->checkAccess(
"visible", 
"", $t_arr[1]) || $ilAccess->checkAccess(
"read", 
"", $t_arr[1])) {
 
  205        $lm_dir = $lm_data_dir . DIRECTORY_SEPARATOR . 
"lm_" . $a_id;
 
  219        $uid = ($usr_id) ? $usr_id : 
$ilUser->getId();
 
  223        include_once 
"./Services/Certificate/classes/class.ilCertificate.php";
 
  226            include_once 
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php";
 
  228            include_once(
"Services/Tracking/classes/class.ilObjUserTracking.php");
 
  230                include_once 
"./Services/Tracking/classes/class.ilLPStatus.php";
 
  237                        include_once 
"./Modules/ScormAicc/classes/class.ilObjSCORMLearningModule.php";
 
  243                        include_once 
"./Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModule.php";
 
  276        $set = 
$ilDB->queryF(
 
  277            'SELECT offline_mode FROM sahs_user WHERE obj_id = %s AND user_id = %s',
 
  278            array(
'integer',
'integer'),
 
  279            array($a_obj_id, $user_id)
 
  281        $rec = 
$ilDB->fetchAssoc($set);
 
  282        if ($rec[
"offline_mode"] == 
"offline") {
 
  295        $set = 
$ilDB->queryF(
 
  296            'SELECT offline_mode FROM sahs_lm WHERE id = %s',
 
  300        $rec = 
$ilDB->fetchAssoc($set);
 
An exception for terminatinating execution or to throw for unit testing.
const IL_NO_OBJECT_ACCESS
static isObjectActive($a_obj_id)
static _lookupStatus($a_obj_id, $a_user_id, $a_create=true)
Lookup status.
static _hasUserCompleted($a_obj_id, $a_user_id)
Lookup user object completion.
const LP_STATUS_FAILED_NUM
Class ilObjContentObjectAccess.
static _getCommands($a_obj_id=null)
get commands
static _checkGoto($a_target)
check whether goto script will succeed
static checkCondition($a_trigger_obj_id, $a_operator, $a_value, $a_usr_id)
check condition
static _lookupEditable($a_obj_id)
Lookup editable.
static _isOffline($a_obj_id)
Type-specific implementation of general status.
static _lookupOnline($a_id)
check wether learning module is online
static _lookupUserIsOfflineMode($a_obj_id)
Checks offlineMode and returns false if.
static getConditionOperators()
Get possible conditions operaditors.
static _lookupOfflineModeAvailable($a_id)
check wether learning module is online
static _lookupUserCertificate($obj_id, $usr_id=0)
Checks whether a certificate exists for the active user or not.
_checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")
checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAcce...
static _lookupDiskUsage($a_id)
Returns the number of bytes used on the harddisk by the learning module with the specified object id.
static _lookupSubType($a_obj_id)
lookup subtype id (scorm, )
static _getCourseCompletionForUser($a_id, $a_user)
Get the completion of a SCORM module for a given user.
static _getCourseCompletionForUser($a_id, $a_user)
Get the completion of a SCORM module for a given user.
static _enabledLearningProgress()
check wether learing progress is enabled or not
static getWebspaceDir($mode="filesystem")
get webspace directory
static yn2tf($a_yn)
convert "y"/"n" to true/false
static dirsize($directory)
get size of a directory or a file.
Interface for condition handling.