ILIAS
trunk Revision v12.0_alpha-1221-g4e438232683
◀ ilDoc Overview
class.InternalRepoService.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\News
;
22
23
use
ILIAS\News\Dashboard\DashboardSessionRepository
;
24
use
ILIAS\News\Persistence\NewsCache
;
25
use
ILIAS\News\Persistence\NewsRepository
;
26
31
class
InternalRepoService
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
50
public
function
dashboard
():
DashboardSessionRepository
51
{
52
return
new
DashboardSessionRepository
();
53
}
54
}
ILIAS\News\Dashboard\DashboardSessionRepository
Definition:
class.DashboardSessionRepository.php:27
ILIAS\News\InternalDataService
Repository internal data service.
Definition:
class.InternalDataService.php:30
ILIAS\News\InternalRepoService
Notes internal repo service.
Definition:
class.InternalRepoService.php:32
ILIAS\News\InternalRepoService\news
news()
Definition:
class.InternalRepoService.php:45
ILIAS\News\InternalRepoService\cache
cache()
Definition:
class.InternalRepoService.php:40
ILIAS\News\InternalRepoService\dashboard
dashboard()
Definition:
class.InternalRepoService.php:50
ILIAS\News\InternalRepoService\$cache
NewsCache $cache
Definition:
class.InternalRepoService.php:33
ILIAS\News\InternalRepoService\__construct
__construct(protected InternalDataService $data, protected \ilDBInterface $db)
Definition:
class.InternalRepoService.php:35
ILIAS\News\Persistence\NewsCache
Multi-Level News Cache Implementation:
Definition:
NewsCache.php:36
ILIAS\News\Persistence\NewsRepository
News Repository provides basic CRUD operations and optimized database access for news operations with...
Definition:
NewsRepository.php:36
ILIAS\$db
$db
Definition:
class.ilias.php:60
ilDBInterface
Interface ilDBInterface.
Definition:
ilDBInterface.php:30
$data
$data
Definition:
ltiregistration.php:29
ILIAS\News
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
components
ILIAS
News
Service
class.InternalRepoService.php
Generated on Sun Apr 5 2026 23:02:29 for ILIAS by
1.9.4 (using
Doxyfile
)