ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
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\Repository;
22 
25 
27 {
29  protected \ilDBInterface $db;
30 
31  public function __construct(InternalDataService $data, \ilDBInterface $db)
32  {
33  $this->data = $data;
34  $this->db = $db;
35  }
36 
37  public function clipboard(): ClipboardSessionRepository
38  {
39  return new ClipboardSessionRepository();
40  }
41 
42  public function tree(): TreeDBRepo
43  {
44  return new TreeDBRepo(
45  $this->db
46  );
47  }
48 }
__construct(InternalDataService $data, \ilDBInterface $db)