4 include_once(
"./Services/Repository/classes/class.ilObjectPluginAccess.php");
5 include_once(
"class.ilCloudConnector.php");
6 include_once(
"class.ilObjCloud.php");
23 array(
"permission" =>
"read",
"cmd" =>
"render",
"lang_var" =>
"show",
"default" =>
true ),
24 array(
"permission" =>
"write",
"cmd" =>
"editSettings",
"lang_var" =>
"settings" ),
39 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"") {
42 $rbacsystem = $DIC[
'rbacsystem'];
43 $rbacreview = $DIC[
'rbacreview'];
56 if ($a_user_id ==
"") {
68 switch ($a_permission) {
88 $ilAccess = $DIC[
'ilAccess'];
90 $t_arr = explode(
"_", $a_target);
92 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1])) {
106 $ilDB = $DIC[
'ilDB'];
108 if (!isset(self::$access_cache[$a_id][
"online"])) {
109 $set =
$ilDB->query(
"SELECT is_online FROM il_cld_data " .
" WHERE id = " .
$ilDB->quote($a_id,
"integer"));
110 $rec =
$ilDB->fetchAssoc($set);
111 self::$access_cache[$a_id][
"online"] = (boolean)($rec[
"is_online"]);
114 return self::$access_cache[$a_id][
"online"];
124 $ilDB = $DIC[
'ilDB'];
126 if (!isset(self::$access_cache[$a_id][
"auth_status"])) {
127 $set =
$ilDB->query(
"SELECT auth_complete FROM il_cld_data " .
" WHERE id = " .
$ilDB->quote($a_id,
"integer"));
128 $rec =
$ilDB->fetchAssoc($set);
129 self::$access_cache[$a_id][
"auth_status"] = (boolean)$rec[
"auth_complete"];
132 return self::$access_cache[$a_id][
"auth_status"];
static _checkGoto($a_target)
static checkServiceActive($name)
Create styles array
The data for the language used.
static checkOnline($a_id)
static checkAuthStatus($a_id)
_checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")