24 include_once(
"classes/class.ilObjectAccess.php");
49 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
51 global $ilUser,
$lng, $rbacsystem, $ilAccess;
55 $a_user_id = $ilUser->getId();
63 && !$rbacsystem->checkAccessOfUser($a_user_id,
'write',$a_ref_id))
71 switch ($a_permission)
75 (!$rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id)))
103 array(
"permission" =>
"read",
"cmd" =>
"view",
"lang_var" =>
"show",
105 array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"edit"),
122 $set = $ilDB->queryF(
'SELECT * FROM sahs_lm WHERE id = %s',
123 array(
'integer'), array($a_id));
124 $rec = $ilDB->fetchAssoc($set);
136 $set = $ilDB->queryF(
'SELECT * FROM sahs_lm WHERE id = %s',
137 array(
'integer'), array($a_obj_id));
138 $rec = $ilDB->fetchAssoc($set);
140 return $rec[
"editable"];
151 $t_arr = explode(
"_", $a_target);
153 if ($t_arr[0] !=
"sahs" || ((
int) $t_arr[1]) <= 0)
158 if ($ilAccess->checkAccess(
"visible",
"", $t_arr[1]))
173 $lm_dir = $lm_data_dir.DIRECTORY_SEPARATOR.
"lm_".$a_id;
186 $certificatefile = CLIENT_WEB_DIR .
"/certificates/scorm/" . $a_id .
"/certificate.xml";
187 if (@file_exists($certificatefile))
213 include_once
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php";
215 include_once(
"Services/Tracking/classes/class.ilObjUserTracking.php");
218 include_once
"./Services/Tracking/classes/class.ilLPStatusWrapper.php";
220 if (in_array($uid, $completed_user_ids_array))
231 include_once
"./Modules/ScormAicc/classes/class.ilObjSCORMLearningModule.php";
238 include_once
"./Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModule.php";