ILIAS  trunk Revision v13.0_alpha-52-g21c366bbdd4
class.InternalRepoService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\COPage;
22
26
32{
34 protected \ilDBInterface $db;
36
38 {
39 $this->data = $data;
40 $this->db = $db;
41 $this->edit_repo = new Editor\RepoService(
42 $this->data,
43 $this->db
44 );
45 }
46
47 public function edit(): Editor\EditSessionRepository
48 {
49 return $this->edit_repo->edit();
50 }
51
52 public function pc(): PC\RepoService
53 {
54 return new PC\RepoService(
55 $this->data,
56 $this->db
57 );
58 }
59
60 public function history(): HistoryDBRepository
61 {
62 return new HistoryDBRepository($this->db);
63 }
64
65 public function page(): PageDBRepository
66 {
67 return new PageDBRepository($this->db);
68 }
69
70 public function usage(): UsageDBRepository
71 {
72 return new UsageDBRepository($this->db);
73 }
74}
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...