|
ILIAS
trunk Revision v12.0_alpha-1541-g23eaa5e013d
|
News Criteria DTO for querying news items supports caching, JSON serialization, and validation. More...
Inheritance diagram for ILIAS\News\Data\NewsCriteria:
Collaboration diagram for ILIAS\News\Data\NewsCriteria:Public Member Functions | |
| getPeriod () | |
| isOnlyPublic () | |
| getMinPriority () | |
| getMaxPriority () | |
| getLimit () | |
| isPreventNesting () | |
| isNoAutoGenerated () | |
| getExcludedNewsIds () | |
| isIncludeReadStatus () | |
| getReadUserId () | |
| getStartDates () | |
| withPeriod (?int $period) | |
| withOnlyPublic (bool $only_public) | |
| withMinPriority (?int $min_priority) | |
| withMaxPriority (?int $max_priority) | |
| withLimit (?int $limit) | |
| withPreventNesting (bool $stop_nesting) | |
| withNoAutoGenerated (bool $no_auto_generated) | |
| withExcludedNewsIds (array $excluded_news_ids) | |
| withIncludeReadStatus (bool $include_read_status) | |
| withReadUserId (?int $read_user_id) | |
| withStartDates (array $start_dates) | |
| jsonSerialize () | |
| toArray () | |
| hasPriorityFilters () | |
| Check if criteria has priority filters. More... | |
| validate () | |
| Validate criteria parameters. More... | |
News Criteria DTO for querying news items supports caching, JSON serialization, and validation.
Definition at line 28 of file NewsCriteria.php.
| ILIAS\News\Data\NewsCriteria::getExcludedNewsIds | ( | ) |
Definition at line 87 of file NewsCriteria.php.
Referenced by ILIAS\News\Domain\NewsCollectionService\applyFinalProcessing().
Here is the caller graph for this function:| ILIAS\News\Data\NewsCriteria::getLimit | ( | ) |
Definition at line 72 of file NewsCriteria.php.
Referenced by ILIAS\News\Domain\NewsCollectionService\applyFinalProcessing().
Here is the caller graph for this function:| ILIAS\News\Data\NewsCriteria::getMaxPriority | ( | ) |
Definition at line 67 of file NewsCriteria.php.
Referenced by ILIAS\News\Persistence\NewsRepository\buildBatchQuery(), and ILIAS\News\Persistence\NewsCache\generateL3Key().
Here is the caller graph for this function:| ILIAS\News\Data\NewsCriteria::getMinPriority | ( | ) |
Definition at line 62 of file NewsCriteria.php.
Referenced by ILIAS\News\Persistence\NewsRepository\buildBatchQuery(), and ILIAS\News\Persistence\NewsCache\generateL3Key().
Here is the caller graph for this function:| ILIAS\News\Data\NewsCriteria::getPeriod | ( | ) |
Definition at line 52 of file NewsCriteria.php.
Referenced by ILIAS\News\Persistence\NewsRepository\buildBatchQuery(), ILIAS\News\Persistence\NewsRepository\filterContext(), and ILIAS\News\Persistence\NewsCache\generateL3Key().
Here is the caller graph for this function:| ILIAS\News\Data\NewsCriteria::getReadUserId | ( | ) |
Definition at line 97 of file NewsCriteria.php.
Referenced by ILIAS\News\Persistence\NewsRepository\buildBatchQuery(), ILIAS\News\Persistence\NewsRepository\findByContextsBatch(), ILIAS\News\Persistence\NewsRepository\findByContextsBatchLazy(), and ILIAS\News\Domain\NewsCollectionService\getNewsForUser().
Here is the caller graph for this function:| ILIAS\News\Data\NewsCriteria::getStartDates | ( | ) |
Definition at line 105 of file NewsCriteria.php.
Referenced by ILIAS\News\Persistence\NewsRepository\buildBatchQuery(), ILIAS\News\Persistence\NewsRepository\filterContext(), and ILIAS\News\Persistence\NewsCache\generateL3Key().
Here is the caller graph for this function:| ILIAS\News\Data\NewsCriteria::hasPriorityFilters | ( | ) |
Check if criteria has priority filters.
Definition at line 219 of file NewsCriteria.php.
| ILIAS\News\Data\NewsCriteria::isIncludeReadStatus | ( | ) |
Definition at line 92 of file NewsCriteria.php.
Referenced by ILIAS\News\Persistence\NewsRepository\buildBatchQuery(), ILIAS\News\Persistence\NewsRepository\findByContextsBatch(), ILIAS\News\Persistence\NewsRepository\findByContextsBatchLazy(), and ILIAS\News\Domain\NewsCollectionService\getNewsForUser().
Here is the caller graph for this function:| ILIAS\News\Data\NewsCriteria::isNoAutoGenerated | ( | ) |
Definition at line 82 of file NewsCriteria.php.
Referenced by ILIAS\News\Persistence\NewsRepository\buildBatchQuery(), and ILIAS\News\Persistence\NewsCache\generateL3Key().
Here is the caller graph for this function:| ILIAS\News\Data\NewsCriteria::isOnlyPublic | ( | ) |
Definition at line 57 of file NewsCriteria.php.
Referenced by ILIAS\News\Persistence\NewsRepository\buildBatchQuery(), ILIAS\News\Domain\NewsCollectionService\filterByAccess(), ILIAS\News\Domain\UserContextResolver\filterContexts(), ILIAS\News\Persistence\NewsCache\generateL3Key(), ILIAS\News\Persistence\NewsCache\getUserContextAccess(), and ILIAS\News\Persistence\NewsCache\storeUserContextAccess().
Here is the caller graph for this function:| ILIAS\News\Data\NewsCriteria::isPreventNesting | ( | ) |
Definition at line 77 of file NewsCriteria.php.
Referenced by ILIAS\News\Domain\NewsCollectionService\getNewsForContexts().
Here is the caller graph for this function:| ILIAS\News\Data\NewsCriteria::jsonSerialize | ( | ) |
Definition at line 194 of file NewsCriteria.php.
References ILIAS\News\Data\NewsCriteria\toArray().
Here is the call graph for this function:| ILIAS\News\Data\NewsCriteria::toArray | ( | ) |
Definition at line 199 of file NewsCriteria.php.
Referenced by ILIAS\News\Data\NewsCriteria\jsonSerialize().
Here is the caller graph for this function:| ILIAS\News\Data\NewsCriteria::validate | ( | ) |
Validate criteria parameters.
Definition at line 227 of file NewsCriteria.php.
Referenced by ILIAS\News\Domain\NewsCollectionService\getNewsForUser().
Here is the caller graph for this function:| ILIAS\News\Data\NewsCriteria::withExcludedNewsIds | ( | array | $excluded_news_ids | ) |
Definition at line 159 of file NewsCriteria.php.
| ILIAS\News\Data\NewsCriteria::withIncludeReadStatus | ( | bool | $include_read_status | ) |
Definition at line 166 of file NewsCriteria.php.
| ILIAS\News\Data\NewsCriteria::withLimit | ( | ?int | $limit | ) |
Definition at line 138 of file NewsCriteria.php.
| ILIAS\News\Data\NewsCriteria::withMaxPriority | ( | ?int | $max_priority | ) |
Definition at line 131 of file NewsCriteria.php.
| ILIAS\News\Data\NewsCriteria::withMinPriority | ( | ?int | $min_priority | ) |
Definition at line 124 of file NewsCriteria.php.
| ILIAS\News\Data\NewsCriteria::withNoAutoGenerated | ( | bool | $no_auto_generated | ) |
Definition at line 152 of file NewsCriteria.php.
| ILIAS\News\Data\NewsCriteria::withOnlyPublic | ( | bool | $only_public | ) |
Definition at line 117 of file NewsCriteria.php.
| ILIAS\News\Data\NewsCriteria::withPeriod | ( | ?int | $period | ) |
Definition at line 110 of file NewsCriteria.php.
| ILIAS\News\Data\NewsCriteria::withPreventNesting | ( | bool | $stop_nesting | ) |
Definition at line 145 of file NewsCriteria.php.
| ILIAS\News\Data\NewsCriteria::withReadUserId | ( | ?int | $read_user_id | ) |
Definition at line 173 of file NewsCriteria.php.
Referenced by ILIAS\News\Domain\NewsCollectionService\getNewsForUser().
Here is the caller graph for this function:| ILIAS\News\Data\NewsCriteria::withStartDates | ( | array | $start_dates | ) |
| array<int,DateTimeImmutable> | $start_dates |
Definition at line 183 of file NewsCriteria.php.
Referenced by ILIAS\News\Domain\NewsCollectionService\appendStartDateFilter().
Here is the caller graph for this function: