|
ILIAS
trunk Revision v12.0_alpha-399-g579a087ced2
|
User Context Resolver resolves which contexts a user can access for news operations. More...
Collaboration diagram for ILIAS\News\Domain\UserContextResolver:Public Member Functions | |
| __construct (protected readonly \ilFavouritesDBRepository $favourites_repository, protected readonly \ilAccessHandler $access, protected readonly \ilTree $tree, protected readonly NewsCache $cache) | |
| getAccessibleContexts (\ilObjUser $user, NewsCriteria $criteria) | |
Private Member Functions | |
| resolveUserContexts (\ilObjUser $user, NewsCriteria $criteria) | |
| shouldIncludePersonalDesktop (\ilObjUser $user) | |
| getPersonalDesktopContexts (\ilObjUser $user) | |
| getMembershipContexts (\ilObjUser $user) | |
| filterContexts (\ilObjUser $user, array $contexts, NewsCriteria $criteria) | |
| Deduplicate and filter contexts by access. More... | |
User Context Resolver resolves which contexts a user can access for news operations.
Handles user permissions, favorites, memberships, and access control.
Definition at line 31 of file UserContextResolver.php.
| ILIAS\News\Domain\UserContextResolver::__construct | ( | protected readonly \ilFavouritesDBRepository | $favourites_repository, |
| protected readonly \ilAccessHandler | $access, | ||
| protected readonly \ilTree | $tree, | ||
| protected readonly NewsCache | $cache | ||
| ) |
Definition at line 33 of file UserContextResolver.php.
|
private |
Deduplicate and filter contexts by access.
| NewsContext[] | $contexts |
Definition at line 121 of file UserContextResolver.php.
References $context, ilObject\getId(), and ILIAS\News\Data\NewsCriteria\isOnlyPublic().
Referenced by ILIAS\News\Domain\UserContextResolver\resolveUserContexts().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\News\Domain\UserContextResolver::getAccessibleContexts | ( | \ilObjUser | $user, |
| NewsCriteria | $criteria | ||
| ) |
Definition at line 44 of file UserContextResolver.php.
References ilObject\getId(), and ILIAS\News\Domain\UserContextResolver\resolveUserContexts().
Here is the call graph for this function:
|
private |
Definition at line 101 of file UserContextResolver.php.
References $ref_id, ilObject\_getAllReferences(), ilParticipants\_getMembershipByType(), and ilObject\getId().
Referenced by ILIAS\News\Domain\UserContextResolver\resolveUserContexts().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 88 of file UserContextResolver.php.
References ilObject\getId().
Referenced by ILIAS\News\Domain\UserContextResolver\resolveUserContexts().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 64 of file UserContextResolver.php.
References ILIAS\News\Domain\UserContextResolver\filterContexts(), ILIAS\News\Domain\UserContextResolver\getMembershipContexts(), ILIAS\News\Domain\UserContextResolver\getPersonalDesktopContexts(), and ILIAS\News\Domain\UserContextResolver\shouldIncludePersonalDesktop().
Referenced by ILIAS\News\Domain\UserContextResolver\getAccessibleContexts().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 80 of file UserContextResolver.php.
References ilObjUser\getPref().
Referenced by ILIAS\News\Domain\UserContextResolver\resolveUserContexts().
Here is the call graph for this function:
Here is the caller graph for this function: