|
ILIAS
trunk Revision v12.0_alpha-399-g579a087ced2
|
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 | |
| __construct (private ?DateTimeImmutable $start_date=null, private ?int $period=null, private bool $only_public=false, private ?int $min_priority=null, private ?int $max_priority=null, private ?int $limit=null, private bool $prevent_nesting=false, private bool $no_auto_generated=false, private array $excluded_news_ids=[], private ?bool $include_read_status=null, private ?int $read_user_id=null,) | |
| getStartDate () | |
| getPeriod () | |
| isOnlyPublic () | |
| getMinPriority () | |
| getMaxPriority () | |
| getLimit () | |
| isPreventNesting () | |
| isNoAutoGenerated () | |
| getExcludedNewsIds () | |
| isIncludeReadStatus () | |
| getReadUserId () | |
| withStartDate (?DateTimeImmutable $start_date) | |
| 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) | |
| 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::__construct | ( | private ?DateTimeImmutable | $start_date = null, |
| private ?int | $period = null, |
||
| private bool | $only_public = false, |
||
| private ?int | $min_priority = null, |
||
| private ?int | $max_priority = null, |
||
| private ?int | $limit = null, |
||
| private bool | $prevent_nesting = false, |
||
| private bool | $no_auto_generated = false, |
||
| private array | $excluded_news_ids = [], |
||
| private ?bool | $include_read_status = null, |
||
| private ?int | $read_user_id = null |
||
| ) |
Definition at line 30 of file NewsCriteria.php.
| ILIAS\News\Data\NewsCriteria::getExcludedNewsIds | ( | ) |
Definition at line 91 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 76 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 71 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 66 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 56 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::getReadUserId | ( | ) |
Definition at line 101 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::getStartDate | ( | ) |
Definition at line 51 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::hasPriorityFilters | ( | ) |
Check if criteria has priority filters.
Definition at line 212 of file NewsCriteria.php.
| ILIAS\News\Data\NewsCriteria::isIncludeReadStatus | ( | ) |
Definition at line 96 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 86 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 61 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\getUserContextAccess(), and ILIAS\News\Persistence\NewsCache\storeUserContextAccess().
Here is the caller graph for this function:| ILIAS\News\Data\NewsCriteria::isPreventNesting | ( | ) |
Definition at line 81 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 187 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 192 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 220 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 162 of file NewsCriteria.php.
| ILIAS\News\Data\NewsCriteria::withIncludeReadStatus | ( | bool | $include_read_status | ) |
Definition at line 169 of file NewsCriteria.php.
| ILIAS\News\Data\NewsCriteria::withLimit | ( | ?int | $limit | ) |
Definition at line 141 of file NewsCriteria.php.
| ILIAS\News\Data\NewsCriteria::withMaxPriority | ( | ?int | $max_priority | ) |
Definition at line 134 of file NewsCriteria.php.
| ILIAS\News\Data\NewsCriteria::withMinPriority | ( | ?int | $min_priority | ) |
Definition at line 127 of file NewsCriteria.php.
| ILIAS\News\Data\NewsCriteria::withNoAutoGenerated | ( | bool | $no_auto_generated | ) |
Definition at line 155 of file NewsCriteria.php.
| ILIAS\News\Data\NewsCriteria::withOnlyPublic | ( | bool | $only_public | ) |
Definition at line 120 of file NewsCriteria.php.
| ILIAS\News\Data\NewsCriteria::withPeriod | ( | ?int | $period | ) |
Definition at line 113 of file NewsCriteria.php.
| ILIAS\News\Data\NewsCriteria::withPreventNesting | ( | bool | $stop_nesting | ) |
Definition at line 148 of file NewsCriteria.php.
| ILIAS\News\Data\NewsCriteria::withReadUserId | ( | ?int | $read_user_id | ) |
Definition at line 176 of file NewsCriteria.php.
Referenced by ILIAS\News\Domain\NewsCollectionService\getNewsForUser().
Here is the caller graph for this function:| ILIAS\News\Data\NewsCriteria::withStartDate | ( | ?DateTimeImmutable | $start_date | ) |
Definition at line 106 of file NewsCriteria.php.