|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Access handler for personal workspace. More...
Collaboration diagram for ilWorkspaceAccessHandler:Public Member Functions | |
| __construct (ilTree $a_tree=null) | |
| getTree () | |
| Get workspace tree. More... | |
| checkAccess ($a_permission, $a_cmd, $a_node_id, $a_type="") | |
| check access for an object More... | |
| checkAccessOfUser (ilTree $a_tree, $a_user_id, $a_permission, $a_cmd, $a_node_id, $a_type="") | |
| check access for an object More... | |
| setPermissions ($a_parent_node_id, $a_node_id) | |
| Set permissions after creating node/object. More... | |
| addPermission ($a_node_id, $a_object_id, $a_extended_data=null) | |
| Add permission to node for object. More... | |
| removePermission ($a_node_id, $a_object_id=null) | |
| Remove permission[s] (for object) to node. More... | |
| getPermissions ($a_node_id) | |
| Get all permissions to node. More... | |
| hasRegisteredPermission ($a_node_id) | |
| hasGlobalPermission ($a_node_id) | |
| hasGlobalPasswordPermission ($a_node_id) | |
| getSharedOwners () | |
| getSharedObjects ($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 ($a_node_id) |
| Get all permissions to node. More... | |
| static | getPossibleSharedTargets () |
| static | getSharedNodePassword ($a_node_id) |
| static | keepSharedSessionPassword ($a_node_id, $a_password) |
| static | getSharedSessionPassword ($a_node_id) |
| static | getGotoLink ($a_node_id, $a_obj_id, $a_additional=null) |
| static | getObjectDataFromNode ($a_node_id) |
Protected Attributes | |
| $user | |
| $lng | |
| $rbacreview | |
| $settings | |
| $db | |
| $tree | |
Access handler for personal workspace.
Definition at line 14 of file class.ilWorkspaceAccessHandler.php.
| ilWorkspaceAccessHandler::__construct | ( | ilTree | $a_tree = null | ) |
Definition at line 43 of file class.ilWorkspaceAccessHandler.php.
References $DIC, $ilUser, $lng, settings(), and user().
Here is the call graph for this function:
|
static |
Get all permissions to node.
| int | $a_node_id |
Definition at line 265 of file class.ilWorkspaceAccessHandler.php.
References $DIC, $ilDB, $ilSetting, $res, ilWorkspaceAccessGUI\PERMISSION_ALL, and ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD.
Referenced by getPermissions(), and ilSharedResourceGUI\hasAccess().
Here is the caller graph for this function:| ilWorkspaceAccessHandler::addPermission | ( | $a_node_id, | |
| $a_object_id, | |||
$a_extended_data = null |
|||
| ) |
Add permission to node for object.
| int | $a_node_id | |
| int | $a_object_id | |
| string | $a_extended_data |
Definition at line 209 of file class.ilWorkspaceAccessHandler.php.
| ilWorkspaceAccessHandler::checkAccess | ( | $a_permission, | |
| $a_cmd, | |||
| $a_node_id, | |||
$a_type = "" |
|||
| ) |
check access for an object
| string | $a_permission | |
| string | $a_cmd | |
| int | $a_node_id | |
| string | $a_type | (optional) |
Definition at line 83 of file class.ilWorkspaceAccessHandler.php.
References $a_type, $ilUser, $user, and checkAccessOfUser().
Here is the call graph for this function:| ilWorkspaceAccessHandler::checkAccessOfUser | ( | ilTree | $a_tree, |
| $a_user_id, | |||
| $a_permission, | |||
| $a_cmd, | |||
| $a_node_id, | |||
$a_type = "" |
|||
| ) |
check access for an object
| ilTree | $a_tree | |
| integer | $a_user_id | |
| string | $a_permission | |
| string | $a_cmd | |
| int | $a_node_id | |
| string | $a_type | (optional) |
Definition at line 101 of file class.ilWorkspaceAccessHandler.php.
References $ilSetting, $ilUser, $rbacreview, $settings, $user, ilCourseParticipants\_getInstanceByObjId(), ilGroupParticipants\_getInstanceByObjId(), ilObject\_lookupType(), getPermissions(), 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 399 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.
Here is the call graph for this function:
|
static |
Definition at line 528 of file class.ilWorkspaceAccessHandler.php.
References ilLink\_getStaticLink(), and ilObject\_lookupType().
Referenced by ilObjectListGUI\buildGotoLink(), ilMailNotification\createPermanentLink(), ilPortfolioPageTableGUI\fillRow(), and ilNoteGUI\renderTargets().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 553 of file class.ilWorkspaceAccessHandler.php.
Referenced by ilSharedResourceGUI\initPasswordForm(), and ilSharedResourceGUI\redirectToResource().
Here is the caller graph for this function:| ilWorkspaceAccessHandler::getObjectsIShare | ( | ) |
Definition at line 534 of file class.ilWorkspaceAccessHandler.php.
| ilWorkspaceAccessHandler::getPermissions | ( | $a_node_id | ) |
Get all permissions to node.
| int | $a_node_id |
Definition at line 254 of file class.ilWorkspaceAccessHandler.php.
References _getPermissions().
Referenced by checkAccessOfUser().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 327 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 501 of file class.ilWorkspaceAccessHandler.php.
References $DIC, $ilDB, $res, and ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD.
Referenced by ilObjWorkspaceFolderGUI\checkPassword(), and ilSharedResourceGUI\checkPassword().
Here is the caller graph for this function:| ilWorkspaceAccessHandler::getSharedObjects | ( | $a_owner_id | ) |
Definition at line 378 of file class.ilWorkspaceAccessHandler.php.
References $db, $ilDB, $res, and getPossibleSharedTargets().
Here is the call graph for this function:| ilWorkspaceAccessHandler::getSharedOwners | ( | ) |
Definition at line 351 of file class.ilWorkspaceAccessHandler.php.
References $db, $ilDB, $ilUser, $user, and getPossibleSharedTargets().
Here is the call graph for this function:
|
static |
Definition at line 523 of file class.ilWorkspaceAccessHandler.php.
References $_SESSION.
| ilWorkspaceAccessHandler::getTree | ( | ) |
Get workspace tree.
Definition at line 69 of file class.ilWorkspaceAccessHandler.php.
References $tree.
| ilWorkspaceAccessHandler::hasGlobalPasswordPermission | ( | $a_node_id | ) |
Definition at line 312 of file class.ilWorkspaceAccessHandler.php.
References $db, $ilDB, $ilSetting, $settings, and ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD.
| ilWorkspaceAccessHandler::hasGlobalPermission | ( | $a_node_id | ) |
Definition at line 297 of file class.ilWorkspaceAccessHandler.php.
References $db, $ilDB, $ilSetting, $settings, and ilWorkspaceAccessGUI\PERMISSION_ALL.
| ilWorkspaceAccessHandler::hasRegisteredPermission | ( | $a_node_id | ) |
Definition at line 287 of file class.ilWorkspaceAccessHandler.php.
References $db, $ilDB, and ilWorkspaceAccessGUI\PERMISSION_REGISTERED.
|
static |
Definition at line 518 of file class.ilWorkspaceAccessHandler.php.
References $_SESSION.
Referenced by ilObjWorkspaceFolderGUI\checkPassword(), and ilSharedResourceGUI\checkPassword().
Here is the caller graph for this function:| ilWorkspaceAccessHandler::removePermission | ( | $a_node_id, | |
$a_object_id = null |
|||
| ) |
Remove permission[s] (for object) to node.
| int | $a_node_id | |
| int | $a_object_id |
Definition at line 234 of file class.ilWorkspaceAccessHandler.php.
| ilWorkspaceAccessHandler::setPermissions | ( | $a_parent_node_id, | |
| $a_node_id | |||
| ) |
Set permissions after creating node/object.
| int | $a_parent_node_id | |
| int | $a_node_id |
Definition at line 196 of file class.ilWorkspaceAccessHandler.php.
|
protected |
Definition at line 39 of file class.ilWorkspaceAccessHandler.php.
Referenced by addPermission(), findSharedObjects(), getObjectsIShare(), getSharedObjects(), getSharedOwners(), hasGlobalPasswordPermission(), hasGlobalPermission(), hasRegisteredPermission(), and removePermission().
|
protected |
Definition at line 24 of file class.ilWorkspaceAccessHandler.php.
Referenced by __construct().
|
protected |
Definition at line 29 of file class.ilWorkspaceAccessHandler.php.
Referenced by checkAccessOfUser().
|
protected |
Definition at line 34 of file class.ilWorkspaceAccessHandler.php.
Referenced by checkAccessOfUser(), hasGlobalPasswordPermission(), and hasGlobalPermission().
|
protected |
Definition at line 41 of file class.ilWorkspaceAccessHandler.php.
Referenced by getTree().
|
protected |
Definition at line 19 of file class.ilWorkspaceAccessHandler.php.
Referenced by addPermission(), checkAccess(), checkAccessOfUser(), findSharedObjects(), getObjectsIShare(), and getSharedOwners().