ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.InternalDomainService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Exercise;
22 
32 
34 {
36 
40 
41  public function __construct(
43  InternalDataService $data,
45  ) {
46  $this->data = $data;
47  $this->repo = $repo;
48  $this->initDomainServices($dic);
49  $this->assignment_service = new Assignment\DomainService(
50  $this,
51  $repo
52  );
53  }
54 
55  public function log(): \ilLogger
56  {
57  return $this->logger()->exc();
58  }
59 
60  public function object(int $ref_id): ObjectManager
61  {
62  return new ObjectManager($ref_id);
63  }
64 
65  public function assignment(): Assignment\DomainService
66  {
68  }
69 
70  public function peerReview(\ilExAssignment $ass): ?\ilExPeerReview
71  {
72  if ($ass->getPeerReview()) {
73  return new \ilExPeerReview($ass);
74  }
75  return null;
76  }
77 
79  {
80  return new NotificationManager(
81  $this,
82  $ref_id
83  );
84  }
85 
86  public function team(): TeamManager
87  {
88  return new TeamManager(
89  $this->repo,
90  $this,
92  );
93  }
94 
96  {
97  return new IndividualDeadlineManager();
98  }
99 
100  public function exercise(
101  int $obj_id
102  ): ExerciseManager {
103  return new ExerciseManager(
104  $this->repo,
105  $this,
106  $obj_id
107  );
108  }
109 
110  public function userEvent(): UserEvent
111  {
112  return new UserEvent(
113  $this->repo,
114  $this
115  );
116  }
117 
118 }
Exercise assignment.
initDomainServices(\ILIAS\DI\Container $DIC)
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Exercise peer review.
$ref_id
Definition: ltiauth.php:67
Internal factory for data objects.
__construct(Container $dic, InternalDataService $data, InternalRepoService $repo)
$dic
Definition: result.php:32