|
ILIAS
trunk Revision v12.0_alpha-399-g579a087ced2
|
News Repository provides basic CRUD operations and optimized database access for news operations with batch loading and optimized queries. More...
Collaboration diagram for ILIAS\News\Persistence\NewsRepository:Public Member Functions | |
| __construct (protected readonly \ilDBInterface $db, protected readonly Factory $factory) | |
| findById (int $news_id) | |
| findByIds (array $news_ids) | |
| loadLazyItems (array $news_ids, array $group_context_types) | |
| findByContextsBatch (array $contexts, NewsCriteria $criteria) | |
| findByContextsBatchLazy (array $contexts, NewsCriteria $criteria) | |
| countByContextsBatch (array $contexts) | |
Private Member Functions | |
| buildFindQuery (?array $news_ids=null) | |
| buildBatchQuery (array $obj_ids, NewsCriteria $criteria, bool $only_id=false) | |
Static Private Member Functions | |
| static | parseTimePeriod (string|int $time_period) |
News Repository provides basic CRUD operations and optimized database access for news operations with batch loading and optimized queries.
Definition at line 35 of file NewsRepository.php.
| ILIAS\News\Persistence\NewsRepository::__construct | ( | protected readonly \ilDBInterface | $db, |
| protected readonly Factory | $factory | ||
| ) |
Definition at line 37 of file NewsRepository.php.
|
private |
Definition at line 207 of file NewsRepository.php.
References ILIAS\News\Data\NewsCriteria\getMaxPriority(), ILIAS\News\Data\NewsCriteria\getMinPriority(), ILIAS\News\Data\NewsCriteria\getPeriod(), ILIAS\News\Data\NewsCriteria\getReadUserId(), ILIAS\News\Data\NewsCriteria\getStartDate(), ILIAS\News\Data\NewsCriteria\isIncludeReadStatus(), ILIAS\News\Data\NewsCriteria\isNoAutoGenerated(), ILIAS\News\Data\NewsCriteria\isOnlyPublic(), NEWS_PUBLIC, ILIAS\News\Persistence\NewsRepository\parseTimePeriod(), ilDBConstants\T_INTEGER, and ilDBConstants\T_TIMESTAMP.
Referenced by ILIAS\News\Persistence\NewsRepository\findByContextsBatch(), and ILIAS\News\Persistence\NewsRepository\findByContextsBatchLazy().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 109 of file NewsRepository.php.
References ilDBConstants\T_INTEGER.
Referenced by ILIAS\News\Persistence\NewsRepository\findByIds(), and ILIAS\News\Persistence\NewsRepository\loadLazyItems().
Here is the caller graph for this function:| ILIAS\News\Persistence\NewsRepository::countByContextsBatch | ( | array | $contexts | ) |
| NewsContext[] | $contexts |
Definition at line 185 of file NewsRepository.php.
References $context, and ilDBConstants\T_INTEGER.
| ILIAS\News\Persistence\NewsRepository::findByContextsBatch | ( | array | $contexts, |
| NewsCriteria | $criteria | ||
| ) |
| NewsContext[] | $contexts |
Definition at line 129 of file NewsRepository.php.
References $context, ILIAS\News\Persistence\NewsRepository\buildBatchQuery(), factory(), ILIAS\News\Data\NewsCriteria\getReadUserId(), and ILIAS\News\Data\NewsCriteria\isIncludeReadStatus().
Here is the call graph for this function:| ILIAS\News\Persistence\NewsRepository::findByContextsBatchLazy | ( | array | $contexts, |
| NewsCriteria | $criteria | ||
| ) |
| NewsContext[] | $contexts |
Definition at line 157 of file NewsRepository.php.
References $context, ILIAS\News\Persistence\NewsRepository\buildBatchQuery(), ILIAS\News\Data\NewsCriteria\getReadUserId(), ILIAS\News\Data\NewsCriteria\isIncludeReadStatus(), and ILIAS\News\Persistence\NewsRepository\loadLazyItems().
Here is the call graph for this function:| ILIAS\News\Persistence\NewsRepository::findById | ( | int | $news_id | ) |
Definition at line 43 of file NewsRepository.php.
References factory(), and ilDBConstants\T_INTEGER.
Here is the call graph for this function:| ILIAS\News\Persistence\NewsRepository::findByIds | ( | array | $news_ids | ) |
| int[] | $news_ids |
Definition at line 57 of file NewsRepository.php.
References ILIAS\News\Persistence\NewsRepository\buildFindQuery(), and factory().
Here is the call graph for this function:| ILIAS\News\Persistence\NewsRepository::loadLazyItems | ( | array | $news_ids, |
| array | $group_context_types | ||
| ) |
| int[] | $news_ids | |
| string[] | $group_context_types |
Definition at line 73 of file NewsRepository.php.
References ILIAS\News\Persistence\NewsRepository\buildFindQuery(), factory(), and ilDBConstants\T_INTEGER.
Referenced by ILIAS\News\Persistence\NewsRepository\findByContextsBatchLazy().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 269 of file NewsRepository.php.
Referenced by ILIAS\News\Persistence\NewsRepository\buildBatchQuery().
Here is the caller graph for this function: