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...
|
|
| canBeDelivered (ilWACPath $ilWACPath) |
| - Parameters
-
- Returns
- bool
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 41 of file class.ilObjCloudAccess.php.
References $DIC, Vendor\Package\$e, $ilUser, checkAuthStatus(), checkOnline(), and ilCloudConnector\checkServiceActive().
45 $rbacsystem = $DIC[
'rbacsystem'];
46 $rbacreview = $DIC[
'rbacreview'];
59 if ($a_user_id ==
"") {
71 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 89 of file class.ilObjCloudAccess.php.
References $DIC.
92 $ilAccess = $DIC[
'ilAccess'];
94 $t_arr = explode(
"_", $a_target);
96 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1])) {
◆ _getCommands()
static ilObjCloudAccess::_getCommands |
( |
| ) |
|
|
static |
Definition at line 21 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 $DIC, and $ilDB.
Referenced by _checkAccess(), and ilObjCloudListGUI\getProperties().
132 $ilDB = $DIC[
'ilDB'];
134 if (!isset(self::$access_cache[$a_id][
"auth_status"])) {
135 $set =
$ilDB->query(
"SELECT auth_complete FROM il_cld_data " .
" WHERE id = " .
$ilDB->quote($a_id,
"integer"));
136 $rec =
$ilDB->fetchAssoc($set);
137 self::$access_cache[$a_id][
"auth_status"] = (boolean) $rec[
"auth_complete"];
140 return self::$access_cache[$a_id][
"auth_status"];
◆ checkOnline()
static ilObjCloudAccess::checkOnline |
( |
|
$a_id | ) |
|
|
static |
- Parameters
-
- Returns
- mixed
Definition at line 109 of file class.ilObjCloudAccess.php.
References $DIC, and $ilDB.
Referenced by _checkAccess(), and ilObjCloudListGUI\getProperties().
112 $ilDB = $DIC[
'ilDB'];
114 if (!isset(self::$access_cache[$a_id][
"online"])) {
115 $set =
$ilDB->query(
"SELECT is_online FROM il_cld_data " .
" WHERE id = " .
$ilDB->quote($a_id,
"integer"));
116 $rec =
$ilDB->fetchAssoc($set);
117 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: