ILIAS
Release_4_2_x_branch Revision 61807
|
Access handler for personal workspace. More...
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) |
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.
References $lng.
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 $ilDB.
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 checkAccessOfUser().
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 ilGroupParticipants\_getInstanceByObjId(), ilCourseParticipants\_getInstanceByObjId(), ilObject\_lookupType(), getPermissions(), ilWorkspaceAccessGUI\PERMISSION_ALL, ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD, ilWorkspaceAccessGUI\PERMISSION_REGISTERED, and ilTree\readRootId().
Referenced by checkAccess().
|
static |
Definition at line 391 of file class.ilWorkspaceAccessHandler.php.
References ilLink\_getStaticLink(), and ilObject\_lookupType().
Referenced by ilObjectListGUI\buildGotoLink(), ilPortfolioPageTableGUI\fillRow(), ilExAssignmentGUI\getOverviewBody(), ilObjBlog\sendNotification(), and ilNoteGUI\showTargets().
ilWorkspaceAccessHandler::getObjectsIShare | ( | ) |
Definition at line 397 of file class.ilWorkspaceAccessHandler.php.
References $ilDB, $res, and $row.
|
static |
Get all permissions to node.
int | $a_node_id |
Definition at line 232 of file class.ilWorkspaceAccessHandler.php.
References $ilDB, $ilSetting, $res, $row, ilWorkspaceAccessGUI\PERMISSION_ALL, and ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD.
Referenced by checkAccessOfUser(), ilSharedResourceGUI\hasAccess(), and ilWorkspaceShareTableGUI\importData().
|
static |
Definition at line 293 of file class.ilWorkspaceAccessHandler.php.
References $ilSetting, ilParticipants\_getMembershipByType(), ilWorkspaceAccessGUI\PERMISSION_ALL, ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD, and ilWorkspaceAccessGUI\PERMISSION_REGISTERED.
Referenced by getSharedObjects(), and getSharedOwners().
|
static |
Definition at line 365 of file class.ilWorkspaceAccessHandler.php.
References $ilDB, $res, and ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD.
Referenced by ilSharedResourceGUI\checkPassword().
ilWorkspaceAccessHandler::getSharedObjects | ( | $a_owner_id | ) |
Definition at line 343 of file class.ilWorkspaceAccessHandler.php.
References $ilDB, $res, $row, and getPossibleSharedTargets().
ilWorkspaceAccessHandler::getSharedOwners | ( | ) |
Definition at line 315 of file class.ilWorkspaceAccessHandler.php.
References $ilDB, $row, and getPossibleSharedTargets().
|
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 $ilDB, $ilSetting, and ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD.
ilWorkspaceAccessHandler::hasGlobalPermission | ( | $a_node_id | ) |
Definition at line 263 of file class.ilWorkspaceAccessHandler.php.
References $ilDB, $ilSetting, and ilWorkspaceAccessGUI\PERMISSION_ALL.
ilWorkspaceAccessHandler::hasRegisteredPermission | ( | $a_node_id | ) |
Definition at line 253 of file class.ilWorkspaceAccessHandler.php.
References $ilDB, and ilWorkspaceAccessGUI\PERMISSION_REGISTERED.
|
static |
Definition at line 381 of file class.ilWorkspaceAccessHandler.php.
References $_SESSION.
Referenced by ilSharedResourceGUI\checkPassword().
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.
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().