ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.InternalRepoService.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\Exercise;
22 
31 
37 {
40  protected \ilDBInterface $db;
42 
43  public function __construct(InternalDataService $data, \ilDBInterface $db)
44  {
45  $this->data = $data;
46  $this->db = $db;
47  $this->submission_repo = new Submission\SubmissionDBRepository($db);
48  $this->collection_wrapper = new CollectionWrapper($data);
49  }
50 
51  public function assignment(): Assignment\RepoService
52  {
53  return new Assignment\RepoService(
54  $this->data,
55  $this->db
56  );
57  }
58 
59  public function submission(): Submission\SubmissionRepositoryInterface
60  {
62  }
63 
65  {
66  return new InstructionFileRepository(
67  $this->collection_wrapper,
68  $this->db
69  );
70  }
71 
73  {
74  return new SampleSolutionRepository(
75  $this->collection_wrapper,
76  $this->db
77  );
78  }
79 
81  {
82  return new TutorFeedbackFileRepository(
83  $this->collection_wrapper,
84  $this->db
85  );
86  }
87 
89  {
91  $this->collection_wrapper,
92  $this->db
93  );
94  }
95 
97  {
98  return new TutorFeedbackZipRepository(
99  $this->collection_wrapper,
100  $this->db
101  );
102  }
103 
104  public function team(): TeamDBRepository
105  {
106  return new TeamDBRepository(
107  $this->db,
108  $this->data
109  );
110  }
111 
112 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Submission SubmissionDBRepository $submission_repo
__construct(InternalDataService $data, \ilDBInterface $db)
Internal factory for data objects.
Table exc_team_data: Team Table il_exc_team: Team participants (holds the sequence due to historic re...