|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Access handler for portfolio NOTE: This file needs to stay in the classes directory, WAC will be confused otherwise. More...
Inheritance diagram for ilPortfolioAccessHandler:
Collaboration diagram for ilPortfolioAccessHandler:Public Member Functions | |
| __construct () | |
| checkAccess (string $a_permission, string $a_cmd, int $a_node_id, string $a_type="") | |
| check access for an object More... | |
| checkAccessOfUser (int $a_user_id, string $a_permission, string $a_cmd, int $a_node_id, string $a_type="") | |
| check access for an object More... | |
| setPermissions (int $a_parent_node_id, int $a_node_id) | |
| Set permissions after creating node/object. More... | |
| addPermission (int $a_node_id, int $a_object_id, string $a_extended_data=null) | |
| Add permission to node for object. More... | |
| removePermission (int $a_node_id, int $a_object_id=null) | |
| Remove permission[s] (for object) to node. More... | |
| getPermissions (int $a_node_id) | |
| Get all permissions to node. More... | |
| hasRegisteredPermission (int $a_node_id) | |
| hasGlobalPermission (int $a_node_id) | |
| hasGlobalPasswordPermission (int $a_node_id) | |
| getObjectsIShare (bool $a_online_only=true) | |
| getSharedOwners () | |
| getSharedObjects (int $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) | |
| WAC check. More... | |
| editPortfolios () | |
| Is portfolio editing (general feature) enabled. More... | |
| addMissingPermissionForObjects (int $node_id, array $objects) | |
Static Public Member Functions | |
| static | _getPermissions (int $a_node_id) |
| Get all permissions to node. More... | |
| static | getPossibleSharedTargets () |
| static | getSharedNodePassword (int $a_node_id) |
| static | keepSharedSessionPassword (int $a_node_id, string $a_password) |
| static | getSharedSessionPassword (int $a_node_id) |
Protected Member Functions | |
| syncProfile (int $a_node_id) | |
| sendSharedNotification (int $node_id, array $object_ids) | |
Protected Attributes | |
| AccessSessionRepository | $session_repo |
| ilLanguage | $lng |
| ilObjUser | $user |
| ilRbacReview | $rbacreview |
| ilSetting | $settings |
| ilDBInterface | $db |
| ilAccessHandler | $access |
Access handler for portfolio NOTE: This file needs to stay in the classes directory, WAC will be confused otherwise.
Definition at line 26 of file class.ilPortfolioAccessHandler.php.
| ilPortfolioAccessHandler::__construct | ( | ) |
Definition at line 36 of file class.ilPortfolioAccessHandler.php.
References $DIC, ILIAS\Repository\access(), ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), ILIAS\Repository\settings(), and ILIAS\Repository\user().
Here is the call graph for this function:
|
static |
Get all permissions to node.
Definition at line 251 of file class.ilPortfolioAccessHandler.php.
References $DIC, $ilDB, and $res.
Referenced by ilSharedResourceGUI\hasAccess().
Here is the caller graph for this function:| ilPortfolioAccessHandler::addMissingPermissionForObjects | ( | int | $node_id, |
| array | $objects | ||
| ) |
Definition at line 626 of file class.ilPortfolioAccessHandler.php.
References addPermission(), getPermissions(), and sendSharedNotification().
Here is the call graph for this function:| ilPortfolioAccessHandler::addPermission | ( | int | $a_node_id, |
| int | $a_object_id, | ||
| string | $a_extended_data = null |
||
| ) |
Add permission to node for object.
Definition at line 189 of file class.ilPortfolioAccessHandler.php.
References $db, $ilDB, $user, and syncProfile().
Referenced by addMissingPermissionForObjects().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPortfolioAccessHandler::canBeDelivered | ( | ilWACPath | $ilWACPath | ) |
WAC check.
Implements ilWACCheckingClass.
Definition at line 591 of file class.ilPortfolioAccessHandler.php.
References $access, $ref_id, $results, $user, ilObject\_getAllReferences(), ilObject\_lookupType(), checkAccessOfUser(), and ilWACPath\getPath().
Here is the call graph for this function:| ilPortfolioAccessHandler::checkAccess | ( | string | $a_permission, |
| string | $a_cmd, | ||
| int | $a_node_id, | ||
| string | $a_type = "" |
||
| ) |
check access for an object
Definition at line 57 of file class.ilPortfolioAccessHandler.php.
References $user, and checkAccessOfUser().
Here is the call graph for this function:| ilPortfolioAccessHandler::checkAccessOfUser | ( | int | $a_user_id, |
| string | $a_permission, | ||
| string | $a_cmd, | ||
| int | $a_node_id, | ||
| string | $a_type = "" |
||
| ) |
check access for an object
Definition at line 71 of file class.ilPortfolioAccessHandler.php.
References $ilSetting, $rbacreview, $settings, $user, ilCourseParticipants\_getInstanceByObjId(), ilGroupParticipants\_getInstanceByObjId(), ilObject\_lookupType(), ANONYMOUS_USER_ID, ilRbacReview\isAssigned(), ilWorkspaceAccessGUI\PERMISSION_ALL, ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD, and ilWorkspaceAccessGUI\PERMISSION_REGISTERED.
Referenced by canBeDelivered(), and checkAccess().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPortfolioAccessHandler::editPortfolios | ( | ) |
Is portfolio editing (general feature) enabled.
Definition at line 621 of file class.ilPortfolioAccessHandler.php.
References ILIAS\Repository\settings().
Here is the call graph for this function:| ilPortfolioAccessHandler::findSharedObjects | ( | array | $a_filter = null, |
| array | $a_crs_ids = null, |
||
| array | $a_grp_ids = null |
||
| ) |
Definition at line 416 of file class.ilPortfolioAccessHandler.php.
References $db, $ilDB, $res, $user, ilParticipants\getInstanceByObjId(), IL_CAL_DATE, IL_CAL_DATETIME, IL_CAL_UNIX, ilWorkspaceAccessGUI\PERMISSION_ALL, ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD, and ilWorkspaceAccessGUI\PERMISSION_REGISTERED.
Here is the call graph for this function:| ilPortfolioAccessHandler::getObjectsIShare | ( | bool | $a_online_only = true | ) |
Definition at line 300 of file class.ilPortfolioAccessHandler.php.
References $db, $ilDB, $res, and $user.
Referenced by ilPortfolioRepositoryGUI\getPortfolioList().
Here is the caller graph for this function:| ilPortfolioAccessHandler::getPermissions | ( | int | $a_node_id | ) |
Get all permissions to node.
Definition at line 243 of file class.ilPortfolioAccessHandler.php.
Referenced by addMissingPermissionForObjects().
Here is the caller graph for this function:
|
static |
Definition at line 326 of file class.ilPortfolioAccessHandler.php.
References $DIC, ilParticipants\_getMembershipByType(), ilWorkspaceAccessGUI\PERMISSION_ALL, ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD, and ilWorkspaceAccessGUI\PERMISSION_REGISTERED.
Here is the call graph for this function:| ilPortfolioAccessHandler::getShardObjectsDataForUserIds | ( | array | $a_owner_ids | ) |
|
static |
Definition at line 517 of file class.ilPortfolioAccessHandler.php.
References $DIC, $ilDB, $res, and ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD.
Referenced by ilSharedResourceGUI\checkPassword().
Here is the caller graph for this function:| ilPortfolioAccessHandler::getSharedObjects | ( | int | $a_owner_id | ) |
| ilPortfolioAccessHandler::getSharedOwners | ( | ) |
Definition at line 344 of file class.ilPortfolioAccessHandler.php.
References $db, $ilDB, and $user.
|
static |
Definition at line 546 of file class.ilPortfolioAccessHandler.php.
References $DIC, and ILIAS\Portfolio\Access\AccessSessionRepository\getSharedSessionPassword().
Here is the call graph for this function:| ilPortfolioAccessHandler::hasGlobalPasswordPermission | ( | int | $a_node_id | ) |
Definition at line 289 of file class.ilPortfolioAccessHandler.php.
References $db, $ilDB, and ilWorkspaceAccessGUI\PERMISSION_ALL_PASSWORD.
| ilPortfolioAccessHandler::hasGlobalPermission | ( | int | $a_node_id | ) |
Definition at line 278 of file class.ilPortfolioAccessHandler.php.
References $db, $ilDB, and ilWorkspaceAccessGUI\PERMISSION_ALL.
Referenced by syncProfile().
Here is the caller graph for this function:| ilPortfolioAccessHandler::hasRegisteredPermission | ( | int | $a_node_id | ) |
Definition at line 267 of file class.ilPortfolioAccessHandler.php.
References $db, $ilDB, and ilWorkspaceAccessGUI\PERMISSION_REGISTERED.
Referenced by syncProfile().
Here is the caller graph for this function:
|
static |
Definition at line 534 of file class.ilPortfolioAccessHandler.php.
References $DIC, and ILIAS\Portfolio\Access\AccessSessionRepository\setSharedSessionPassword().
Referenced by ilSharedResourceGUI\checkPassword().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPortfolioAccessHandler::removePermission | ( | int | $a_node_id, |
| int | $a_object_id = null |
||
| ) |
Remove permission[s] (for object) to node.
Definition at line 221 of file class.ilPortfolioAccessHandler.php.
References $db, $ilDB, and syncProfile().
Here is the call graph for this function:
|
protected |
Definition at line 641 of file class.ilPortfolioAccessHandler.php.
Referenced by addMissingPermissionForObjects().
Here is the caller graph for this function:| ilPortfolioAccessHandler::setPermissions | ( | int | $a_parent_node_id, |
| int | $a_node_id | ||
| ) |
Set permissions after creating node/object.
| int | $a_parent_node_id | |
| int | $a_node_id |
Definition at line 179 of file class.ilPortfolioAccessHandler.php.
|
protected |
Definition at line 557 of file class.ilPortfolioAccessHandler.php.
References $user, ilObjPortfolio\getDefaultPortfolio(), hasGlobalPermission(), and hasRegisteredPermission().
Referenced by addPermission(), and removePermission().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 34 of file class.ilPortfolioAccessHandler.php.
Referenced by canBeDelivered().
|
protected |
Definition at line 33 of file class.ilPortfolioAccessHandler.php.
Referenced by addPermission(), findSharedObjects(), getObjectsIShare(), getShardObjectsDataForUserIds(), getSharedObjects(), getSharedOwners(), hasGlobalPasswordPermission(), hasGlobalPermission(), hasRegisteredPermission(), and removePermission().
|
protected |
Definition at line 29 of file class.ilPortfolioAccessHandler.php.
|
protected |
Definition at line 31 of file class.ilPortfolioAccessHandler.php.
Referenced by checkAccessOfUser().
|
protected |
Definition at line 28 of file class.ilPortfolioAccessHandler.php.
|
protected |
Definition at line 32 of file class.ilPortfolioAccessHandler.php.
Referenced by checkAccessOfUser().
|
protected |
Definition at line 30 of file class.ilPortfolioAccessHandler.php.
Referenced by addPermission(), canBeDelivered(), checkAccess(), checkAccessOfUser(), findSharedObjects(), getObjectsIShare(), getSharedOwners(), and syncProfile().