Class ilObjCloudAccess.
More...
|
| _checkAccess ($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="") |
|
| _checkAccess ($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="") |
| Checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) More...
|
|
| _checkCondition ($a_obj_id, $a_operator, $a_value, $a_usr_id) |
| check condition More...
|
|
◆ _checkAccess()
ilObjCloudAccess::_checkAccess |
( |
|
$a_cmd, |
|
|
|
$a_permission, |
|
|
|
$a_ref_id, |
|
|
|
$a_obj_id, |
|
|
|
$a_user_id = "" |
|
) |
| |
- Parameters
-
string | $a_cmd | |
string | $a_permission | |
int | $a_ref_id | |
int | $a_obj_id | |
string | $a_user_id | |
- Returns
- bool
Check if plugin of object is active
Check if authentication is complete. If not, only the owner of the object has access. This prevents the authentication of an account which does not belong to the owner.
Definition at line 40 of file class.ilObjCloudAccess.php.
References $DIC, $ilUser, checkAuthStatus(), checkOnline(), and ilCloudConnector\checkServiceActive().
44 $rbacsystem = $DIC[
'rbacsystem'];
45 $rbacreview = $DIC[
'rbacreview'];
58 if ($a_user_id ==
"") {
70 switch ($a_permission) {
static checkServiceActive($name)
static checkOnline($a_id)
static checkAuthStatus($a_id)
◆ _checkGoto()
static ilObjCloudAccess::_checkGoto |
( |
|
$a_target | ) |
|
|
static |
- Parameters
-
- Returns
- bool
Definition at line 87 of file class.ilObjCloudAccess.php.
References $DIC.
90 $ilAccess = $DIC[
'ilAccess'];
92 $t_arr = explode(
"_", $a_target);
94 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1])) {
◆ _getCommands()
static ilObjCloudAccess::_getCommands |
( |
| ) |
|
|
static |
Definition at line 21 of file class.ilObjCloudAccess.php.
References array.
Referenced by ilObjCloudListGUI\init().
24 array(
"permission" =>
"read",
"cmd" =>
"render",
"lang_var" =>
"show",
"default" =>
true ),
25 array(
"permission" =>
"write",
"cmd" =>
"editSettings",
"lang_var" =>
"settings" ),
Create styles array
The data for the language used.
◆ checkAuthStatus()
static ilObjCloudAccess::checkAuthStatus |
( |
|
$a_id | ) |
|
|
static |
- Parameters
-
- Returns
- mixed
Definition at line 125 of file class.ilObjCloudAccess.php.
References $DIC, and $ilDB.
Referenced by _checkAccess(), and ilObjCloudListGUI\getProperties().
128 $ilDB = $DIC[
'ilDB'];
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"];
◆ checkOnline()
static ilObjCloudAccess::checkOnline |
( |
|
$a_id | ) |
|
|
static |
- Parameters
-
- Returns
- mixed
Definition at line 106 of file class.ilObjCloudAccess.php.
References $DIC, and $ilDB.
Referenced by _checkAccess(), and ilObjCloudListGUI\getProperties().
109 $ilDB = $DIC[
'ilDB'];
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"];
◆ $access_cache
ilObjCloudAccess::$access_cache = array() |
|
staticprotected |
The documentation for this class was generated from the following file: