ILIAS  trunk Revision v12.0_alpha-413-g215742c0453
ILIAS\News\Aggregation\NewsAggregationStrategy Interface Reference

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...
 

Detailed Description

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.

Member Function Documentation

◆ aggregate()

ILIAS\News\Aggregation\NewsAggregationStrategy::aggregate ( NewsContext  $base_context)
Returns
NewsContext[]

Implemented in ILIAS\News\Aggregation\SubtreeAggregationStrategy.

◆ isRecursive()

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.

◆ shouldSkip()

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.


The documentation for this interface was generated from the following file: