ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
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 () | |
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, $ilUser, ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), ILIAS\Repository\settings(), and ILIAS\Repository\user().
|
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().
ilWorkspaceAccessHandler::addPermission | ( | int | $a_node_id, |
int | $a_object_id, | ||
string | $a_extended_data = null |
||
) |
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 $ilUser, $user, and checkAccessOfUser().
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, $ilUser, $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().
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, $ilUser, $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.
|
static |
Definition at line 500 of file class.ilWorkspaceAccessHandler.php.
References ilLink\_getStaticLink(), and ilObject\_lookupType().
Referenced by ilObjectListGUI\buildGotoLink(), ilMailNotification\createPermanentLink(), ilPortfolioPageTableGUI\fillRow(), and ilNoteGUI\getTarget().
|
static |
Definition at line 524 of file class.ilWorkspaceAccessHandler.php.
Referenced by ilSharedResourceGUI\initPasswordForm(), and ilSharedResourceGUI\redirectToResource().
ilWorkspaceAccessHandler::getObjectsIShare | ( | ) |
ilWorkspaceAccessHandler::getPermissions | ( | int | $a_node_id | ) |
Get all permissions of node.
Definition at line 231 of file class.ilWorkspaceAccessHandler.php.
Referenced by checkAccessOfUser().
|
static |
Definition at line 302 of file class.ilWorkspaceAccessHandler.php.
References $DIC, $ilSetting, $ilUser, ilParticipants\_getMembershipByType(), ilWorkspaceAccessGUI\PERMISSION_ALL, ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD, and ilWorkspaceAccessGUI\PERMISSION_REGISTERED.
Referenced by findSharedObjects(), getSharedObjects(), and getSharedOwners().
|
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().
ilWorkspaceAccessHandler::getSharedObjects | ( | int | $a_owner_id | ) |
Definition at line 351 of file class.ilWorkspaceAccessHandler.php.
References $db, $ilDB, $res, and getPossibleSharedTargets().
ilWorkspaceAccessHandler::getSharedOwners | ( | ) |
Definition at line 324 of file class.ilWorkspaceAccessHandler.php.
References $db, $ilDB, $ilUser, $user, and getPossibleSharedTargets().
|
static |
Definition at line 495 of file class.ilWorkspaceAccessHandler.php.
References ilSession\get().
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().
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.
References $db, $ilDB, and $query.
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().