ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.InternalRepoService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\COPage;
22 
25 
31 {
33  protected \ilDBInterface $db;
34  protected Editor\RepoService $edit_repo;
35 
36  public function __construct(InternalDataService $data, \ilDBInterface $db)
37  {
38  $this->data = $data;
39  $this->db = $db;
40  $this->edit_repo = new Editor\RepoService(
41  $this->data,
42  $this->db
43  );
44  }
45 
46  public function edit(): Editor\EditSessionRepository
47  {
48  return $this->edit_repo->edit();
49  }
50 
51  public function pc(): PC\RepoService
52  {
53  return new PC\RepoService(
54  $this->data,
55  $this->db
56  );
57  }
58 
59  public function history(): HistoryDBRepository
60  {
61  return new HistoryDBRepository($this->db);
62  }
63 
64  public function usage(): UsageDBRepository
65  {
66  return new UsageDBRepository($this->db);
67  }
68 }
Repository internal repo service.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: PageLinker.php:19
__construct(InternalDataService $data, \ilDBInterface $db)
Repository internal data service.