| ILIAS
    Release_4_3_x_branch Revision 61807
    | 
Access handler for personal workspace. More...
 Collaboration diagram for ilWorkspaceAccessHandler:
 Collaboration diagram for ilWorkspaceAccessHandler:| Public Member Functions | |
| __construct (ilTree $a_tree=null) | |
| getTree () | |
| Get workspace tree. | |
| checkAccess ($a_permission, $a_cmd, $a_node_id, $a_type="") | |
| check access for an object | |
| checkAccessOfUser (ilTree $a_tree, $a_user_id, $a_permission, $a_cmd, $a_node_id, $a_type="") | |
| check access for an object | |
| setPermissions ($a_parent_node_id, $a_node_id) | |
| Set permissions after creating node/object. | |
| addPermission ($a_node_id, $a_object_id, $a_extended_data=null) | |
| Add permission to node for object. | |
| removePermission ($a_node_id, $a_object_id=null) | |
| Remove permission[s] (for object) to node. | |
| hasRegisteredPermission ($a_node_id) | |
| hasGlobalPermission ($a_node_id) | |
| hasGlobalPasswordPermission ($a_node_id) | |
| getSharedOwners () | |
| getSharedObjects ($a_owner_id) | |
| getObjectsIShare () | |
| Static Public Member Functions | |
| static | getPermissions ($a_node_id) | 
| Get all permissions to node. | |
| 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 | |
| $tree | |
Access handler for personal workspace.
Definition at line 17 of file class.ilWorkspaceAccessHandler.php.
| ilWorkspaceAccessHandler::__construct | ( | ilTree | $a_tree = null | ) | 
Definition at line 21 of file class.ilWorkspaceAccessHandler.php.
| 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 187 of file class.ilWorkspaceAccessHandler.php.
References $ilUser.
| 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 54 of file class.ilWorkspaceAccessHandler.php.
References $ilUser, and checkAccessOfUser().
 Here is the call graph for this function:
 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 72 of file class.ilWorkspaceAccessHandler.php.
References $ilUser, ilGroupParticipants\_getInstanceByObjId(), ilCourseParticipants\_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 call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 391 of file class.ilWorkspaceAccessHandler.php.
References ilLink\_getStaticLink(), and ilObject\_lookupType().
Referenced by ilObjectListGUI\buildGotoLink(), ilPortfolioPageTableGUI\fillRow(), ilObjBlog\sendNotification(), and ilNoteGUI\showTargets().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 416 of file class.ilWorkspaceAccessHandler.php.
Referenced by ilSharedResourceGUI\initPasswordForm(), and ilSharedResourceGUI\redirectToResource().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilWorkspaceAccessHandler::getObjectsIShare | ( | ) | 
Definition at line 397 of file class.ilWorkspaceAccessHandler.php.
References $ilUser, $res, and $row.
| 
 | static | 
Get all permissions to node.
| int | $a_node_id | 
Definition at line 232 of file class.ilWorkspaceAccessHandler.php.
References $ilSetting, $res, $row, ilWorkspaceAccessGUI\PERMISSION_ALL, and ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD.
Referenced by checkAccessOfUser(), ilSharedResourceGUI\hasAccess(), and ilWorkspaceShareTableGUI\importData().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 293 of file class.ilWorkspaceAccessHandler.php.
References $ilSetting, $ilUser, ilParticipants\_getMembershipByType(), ilWorkspaceAccessGUI\PERMISSION_ALL, ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD, and ilWorkspaceAccessGUI\PERMISSION_REGISTERED.
Referenced by getSharedObjects(), and getSharedOwners().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 365 of file class.ilWorkspaceAccessHandler.php.
References $res, and ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD.
Referenced by ilSharedResourceGUI\checkPassword(), and ilObjWorkspaceFolderGUI\checkPassword().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilWorkspaceAccessHandler::getSharedObjects | ( | $a_owner_id | ) | 
Definition at line 343 of file class.ilWorkspaceAccessHandler.php.
References $res, $row, and getPossibleSharedTargets().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilWorkspaceAccessHandler::getSharedOwners | ( | ) | 
Definition at line 315 of file class.ilWorkspaceAccessHandler.php.
References $ilUser, $row, and getPossibleSharedTargets().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
Definition at line 386 of file class.ilWorkspaceAccessHandler.php.
References $_SESSION.
| ilWorkspaceAccessHandler::getTree | ( | ) | 
Get workspace tree.
Definition at line 40 of file class.ilWorkspaceAccessHandler.php.
References $tree.
| ilWorkspaceAccessHandler::hasGlobalPasswordPermission | ( | $a_node_id | ) | 
Definition at line 278 of file class.ilWorkspaceAccessHandler.php.
References $ilSetting, and ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD.
| ilWorkspaceAccessHandler::hasGlobalPermission | ( | $a_node_id | ) | 
Definition at line 263 of file class.ilWorkspaceAccessHandler.php.
References $ilSetting, and ilWorkspaceAccessGUI\PERMISSION_ALL.
| ilWorkspaceAccessHandler::hasRegisteredPermission | ( | $a_node_id | ) | 
Definition at line 253 of file class.ilWorkspaceAccessHandler.php.
References ilWorkspaceAccessGUI\PERMISSION_REGISTERED.
| 
 | static | 
Definition at line 381 of file class.ilWorkspaceAccessHandler.php.
References $_SESSION.
Referenced by ilSharedResourceGUI\checkPassword(), and ilObjWorkspaceFolderGUI\checkPassword().
 Here is the caller graph for this function:
 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 211 of file class.ilWorkspaceAccessHandler.php.
References $query.
| 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 174 of file class.ilWorkspaceAccessHandler.php.
| 
 | protected | 
Definition at line 19 of file class.ilWorkspaceAccessHandler.php.
Referenced by getTree().