This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
More...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too. If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilObjFileAccess
- Author
- Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Definition at line 23 of file class.ilObjFolderAccess.php.
◆ _checkAccess()
ilObjFolderAccess::_checkAccess |
( |
string |
$cmd, |
|
|
string |
$permission, |
|
|
int |
$ref_id, |
|
|
int |
$obj_id, |
|
|
?int |
$user_id = null |
|
) |
| |
◆ _checkGoto()
static ilObjFolderAccess::_checkGoto |
( |
string |
$target | ) |
|
|
static |
Definition at line 74 of file class.ilObjFolderAccess.php.
References $DIC.
78 $ilAccess = $DIC->access();
80 $t_arr = explode(
"_", $target);
82 if ($t_arr[0] !==
"fold" || ((
int) $t_arr[1]) <= 0) {
86 if ($ilAccess->checkAccess(
"read",
"", (
int) $t_arr[1]) ||
87 $ilAccess->checkAccess(
"visible",
"", (
int) $t_arr[1])) {
◆ _getCommands()
static ilObjFolderAccess::_getCommands |
( |
| ) |
|
|
static |
Definition at line 44 of file class.ilObjFolderAccess.php.
References ilDAVActivationChecker\_isActive().
47 $commands[] = [
"permission" =>
"read",
"cmd" =>
"view",
"lang_var" =>
"show",
"default" =>
true];
52 $commands[] = [
"permission" =>
"read",
"cmd" =>
"download",
"lang_var" =>
"download"];
56 $commands[] = $webdav_obj->retrieveWebDAVCommandArrayForActionMenu();
58 $commands[] = [
"permission" =>
"write",
"cmd" =>
"enableAdministrationPanel",
"lang_var" =>
"edit_content"];
59 $commands[] = [
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"settings"];
◆ getFolderSettings()
static ilObjFolderAccess::getFolderSettings |
( |
| ) |
|
|
staticprivate |
◆ hasDownloadAction()
static ilObjFolderAccess::hasDownloadAction |
( |
int |
$ref_id | ) |
|
|
staticprivate |
◆ $folderSettings
ilSetting ilObjFolderAccess::$folderSettings = null |
|
staticprivate |
The documentation for this class was generated from the following file: