19declare(strict_types=1);
47 bool $include_auto_entries,
53 limit: $items_per_load,
54 no_auto_generated: !$include_auto_entries,
55 excluded_news_ids: $excluded,
56 read_user_id: $this->domain->
user()->
getId()
60 return $this->domain->collection()->getNewsForContainer(
65 $this->domain->user()->getId()
68 return $this->domain->collection()->getNewsForUser(
69 $this->domain->user(),
77 return $this->repo->news()->findById($news_id);
Optimized News Collection with memory-efficient data structures to support large news feeds.
News Criteria DTO for querying news items supports caching, JSON serialization, and validation.
News Item DTO for transfer of news items.
Repository internal data service.
Notes internal repo service.
getNewsData(int $ref_id, int $context_obj_id, string $context_type, int $period, bool $include_auto_entries, int $items_per_load, array $excluded)
__construct(protected InternalDataService $data, protected InternalRepoService $repo, protected InternalDomainService $domain)
getNewsItem(int $news_id)