|
ILIAS
trunk Revision v12.0_alpha-399-g579a087ced2
|
Subtree Aggregation Strategy aggregates related contexts for groups and courses. More...
Inheritance diagram for ILIAS\News\Aggregation\SubtreeAggregationStrategy:
Collaboration diagram for ILIAS\News\Aggregation\SubtreeAggregationStrategy:Public Member Functions | |
| __construct (protected readonly \ilTree $tree) | |
| aggregate (NewsContext $base_context) | |
| @ineritDoc More... | |
| isRecursive () | |
| Returns true if the strategy already resolves contexts recursively (which is more performant in some cases). More... | |
| shouldSkip (NewsContext $context) | |
| Returns true if the provided context should not be aggregated. More... | |
| 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... | |
Subtree Aggregation Strategy aggregates related contexts for groups and courses.
Definition at line 28 of file SubtreeAggregationStrategy.php.
| ILIAS\News\Aggregation\SubtreeAggregationStrategy::__construct | ( | protected readonly \ilTree | $tree | ) |
Definition at line 30 of file SubtreeAggregationStrategy.php.
| ILIAS\News\Aggregation\SubtreeAggregationStrategy::aggregate | ( | NewsContext | $base_context | ) |
@ineritDoc
Implements ILIAS\News\Aggregation\NewsAggregationStrategy.
Definition at line 37 of file SubtreeAggregationStrategy.php.
References ILIAS\News\Data\NewsContext\getLevel(), and ILIAS\News\Data\NewsContext\getRefId().
Here is the call graph for this function:| ILIAS\News\Aggregation\SubtreeAggregationStrategy::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.
Implements ILIAS\News\Aggregation\NewsAggregationStrategy.
Definition at line 54 of file SubtreeAggregationStrategy.php.
| ILIAS\News\Aggregation\SubtreeAggregationStrategy::shouldSkip | ( | NewsContext | $context | ) |
Returns true if the provided context should not be aggregated.
This method may check criteria or external conditions.
Implements ILIAS\News\Aggregation\NewsAggregationStrategy.
Reimplemented in ILIAS\News\Aggregation\CategoryAggregationStrategy.
Definition at line 59 of file SubtreeAggregationStrategy.php.
References $context, and ilContainer\_lookupContainerSetting().
Here is the call graph for this function: