|
ILIAS
trunk Revision v12.0_alpha-399-g579a087ced2
|
News Collection Service orchestrates all news-related operations and provides a high-level API for the news service. More...
Collaboration diagram for ILIAS\News\Domain\NewsCollectionService:Public Member Functions | |
| __construct (private readonly NewsRepository $repository, private readonly NewsCache $cache, private readonly UserContextResolver $user_context_resolver, private readonly \ilObjectDataCache $object_data, private readonly \ilAccessHandler $access,) | |
| getNewsForUser (\ilObjUser $user, NewsCriteria $criteria, bool $lazy=false) | |
| getNewsForContext (NewsContext $context, NewsCriteria $criteria, bool $lazy=false) | |
| invalidateCache (int $user_id) | |
Private Member Functions | |
| getNewsForContexts (array $contexts, NewsCriteria $criteria, bool $lazy) | |
| fetchContextData (array $contexts) | |
| filterByAccess (array $contexts, NewsCriteria $criteria) | |
| applyFinalProcessing (NewsCollection $collection, NewsCriteria $criteria) | |
| Apply the last steps of the news collection processing pipeline: Exclude, Limit. More... | |
News Collection Service orchestrates all news-related operations and provides a high-level API for the news service.
Definition at line 35 of file NewsCollectionService.php.
| ILIAS\News\Domain\NewsCollectionService::__construct | ( | private readonly NewsRepository | $repository, |
| private readonly NewsCache | $cache, | ||
| private readonly UserContextResolver | $user_context_resolver, | ||
| private readonly \ilObjectDataCache | $object_data, | ||
| private readonly \ilAccessHandler | $access | ||
| ) |
Definition at line 37 of file NewsCollectionService.php.
|
private |
Apply the last steps of the news collection processing pipeline: Exclude, Limit.
Definition at line 180 of file NewsCollectionService.php.
References ILIAS\News\Data\NewsCollection\exclude(), ILIAS\News\Data\NewsCriteria\getExcludedNewsIds(), and ILIAS\News\Data\NewsCriteria\getLimit().
Referenced by ILIAS\News\Domain\NewsCollectionService\getNewsForContext(), and ILIAS\News\Domain\NewsCollectionService\getNewsForUser().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| NewsContext[] | $contexts |
Definition at line 132 of file NewsCollectionService.php.
References $context.
Referenced by ILIAS\News\Domain\NewsCollectionService\getNewsForContexts().
Here is the caller graph for this function:
|
private |
| NewsContext[] | $contexts |
Definition at line 159 of file NewsCollectionService.php.
References $context, ILIAS\Repository\access(), ILIAS\News\Data\NewsCriteria\isOnlyPublic(), and ilObjectActivation\preloadData().
Referenced by ILIAS\News\Domain\NewsCollectionService\getNewsForContexts().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\News\Domain\NewsCollectionService::getNewsForContext | ( | NewsContext | $context, |
| NewsCriteria | $criteria, | ||
| bool | $lazy = false |
||
| ) |
Definition at line 86 of file NewsCollectionService.php.
References ILIAS\News\Domain\NewsCollectionService\applyFinalProcessing(), and ILIAS\News\Domain\NewsCollectionService\getNewsForContexts().
Here is the call graph for this function:
|
private |
| NewsContext[] | $contexts |
Definition at line 99 of file NewsCollectionService.php.
References ILIAS\News\Domain\NewsCollectionService\fetchContextData(), ILIAS\News\Domain\NewsCollectionService\filterByAccess(), ILIAS\News\Data\NewsCriteria\isPreventNesting(), and ILIAS\UI\examples\Deck\repository().
Referenced by ILIAS\News\Domain\NewsCollectionService\getNewsForContext(), and ILIAS\News\Domain\NewsCollectionService\getNewsForUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\News\Domain\NewsCollectionService::getNewsForUser | ( | \ilObjUser | $user, |
| NewsCriteria | $criteria, | ||
| bool | $lazy = false |
||
| ) |
Definition at line 46 of file NewsCollectionService.php.
References ILIAS\News\Domain\NewsCollectionService\applyFinalProcessing(), ilObject\getId(), ILIAS\News\Domain\NewsCollectionService\getNewsForContexts(), ILIAS\News\Data\NewsCriteria\getReadUserId(), ILIAS\News\Data\NewsCriteria\isIncludeReadStatus(), ILIAS\UI\examples\Deck\repository(), ILIAS\News\Data\NewsCriteria\validate(), and ILIAS\News\Data\NewsCriteria\withReadUserId().
Here is the call graph for this function:| ILIAS\News\Domain\NewsCollectionService::invalidateCache | ( | int | $user_id | ) |
Definition at line 91 of file NewsCollectionService.php.
References $user_id.