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 39 of file class.ilObjCloudAccess.php.
References $DIC, $ilUser, checkAuthStatus(), checkOnline(), and ilCloudConnector\checkServiceActive().
42 $rbacsystem = $DIC[
'rbacsystem'];
43 $rbacreview = $DIC[
'rbacreview'];
56 if ($a_user_id ==
"") {
68 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 85 of file class.ilObjCloudAccess.php.
References $DIC.
88 $ilAccess = $DIC[
'ilAccess'];
90 $t_arr = explode(
"_", $a_target);
92 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().
23 array(
"permission" =>
"read",
"cmd" =>
"render",
"lang_var" =>
"show",
"default" =>
true ),
24 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 122 of file class.ilObjCloudAccess.php.
References $DIC, and $ilDB.
Referenced by _checkAccess(), and ilObjCloudListGUI\getProperties().
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"];
◆ checkOnline()
static ilObjCloudAccess::checkOnline |
( |
|
$a_id | ) |
|
|
static |
- Parameters
-
- Returns
- mixed
Definition at line 104 of file class.ilObjCloudAccess.php.
References $DIC, and $ilDB.
Referenced by _checkAccess(), and ilObjCloudListGUI\getProperties().
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"];
◆ $access_cache
ilObjCloudAccess::$access_cache = array() |
|
staticprotected |
The documentation for this class was generated from the following file: