ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Access handler for portfolio. More...
Public Member Functions | |
__construct () | |
checkAccess ($a_permission, $a_cmd, $a_node_id, $a_type="") | |
check access for an object More... | |
checkAccessOfUser ($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) | |
getObjectsIShare ($a_online_only=true) | |
getSharedOwners () | |
getSharedObjects ($a_owner_id) | |
getShardObjectsDataForUserIds (array $a_owner_ids) | |
findSharedObjects (array $a_filter=null, array $a_crs_ids=null, array $a_grp_ids=null) | |
canBeDelivered (ilWACPath $ilWACPath) | |
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) |
Protected Member Functions | |
syncProfile ($a_node_id) | |
Protected Attributes | |
$lng | |
$user | |
$rbacreview | |
$settings | |
$db | |
$access | |
Access handler for portfolio.
Definition at line 19 of file class.ilPortfolioAccessHandler.php.
ilPortfolioAccessHandler::__construct | ( | ) |
Definition at line 51 of file class.ilPortfolioAccessHandler.php.
References $DIC, $lng, settings(), and user().
|
static |
Get all permissions to node.
int | $a_node_id |
Definition at line 268 of file class.ilPortfolioAccessHandler.php.
References $DIC, $ilDB, $res, and $row.
Referenced by ilSharedResourceGUI\hasAccess().
ilPortfolioAccessHandler::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 208 of file class.ilPortfolioAccessHandler.php.
References $db, $ilDB, $ilUser, $user, and syncProfile().
ilPortfolioAccessHandler::canBeDelivered | ( | ilWACPath | $ilWACPath | ) |
ilWACPath | $ilWACPath |
Implements ilWACCheckingClass.
Definition at line 590 of file class.ilPortfolioAccessHandler.php.
References $access, $ilUser, $results, $user, ilObject\_getAllReferences(), ilObject\_lookupType(), checkAccessOfUser(), and ilWACPath\getPath().
ilPortfolioAccessHandler::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 74 of file class.ilPortfolioAccessHandler.php.
References $a_type, $ilUser, $user, and checkAccessOfUser().
ilPortfolioAccessHandler::checkAccessOfUser | ( | $a_user_id, | |
$a_permission, | |||
$a_cmd, | |||
$a_node_id, | |||
$a_type = "" |
|||
) |
check access for an object
integer | $a_user_id | |
string | $a_permission | |
string | $a_cmd | |
int | $a_node_id | |
string | $a_type | (optional) |
Definition at line 91 of file class.ilPortfolioAccessHandler.php.
References $ilSetting, $ilUser, $rbacreview, $settings, $user, ilGroupParticipants\_getInstanceByObjId(), ilCourseParticipants\_getInstanceByObjId(), ilObject\_lookupType(), ilWorkspaceAccessGUI\PERMISSION_ALL, ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD, and ilWorkspaceAccessGUI\PERMISSION_REGISTERED.
Referenced by canBeDelivered(), and checkAccess().
ilPortfolioAccessHandler::findSharedObjects | ( | array | $a_filter = null , |
array | $a_crs_ids = null , |
||
array | $a_grp_ids = null |
||
) |
Definition at line 428 of file class.ilPortfolioAccessHandler.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.
ilPortfolioAccessHandler::getObjectsIShare | ( | $a_online_only = true | ) |
ilPortfolioAccessHandler::getPermissions | ( | $a_node_id | ) |
Get all permissions to node.
int | $a_node_id |
Definition at line 257 of file class.ilPortfolioAccessHandler.php.
|
static |
Definition at line 338 of file class.ilPortfolioAccessHandler.php.
References $DIC, $ilUser, ilParticipants\_getMembershipByType(), ilWorkspaceAccessGUI\PERMISSION_ALL, ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD, and ilWorkspaceAccessGUI\PERMISSION_REGISTERED.
Referenced by findSharedObjects(), getShardObjectsDataForUserIds(), getSharedObjects(), and getSharedOwners().
ilPortfolioAccessHandler::getShardObjectsDataForUserIds | ( | array | $a_owner_ids | ) |
Definition at line 406 of file class.ilPortfolioAccessHandler.php.
References $db, $ilDB, $res, $row, and getPossibleSharedTargets().
|
static |
Definition at line 527 of file class.ilPortfolioAccessHandler.php.
References $DIC, $ilDB, $res, and ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD.
Referenced by ilSharedResourceGUI\checkPassword().
ilPortfolioAccessHandler::getSharedObjects | ( | $a_owner_id | ) |
Definition at line 385 of file class.ilPortfolioAccessHandler.php.
References $db, $ilDB, $res, $row, and getPossibleSharedTargets().
ilPortfolioAccessHandler::getSharedOwners | ( | ) |
Definition at line 358 of file class.ilPortfolioAccessHandler.php.
References $db, $ilDB, $ilUser, $row, $user, and getPossibleSharedTargets().
|
static |
ilPortfolioAccessHandler::hasGlobalPasswordPermission | ( | $a_node_id | ) |
Definition at line 303 of file class.ilPortfolioAccessHandler.php.
References $db, $ilDB, and ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD.
ilPortfolioAccessHandler::hasGlobalPermission | ( | $a_node_id | ) |
Definition at line 293 of file class.ilPortfolioAccessHandler.php.
References $db, $ilDB, and ilWorkspaceAccessGUI\PERMISSION_ALL.
Referenced by syncProfile().
ilPortfolioAccessHandler::hasRegisteredPermission | ( | $a_node_id | ) |
Definition at line 283 of file class.ilPortfolioAccessHandler.php.
References $db, $ilDB, and ilWorkspaceAccessGUI\PERMISSION_REGISTERED.
Referenced by syncProfile().
|
static |
Definition at line 544 of file class.ilPortfolioAccessHandler.php.
References $_SESSION.
Referenced by ilSharedResourceGUI\checkPassword().
ilPortfolioAccessHandler::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.ilPortfolioAccessHandler.php.
References $db, $ilDB, $query, and syncProfile().
ilPortfolioAccessHandler::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.ilPortfolioAccessHandler.php.
|
protected |
Definition at line 554 of file class.ilPortfolioAccessHandler.php.
References $ilUser, $user, ilObjPortfolio\getDefaultPortfolio(), hasGlobalPermission(), hasRegisteredPermission(), and ilObjPortfolio\setUserDefault().
Referenced by addPermission(), and removePermission().
|
protected |
Definition at line 49 of file class.ilPortfolioAccessHandler.php.
Referenced by canBeDelivered().
|
protected |
Definition at line 44 of file class.ilPortfolioAccessHandler.php.
Referenced by addPermission(), findSharedObjects(), getObjectsIShare(), getShardObjectsDataForUserIds(), getSharedObjects(), getSharedOwners(), hasGlobalPasswordPermission(), hasGlobalPermission(), hasRegisteredPermission(), and removePermission().
|
protected |
Definition at line 24 of file class.ilPortfolioAccessHandler.php.
Referenced by __construct().
|
protected |
Definition at line 34 of file class.ilPortfolioAccessHandler.php.
Referenced by checkAccessOfUser().
|
protected |
Definition at line 39 of file class.ilPortfolioAccessHandler.php.
Referenced by checkAccessOfUser().
|
protected |
Definition at line 29 of file class.ilPortfolioAccessHandler.php.
Referenced by addPermission(), canBeDelivered(), checkAccess(), checkAccessOfUser(), findSharedObjects(), getObjectsIShare(), getSharedOwners(), and syncProfile().