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\Blog;
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 settings(): SettingsDBRepository
37 {
38 return self::$instance["settings"] ??= new SettingsDBRepository(
39 $this->db,
40 $this->data
41 );
42 }
43
44 public function posting(): PostingDBRepository
45 {
46 return self::$instance["posting"] ??= new PostingDBRepository(
47 $this->db,
48 $this->data
49 );
50 }
51}
__construct(protected InternalDataService $data, protected \ilDBInterface $db)
Interface ilDBInterface.