ILIAS
Release_4_4_x_branch Revision 61816
|
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) | |
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. | |
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().
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().
ilWorkspaceAccessHandler::findSharedObjects | ( | array | $a_filter = null , |
array | $a_crs_ids = null , |
||
array | $a_grp_ids = null |
||
) |
Definition at line 366 of file class.ilWorkspaceAccessHandler.php.
References $ilUser, $res, $row, 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 509 of file class.ilWorkspaceAccessHandler.php.
References ilLink\_getStaticLink(), and ilObject\_lookupType().
Referenced by ilObjectListGUI\buildGotoLink(), ilMailNotification\createPermanentLink(), ilPortfolioPageTableGUI\fillRow(), and ilNoteGUI\showTargets().
|
static |
Definition at line 534 of file class.ilWorkspaceAccessHandler.php.
Referenced by ilSharedResourceGUI\initPasswordForm(), and ilSharedResourceGUI\redirectToResource().
ilWorkspaceAccessHandler::getObjectsIShare | ( | ) |
Definition at line 515 of file class.ilWorkspaceAccessHandler.php.
References $ilUser, $res, and $row.
|
static |
Get all permissions to node.
int | $a_node_id |
Definition at line 233 of file class.ilWorkspaceAccessHandler.php.
References $ilSetting, $res, $row, ilWorkspaceAccessGUI\PERMISSION_ALL, and ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD.
Referenced by checkAccessOfUser(), and ilSharedResourceGUI\hasAccess().
|
static |
Definition at line 294 of file class.ilWorkspaceAccessHandler.php.
References $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 483 of file class.ilWorkspaceAccessHandler.php.
References $res, and ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD.
Referenced by ilSharedResourceGUI\checkPassword(), and ilObjWorkspaceFolderGUI\checkPassword().
ilWorkspaceAccessHandler::getSharedObjects | ( | $a_owner_id | ) |
Definition at line 344 of file class.ilWorkspaceAccessHandler.php.
References $res, $row, and getPossibleSharedTargets().
ilWorkspaceAccessHandler::getSharedOwners | ( | ) |
Definition at line 316 of file class.ilWorkspaceAccessHandler.php.
References $ilUser, $row, and getPossibleSharedTargets().
|
static |
Definition at line 504 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 279 of file class.ilWorkspaceAccessHandler.php.
References $ilSetting, and ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD.
ilWorkspaceAccessHandler::hasGlobalPermission | ( | $a_node_id | ) |
Definition at line 264 of file class.ilWorkspaceAccessHandler.php.
References $ilSetting, and ilWorkspaceAccessGUI\PERMISSION_ALL.
ilWorkspaceAccessHandler::hasRegisteredPermission | ( | $a_node_id | ) |
Definition at line 254 of file class.ilWorkspaceAccessHandler.php.
References ilWorkspaceAccessGUI\PERMISSION_REGISTERED.
|
static |
Definition at line 499 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 212 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().