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\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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(protected InternalDataService $data, protected \ilDBInterface $db)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...