ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.InternalDomainService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\News;
22 
27 
32 {
34 
37 
38  public function __construct(
40  InternalRepoService $repo_service,
41  InternalDataService $data_service
42  ) {
43  $this->repo_service = $repo_service;
44  $this->data_service = $data_service;
45  $this->initDomainServices($DIC);
46  }
47 
48  public function dashboard(): DashboardNewsManager
49  {
50  return new DashboardNewsManager(
51  $this->data_service,
52  $this->repo_service,
53  $this
54  );
55  }
56 
57  public function timeline(): TimelineManager
58  {
59  return new TimelineManager(
60  $this->data_service,
61  $this->repo_service,
62  $this
63  );
64  }
65 }
initDomainServices(\ILIAS\DI\Container $DIC)
__construct(Container $DIC, InternalRepoService $repo_service, InternalDataService $data_service)
global $DIC
Definition: shib_login.php:22
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Repository internal data service.