19 declare(strict_types=1);
57 $this->domain_service,
69 if (!isset(self::$managers[Mandatory\RandomAssignmentsManager::class][$exercise->
getId()])) {
70 self::$managers[Mandatory\RandomAssignmentsManager::class][$exercise->
getId()] =
73 $this->repo_service->assignment()->randomAssignments(),
74 $this->repo_service->submission(),
78 return self::$managers[Mandatory\RandomAssignmentsManager::class][$exercise->
getId()];
87 if (!isset(self::$managers[Mandatory\MandatoryAssignmentsManager::class][$exercise->
getId()])) {
88 self::$managers[Mandatory\MandatoryAssignmentsManager::class][$exercise->
getId()] =
91 return self::$managers[Mandatory\MandatoryAssignmentsManager::class][$exercise->
getId()];
96 return \ilExcAssMemberState::getInstanceByIds($ass_id, $user_id);
101 $stakeholder = new \ilExcInstructionFilesStakeholder();
104 $this->repo_service->instructionFiles(),
111 $stakeholder = new \ilExcSampleSolutionStakeholder();
114 $this->repo_service->sampleSolution(),
122 $stakeholder = new \ilExcTutorFeedbackFileStakeholder();
123 $team_stakeholder = new \ilExcTutorTeamFeedbackFileStakeholder();
128 $this->domain_service,
137 $stakeholder = new \ilExcTutorFeedbackZipStakeholder();
138 $user_stakeholder = new \ilExcTutorFeedbackFileStakeholder();
141 $this->domain_service,
152 return new \ilExAssignment($ass_id);
instructionFiles(int $ass_id)
sampleSolution(int $ass_id)
__construct(InternalDomainService $domain_service, InternalRepoService $repo_service)
Assignments domain service.
InternalDomainService $domain_service
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
assignments(int $obj_id, int $user_id)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
randomAssignments(\ilObjExercise $exercise, ?\ilObjUser $user=null)
Get random assignment manager.
state(int $ass_id, int $user_id)
Manages random mandatory assignments of an exercise (business logic)
Manages random mandatory assignments of an exercise.
InternalRepoService $repo_service
tutorFeedbackFile(int $ass_id)
mandatoryAssignments(\ilObjExercise $exercise)
Get mandatory assignment manager.
getAssignment(int $ass_id)