ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
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\Container;
22 
24 
30 {
32  protected \ilDBInterface $db;
33 
34  public function __construct(InternalDataService $data, \ilDBInterface $db)
35  {
36  $this->data = $data;
37  $this->db = $db;
38  }
39 
40  public function content(): Content\RepoService
41  {
42  return new Content\RepoService(
43  $this->data,
44  $this->db
45  );
46  }
47 
48  public function classification(int $base_ref_id): ClassificationSessionRepository
49  {
50  return new ClassificationSessionRepository(
51  $base_ref_id
52  );
53  }
54 }
Repository internal data service.
Repository internal repo service.
__construct(InternalDataService $data, \ilDBInterface $db)