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\MediaObjects;
22
25use ILIAS\Repository\RepoServiceBase;
26
28{
29 use RepoServiceBase;
30
31 protected static array $instance = [];
32
33 public function __construct(
34 protected InternalDataService $data,
35 protected \ilDBInterface $db
36 ) {
37 }
38
40 {
42 }
43
44 public function usage(): UsageDBRepository
45 {
46 return self::$instance["usage"] ??= new UsageDBRepository($this->db);
47 }
48
50 {
51 return self::$instance["media_object"] ??=
53 $this->db,
54 $this->irss()
55 );
56 }
57
58}
__construct(protected InternalDataService $data, protected \ilDBInterface $db)
Interface ilDBInterface.