ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Access handler for personal workspace. More...
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 17 of file class.ilWorkspaceAccessHandler.php.
ilWorkspaceAccessHandler::__construct | ( | ilTree | $a_tree = null | ) |
Definition at line 46 of file class.ilWorkspaceAccessHandler.php.
References $DIC, $ilUser, $lng, settings(), and user().
|
static |
Get all permissions to node.
int | $a_node_id |
Definition at line 268 of file class.ilWorkspaceAccessHandler.php.
References $DIC, $ilDB, $ilSetting, $res, $row, ilWorkspaceAccessGUI\PERMISSION_ALL, and ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD.
Referenced by ilSharedResourceGUI\hasAccess().
ilWorkspaceAccessHandler::addPermission | ( | $a_node_id, | |
$a_object_id, | |||
$a_extended_data = null |
|||
) |
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 86 of file class.ilWorkspaceAccessHandler.php.
References $a_type, $ilUser, $user, and 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 104 of file class.ilWorkspaceAccessHandler.php.
References $ilSetting, $ilUser, $rbacreview, $settings, $user, ilGroupParticipants\_getInstanceByObjId(), ilCourseParticipants\_getInstanceByObjId(), ilObject\_lookupType(), getPermissions(), 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 402 of file class.ilWorkspaceAccessHandler.php.
References $db, $ilDB, $ilUser, $res, $row, $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 531 of file class.ilWorkspaceAccessHandler.php.
References ilLink\_getStaticLink(), and ilObject\_lookupType().
Referenced by ilObjectListGUI\buildGotoLink(), ilMailNotification\createPermanentLink(), ilPortfolioPageTableGUI\fillRow(), and ilNoteGUI\renderTargets().
|
static |
Definition at line 556 of file class.ilWorkspaceAccessHandler.php.
Referenced by ilSharedResourceGUI\initPasswordForm(), and ilSharedResourceGUI\redirectToResource().
ilWorkspaceAccessHandler::getObjectsIShare | ( | ) |
ilWorkspaceAccessHandler::getPermissions | ( | $a_node_id | ) |
Get all permissions to node.
int | $a_node_id |
Definition at line 257 of file class.ilWorkspaceAccessHandler.php.
Referenced by checkAccessOfUser().
|
static |
Definition at line 330 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 504 of file class.ilWorkspaceAccessHandler.php.
References $DIC, $ilDB, $res, and ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD.
Referenced by ilSharedResourceGUI\checkPassword(), and ilObjWorkspaceFolderGUI\checkPassword().
ilWorkspaceAccessHandler::getSharedObjects | ( | $a_owner_id | ) |
Definition at line 381 of file class.ilWorkspaceAccessHandler.php.
References $db, $ilDB, $res, $row, and getPossibleSharedTargets().
ilWorkspaceAccessHandler::getSharedOwners | ( | ) |
Definition at line 354 of file class.ilWorkspaceAccessHandler.php.
References $db, $ilDB, $ilUser, $row, $user, and getPossibleSharedTargets().
|
static |
ilWorkspaceAccessHandler::getTree | ( | ) |
Get workspace tree.
Definition at line 72 of file class.ilWorkspaceAccessHandler.php.
References $tree.
ilWorkspaceAccessHandler::hasGlobalPasswordPermission | ( | $a_node_id | ) |
Definition at line 315 of file class.ilWorkspaceAccessHandler.php.
References $db, $ilDB, $ilSetting, $settings, and ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD.
ilWorkspaceAccessHandler::hasGlobalPermission | ( | $a_node_id | ) |
Definition at line 300 of file class.ilWorkspaceAccessHandler.php.
References $db, $ilDB, $ilSetting, $settings, and ilWorkspaceAccessGUI\PERMISSION_ALL.
ilWorkspaceAccessHandler::hasRegisteredPermission | ( | $a_node_id | ) |
Definition at line 290 of file class.ilWorkspaceAccessHandler.php.
References $db, $ilDB, and ilWorkspaceAccessGUI\PERMISSION_REGISTERED.
|
static |
Definition at line 521 of file class.ilWorkspaceAccessHandler.php.
References $_SESSION.
Referenced by ilSharedResourceGUI\checkPassword(), and ilObjWorkspaceFolderGUI\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 237 of file class.ilWorkspaceAccessHandler.php.
References $db, $ilDB, and $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 199 of file class.ilWorkspaceAccessHandler.php.
|
protected |
Definition at line 42 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.
Referenced by __construct().
|
protected |
Definition at line 32 of file class.ilWorkspaceAccessHandler.php.
Referenced by checkAccessOfUser().
|
protected |
Definition at line 37 of file class.ilWorkspaceAccessHandler.php.
Referenced by checkAccessOfUser(), hasGlobalPasswordPermission(), and hasGlobalPermission().
|
protected |
Definition at line 44 of file class.ilWorkspaceAccessHandler.php.
Referenced by getTree().
|
protected |
Definition at line 22 of file class.ilWorkspaceAccessHandler.php.
Referenced by addPermission(), checkAccess(), checkAccessOfUser(), findSharedObjects(), getObjectsIShare(), and getSharedOwners().