|
ILIAS
trunk Revision v12.0_alpha-413-g215742c0453
|
News Aggregation Strategy Interface defines the contract for news aggregation strategies. More...
Inheritance diagram for ILIAS\News\Aggregation\NewsAggregationStrategy:
Collaboration diagram for ILIAS\News\Aggregation\NewsAggregationStrategy:Public Member Functions | |
| aggregate (NewsContext $base_context) | |
| shouldSkip (NewsContext $context) | |
| Returns true if the provided context should not be aggregated. More... | |
| isRecursive () | |
| Returns true if the strategy already resolves contexts recursively (which is more performant in some cases). More... | |
News Aggregation Strategy Interface defines the contract for news aggregation strategies.
Each strategy implements specific aggregation logic for different context types.
Definition at line 29 of file NewsAggregationStrategy.php.
| ILIAS\News\Aggregation\NewsAggregationStrategy::aggregate | ( | NewsContext | $base_context | ) |
Implemented in ILIAS\News\Aggregation\SubtreeAggregationStrategy.
| ILIAS\News\Aggregation\NewsAggregationStrategy::isRecursive | ( | ) |
Returns true if the strategy already resolves contexts recursively (which is more performant in some cases).
If it returns false, the returned contexts will be enqueued by the aggregator to be resolved iteratively.
Implemented in ILIAS\News\Aggregation\SubtreeAggregationStrategy.
| ILIAS\News\Aggregation\NewsAggregationStrategy::shouldSkip | ( | NewsContext | $context | ) |
Returns true if the provided context should not be aggregated.
This method may check criteria or external conditions.
Implemented in ILIAS\News\Aggregation\CategoryAggregationStrategy, and ILIAS\News\Aggregation\SubtreeAggregationStrategy.