|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilWorkspaceAccessHandler:Public Member Functions | |
| __construct (ilTree $a_tree=null) | |
| getTree () | |
| Get workspace tree. More... | |
| checkAccess (string $a_permission, string $a_cmd, int $a_node_id, string $a_type="") | |
| checkAccessOfUser (ilTree $a_tree, int $a_user_id, string $a_permission, string $a_cmd, int $a_node_id, string $a_type="") | |
| check access for an object More... | |
| setPermissions (int $a_parent_node_id, int $a_node_id) | |
| Set permissions after creating node/object. More... | |
| addPermission (int $a_node_id, int $a_object_id, string $a_extended_data=null) | |
| Add permission to node for object. More... | |
| removePermission (int $a_node_id, int $a_object_id=null) | |
| Remove permission[s] (for object) to node. More... | |
| getPermissions (int $a_node_id) | |
| Get all permissions of node. More... | |
| hasRegisteredPermission (int $a_node_id) | |
| hasGlobalPermission (int $a_node_id) | |
| hasGlobalPasswordPermission (int $a_node_id) | |
| getSharedOwners () | |
| getSharedObjects (int $a_owner_id) | |
| findSharedObjects (array $a_filter=null, array $a_crs_ids=null, array $a_grp_ids=null) | |
| getObjectsIShare () | |
| addMissingPermissionForObjects (int $node_id, array $objects) | |
Static Public Member Functions | |
| static | _getPermissions (int $a_node_id) |
| Get all permissions to node. More... | |
| static | getPossibleSharedTargets () |
| static | getSharedNodePassword (int $a_node_id) |
| static | keepSharedSessionPassword (int $a_node_id, string $a_password) |
| static | getSharedSessionPassword (int $a_node_id) |
| static | getGotoLink (int $a_node_id, int $a_obj_id, string $a_additional="") |
| static | getObjectDataFromNode (int $a_node_id) |
Protected Attributes | |
| ilObjUser | $user |
| ilLanguage | $lng |
| ilRbacReview | $rbacreview |
| ilSetting | $settings |
| ilDBInterface | $db |
| ilTree | $tree |
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 Access handler for personal workspace
Definition at line 24 of file class.ilWorkspaceAccessHandler.php.
| ilWorkspaceAccessHandler::__construct | ( | ilTree | $a_tree = null | ) |
Definition at line 36 of file class.ilWorkspaceAccessHandler.php.
References $DIC, ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), ILIAS\Repository\settings(), and ILIAS\Repository\user().
Here is the call graph for this function:
|
static |
Get all permissions to node.
Definition at line 240 of file class.ilWorkspaceAccessHandler.php.
References $DIC, $ilDB, $ilSetting, $res, ILIAS\Repository\int(), ilWorkspaceAccessGUI\PERMISSION_ALL, and ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD.
Referenced by ilSharedResourceGUI\hasAccess().
Here is the call graph for this function:
Here is the caller graph for this function:| ilWorkspaceAccessHandler::addMissingPermissionForObjects | ( | int | $node_id, |
| array | $objects | ||
| ) |
Definition at line 538 of file class.ilWorkspaceAccessHandler.php.
References addPermission(), and getPermissions().
Here is the call graph for this function:| ilWorkspaceAccessHandler::addPermission | ( | int | $a_node_id, |
| int | $a_object_id, | ||
| string | $a_extended_data = null |
||
| ) |
Add permission to node for object.
Definition at line 186 of file class.ilWorkspaceAccessHandler.php.
References $db, $ilDB, and $user.
Referenced by addMissingPermissionForObjects().
Here is the caller graph for this function:| ilWorkspaceAccessHandler::checkAccess | ( | string | $a_permission, |
| string | $a_cmd, | ||
| int | $a_node_id, | ||
| string | $a_type = "" |
||
| ) |
Definition at line 67 of file class.ilWorkspaceAccessHandler.php.
References $user, and checkAccessOfUser().
Here is the call graph for this function:| ilWorkspaceAccessHandler::checkAccessOfUser | ( | ilTree | $a_tree, |
| int | $a_user_id, | ||
| string | $a_permission, | ||
| string | $a_cmd, | ||
| int | $a_node_id, | ||
| string | $a_type = "" |
||
| ) |
check access for an object
Definition at line 80 of file class.ilWorkspaceAccessHandler.php.
References $ilSetting, $rbacreview, $settings, $user, ilCourseParticipants\_getInstanceByObjId(), ilGroupParticipants\_getInstanceByObjId(), ilObject\_lookupType(), ANONYMOUS_USER_ID, getPermissions(), ilRbacReview\isAssigned(), ilWorkspaceAccessGUI\PERMISSION_ALL, ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD, ilWorkspaceAccessGUI\PERMISSION_REGISTERED, and ilTree\readRootId().
Referenced by checkAccess().
Here is the call graph for this function:
Here is the caller graph for this function:| ilWorkspaceAccessHandler::findSharedObjects | ( | array | $a_filter = null, |
| array | $a_crs_ids = null, |
||
| array | $a_grp_ids = null |
||
| ) |
Definition at line 372 of file class.ilWorkspaceAccessHandler.php.
References $db, $ilDB, $res, $user, ilParticipants\getInstanceByObjId(), getPossibleSharedTargets(), IL_CAL_DATE, IL_CAL_DATETIME, IL_CAL_UNIX, ilWorkspaceAccessGUI\PERMISSION_ALL, ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD, and ilWorkspaceAccessGUI\PERMISSION_REGISTERED.
Here is the call graph for this function:
|
static |
Definition at line 500 of file class.ilWorkspaceAccessHandler.php.
References ilLink\_getStaticLink(), and ilObject\_lookupType().
Referenced by ilObjectListGUI\buildGotoLink(), ilMailNotification\createPermanentLink(), ilObjFileGUI\getParentId(), and ilNoteGUI\getTarget().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 524 of file class.ilWorkspaceAccessHandler.php.
Referenced by ilSharedResourceGUI\initPasswordForm(), and ilSharedResourceGUI\redirectToResource().
Here is the caller graph for this function:| ilWorkspaceAccessHandler::getObjectsIShare | ( | ) |
| ilWorkspaceAccessHandler::getPermissions | ( | int | $a_node_id | ) |
Get all permissions of node.
Definition at line 231 of file class.ilWorkspaceAccessHandler.php.
Referenced by addMissingPermissionForObjects(), and checkAccessOfUser().
Here is the caller graph for this function:
|
static |
Definition at line 302 of file class.ilWorkspaceAccessHandler.php.
References $DIC, $ilSetting, ilParticipants\_getMembershipByType(), ilWorkspaceAccessGUI\PERMISSION_ALL, ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD, and ilWorkspaceAccessGUI\PERMISSION_REGISTERED.
Referenced by findSharedObjects(), getSharedObjects(), and getSharedOwners().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 474 of file class.ilWorkspaceAccessHandler.php.
References $DIC, $ilDB, $res, and ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD.
Referenced by ilSharedResourceGUI\checkPassword(), and ilObjWorkspaceFolderGUI\checkPassword().
Here is the caller graph for this function:| ilWorkspaceAccessHandler::getSharedObjects | ( | int | $a_owner_id | ) |
Definition at line 351 of file class.ilWorkspaceAccessHandler.php.
References $db, $ilDB, $res, and getPossibleSharedTargets().
Here is the call graph for this function:| ilWorkspaceAccessHandler::getSharedOwners | ( | ) |
Definition at line 324 of file class.ilWorkspaceAccessHandler.php.
References $db, $ilDB, $user, and getPossibleSharedTargets().
Here is the call graph for this function:
|
static |
Definition at line 495 of file class.ilWorkspaceAccessHandler.php.
References ilSession\get().
Here is the call graph for this function:| ilWorkspaceAccessHandler::getTree | ( | ) |
Get workspace tree.
Definition at line 62 of file class.ilWorkspaceAccessHandler.php.
References $tree.
| ilWorkspaceAccessHandler::hasGlobalPasswordPermission | ( | int | $a_node_id | ) |
Definition at line 287 of file class.ilWorkspaceAccessHandler.php.
References $db, $ilDB, $ilSetting, $settings, and ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD.
| ilWorkspaceAccessHandler::hasGlobalPermission | ( | int | $a_node_id | ) |
Definition at line 272 of file class.ilWorkspaceAccessHandler.php.
References $db, $ilDB, $ilSetting, $settings, and ilWorkspaceAccessGUI\PERMISSION_ALL.
| ilWorkspaceAccessHandler::hasRegisteredPermission | ( | int | $a_node_id | ) |
Definition at line 262 of file class.ilWorkspaceAccessHandler.php.
References $db, $ilDB, and ilWorkspaceAccessGUI\PERMISSION_REGISTERED.
|
static |
Definition at line 490 of file class.ilWorkspaceAccessHandler.php.
References ilSession\set().
Referenced by ilSharedResourceGUI\checkPassword(), and ilObjWorkspaceFolderGUI\checkPassword().
Here is the call graph for this function:
Here is the caller graph for this function:| ilWorkspaceAccessHandler::removePermission | ( | int | $a_node_id, |
| int | $a_object_id = null |
||
| ) |
Remove permission[s] (for object) to node.
Definition at line 211 of file class.ilWorkspaceAccessHandler.php.
| ilWorkspaceAccessHandler::setPermissions | ( | int | $a_parent_node_id, |
| int | $a_node_id | ||
| ) |
Set permissions after creating node/object.
Definition at line 178 of file class.ilWorkspaceAccessHandler.php.
|
protected |
Definition at line 30 of file class.ilWorkspaceAccessHandler.php.
Referenced by addPermission(), findSharedObjects(), getObjectsIShare(), getSharedObjects(), getSharedOwners(), hasGlobalPasswordPermission(), hasGlobalPermission(), hasRegisteredPermission(), and removePermission().
|
protected |
Definition at line 27 of file class.ilWorkspaceAccessHandler.php.
|
protected |
Definition at line 28 of file class.ilWorkspaceAccessHandler.php.
Referenced by checkAccessOfUser().
|
protected |
Definition at line 29 of file class.ilWorkspaceAccessHandler.php.
Referenced by checkAccessOfUser(), hasGlobalPasswordPermission(), and hasGlobalPermission().
|
protected |
Definition at line 34 of file class.ilWorkspaceAccessHandler.php.
Referenced by getTree().
|
protected |
Definition at line 26 of file class.ilWorkspaceAccessHandler.php.
Referenced by addPermission(), checkAccess(), checkAccessOfUser(), findSharedObjects(), getObjectsIShare(), and getSharedOwners().