5 include_once(
"./Services/Object/classes/class.ilObjectAccess.php");
30 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
36 $a_user_id = $ilUser->getId();
44 && !$rbacsystem->checkAccessOfUser($a_user_id,
'write',$a_ref_id))
52 switch ($a_permission)
56 (!$rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id)))
84 array(
"permission" =>
"read",
"cmd" =>
"view",
"lang_var" =>
"show",
86 array(
"permission" =>
"write",
"cmd" =>
"editContent",
"lang_var" =>
"edit_content"),
87 array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"settings")
104 $set = $ilDB->queryF(
'SELECT * FROM sahs_lm WHERE id = %s',
105 array(
'integer'), array($a_id));
106 $rec = $ilDB->fetchAssoc($set);
118 $set = $ilDB->queryF(
'SELECT * FROM sahs_lm WHERE id = %s',
119 array(
'integer'), array($a_obj_id));
120 $rec = $ilDB->fetchAssoc($set);
122 return $rec[
"editable"];
133 $t_arr = explode(
"_", $a_target);
135 if ($t_arr[0] !=
"sahs" || ((
int) $t_arr[1]) <= 0)
140 if ($ilAccess->checkAccess(
"visible",
"", $t_arr[1]))
155 $lm_dir = $lm_data_dir.DIRECTORY_SEPARATOR.
"lm_".$a_id;
174 include_once
"./Services/Certificate/classes/class.ilCertificate.php";
178 include_once
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php";
180 include_once(
"Services/Tracking/classes/class.ilObjUserTracking.php");
183 include_once
"./Services/Tracking/classes/class.ilLPStatus.php";
193 include_once
"./Modules/ScormAicc/classes/class.ilObjSCORMLearningModule.php";
200 include_once
"./Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModule.php";