ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.RepoService.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\Container\Content;
22 
24 
29 {
31  protected \ilDBInterface $db;
32 
33  public function __construct(InternalDataService $data, \ilDBInterface $db)
34  {
35  $this->data = $data;
36  $this->db = $db;
37  }
38 
39  public function item(): ItemSessionRepository
40  {
41  return new ItemSessionRepository();
42  }
43 
44  public function mode(): ModeSessionRepository
45  {
46  return new ModeSessionRepository();
47  }
48 
49  public function block(): BlockSessionRepository
50  {
51  return new BlockSessionRepository();
52  }
53 
54  public function filter(): Filter\RepoService
55  {
56  return new Filter\RepoService(
57  $this->data,
58  $this->db
59  );
60  }
61 }
__construct(InternalDataService $data, \ilDBInterface $db)
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...