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\MediaPool;
22
25
27{
28 protected static array $instance = [];
29
30 public function __construct(
31 protected InternalDataService $data,
32 protected \ilDBInterface $db
33 ) {
34 }
35
36 public function clipboard(): Clipboard\ClipboardSessionRepository
37 {
38 return self::$instance["clipboard"] ??= new Clipboard\ClipboardSessionRepository();
39 }
40
41 public function settings(): SettingsDBRepository
42 {
43 return self::$instance["settings"] ??= new SettingsDBRepository(
44 $this->db,
45 $this->data
46 );
47 }
48
49}
Repository internal data service.
__construct(protected InternalDataService $data, protected \ilDBInterface $db)
Interface ilDBInterface.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...