ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.InternalRepoService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\COPage;
22
25
31{
33 protected \ilDBInterface $db;
35
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 data service.
Repository internal repo service.
__construct(InternalDataService $data, \ilDBInterface $db)
Interface ilDBInterface.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...