4include_once(
"./Services/Repository/classes/class.ilObjectPluginAccess.php");
5include_once(
"class.ilCloudConnector.php");
6include_once(
"class.ilObjCloud.php");
24 array(
"permission" =>
"read",
"cmd" =>
"render",
"lang_var" =>
"show",
"default" =>
true ),
25 array(
"permission" =>
"write",
"cmd" =>
"editSettings",
"lang_var" =>
"settings" ),
40 public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
44 $rbacsystem =
$DIC[
'rbacsystem'];
45 $rbacreview =
$DIC[
'rbacreview'];
54 }
catch (Exception $e) {
58 if ($a_user_id ==
"") {
70 switch ($a_permission) {
90 $ilAccess =
$DIC[
'ilAccess'];
92 $t_arr = explode(
"_", $a_target);
94 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1])) {
111 if (!isset(self::$access_cache[$a_id][
"online"])) {
112 $set =
$ilDB->query(
"SELECT is_online FROM il_cld_data " .
" WHERE id = " .
$ilDB->quote($a_id,
"integer"));
113 $rec =
$ilDB->fetchAssoc($set);
114 self::$access_cache[$a_id][
"online"] = (boolean) ($rec[
"is_online"]);
117 return self::$access_cache[$a_id][
"online"];
130 if (!isset(self::$access_cache[$a_id][
"auth_status"])) {
131 $set =
$ilDB->query(
"SELECT auth_complete FROM il_cld_data " .
" WHERE id = " .
$ilDB->quote($a_id,
"integer"));
132 $rec =
$ilDB->fetchAssoc($set);
133 self::$access_cache[$a_id][
"auth_status"] = (boolean) $rec[
"auth_complete"];
136 return self::$access_cache[$a_id][
"auth_status"];
An exception for terminatinating execution or to throw for unit testing.
static checkServiceActive($name)
static _checkGoto($a_target)
static checkOnline($a_id)
static checkAuthStatus($a_id)
_checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")
static _getCommands()
get commands