ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.InternalRepoService.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\Notes;
22 
28 {
30  protected \ilDBInterface $db;
31 
32  public function __construct(InternalDataService $data, \ilDBInterface $db)
33  {
34  $this->data = $data;
35  $this->db = $db;
36  }
37 
38  public function note(): NoteDBRepository
39  {
40  return new NoteDBRepository(
41  $this->data,
42  $this->db
43  );
44  }
45 
47  {
48  return new NotesSessionRepository();
49  }
50 
52  {
53  return new NoteSettingsDBRepository(
54  $this->data,
55  $this->db
56  );
57  }
58 }
Repository internal data service.
__construct(InternalDataService $data, \ilDBInterface $db)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...