ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
class.InternalRepoService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\News;
22
26
32{
33 protected NewsCache $cache;
34
35 public function __construct(protected InternalDataService $data, protected \ilDBInterface $db)
36 {
37 $this->cache = new NewsCache();
38 }
39
40 public function cache(): NewsCache
41 {
42 return $this->cache;
43 }
44
45 public function news(): NewsRepository
46 {
47 return new NewsRepository($this->db, $this->data->factory());
48 }
49
51 {
52 return new DashboardSessionRepository();
53 }
54}
Repository internal data service.
__construct(protected InternalDataService $data, protected \ilDBInterface $db)
Multi-Level News Cache Implementation:
Definition: NewsCache.php:36
News Repository provides basic CRUD operations and optimized database access for news operations with...
Interface ilDBInterface.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...