Class ilObjCloudAccess.
More...
|
| _getCommands () |
|
| _checkAccess ($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="") |
|
| _checkGoto ($a_target) |
|
| _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...
|
|
| _getCommands () |
| get commands More...
|
|
| _checkGoto ($a_target) |
| check whether goto script will succeed More...
|
|
| _preloadData ($a_obj_ids, $a_ref_ids) |
| Preload data. 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 $ilUser, checkAuthStatus(), checkOnline(), and ilCloudConnector\checkServiceActive().
42 global
$ilUser, $rbacsystem, $rbacreview;
60 $a_user_id = $ilUser->getId();
72 switch ($a_permission)
static checkServiceActive($name)
static checkOnline($a_id)
static checkAuthStatus($a_id)
◆ _checkGoto()
ilObjCloudAccess::_checkGoto |
( |
|
$a_target | ) |
|
- Parameters
-
- Returns
- bool
Definition at line 90 of file class.ilObjCloudAccess.php.
95 $t_arr = explode(
"_", $a_target);
97 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]))
◆ _getCommands()
ilObjCloudAccess::_getCommands |
( |
| ) |
|
Definition at line 20 of file class.ilObjCloudAccess.php.
Referenced by ilObjCloudListGUI\init().
24 array(
"permission" =>
"read",
"cmd" =>
"render",
"lang_var" =>
"show",
"default" =>
true),
25 array(
"permission" =>
"write",
"cmd" =>
"editSettings",
"lang_var" =>
"settings")
◆ checkAuthStatus()
static ilObjCloudAccess::checkAuthStatus |
( |
|
$a_id | ) |
|
|
static |
- Parameters
-
- Returns
- mixed
Definition at line 129 of file class.ilObjCloudAccess.php.
References $ilDB.
Referenced by _checkAccess(), and ilObjCloudListGUI\getProperties().
133 if (!isset(self::$access_cache[$a_id][
"auth_status"]))
135 $set = $ilDB->query(
"SELECT auth_complete FROM il_cld_data " .
136 " WHERE id = " . $ilDB->quote($a_id,
"integer")
138 $rec = $ilDB->fetchAssoc($set);
139 self::$access_cache[$a_id][
"auth_status"] = (boolean)$rec[
"auth_complete"];
141 return self::$access_cache[$a_id][
"auth_status"];
◆ checkOnline()
static ilObjCloudAccess::checkOnline |
( |
|
$a_id | ) |
|
|
static |
- Parameters
-
- Returns
- mixed
Definition at line 108 of file class.ilObjCloudAccess.php.
References $ilDB.
Referenced by _checkAccess(), and ilObjCloudListGUI\getProperties().
112 if(!isset(self::$access_cache[$a_id][
"online"]))
114 $set = $ilDB->query(
"SELECT is_online FROM il_cld_data " .
115 " WHERE id = " . $ilDB->quote($a_id,
"integer")
117 $rec = $ilDB->fetchAssoc($set);
118 self::$access_cache[$a_id][
"online"] = (boolean)($rec[
"is_online"]);
120 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: