4 include_once(
"./Services/Repository/classes/class.ilObjectPluginAccess.php");
5 include_once(
"class.ilCloudConnector.php");
6 include_once(
"class.ilObjCloud.php");
24 array(
"permission" =>
"read",
"cmd" =>
"render",
"lang_var" =>
"show",
"default" =>
true),
25 array(
"permission" =>
"write",
"cmd" =>
"editSettings",
"lang_var" =>
"settings"),
41 public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
45 $rbacsystem = $DIC[
'rbacsystem'];
46 $rbacreview = $DIC[
'rbacreview'];
59 if ($a_user_id ==
"") {
71 switch ($a_permission) {
92 $ilAccess = $DIC[
'ilAccess'];
94 $t_arr = explode(
"_", $a_target);
96 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1])) {
112 $ilDB = $DIC[
'ilDB'];
114 if (!isset(self::$access_cache[$a_id][
"online"])) {
115 $set =
$ilDB->query(
"SELECT is_online FROM il_cld_data " .
" WHERE id = " .
$ilDB->quote($a_id,
"integer"));
116 $rec =
$ilDB->fetchAssoc($set);
117 self::$access_cache[$a_id][
"online"] = (boolean) ($rec[
"is_online"]);
120 return self::$access_cache[$a_id][
"online"];
132 $ilDB = $DIC[
'ilDB'];
134 if (!isset(self::$access_cache[$a_id][
"auth_status"])) {
135 $set =
$ilDB->query(
"SELECT auth_complete FROM il_cld_data " .
" WHERE id = " .
$ilDB->quote($a_id,
"integer"));
136 $rec =
$ilDB->fetchAssoc($set);
137 self::$access_cache[$a_id][
"auth_status"] = (boolean) $rec[
"auth_complete"];
140 return self::$access_cache[$a_id][
"auth_status"];
static _checkGoto($a_target)
static checkServiceActive($name)
static checkOnline($a_id)
static checkAuthStatus($a_id)
_checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")