19 declare(strict_types=1);
44 protected \ilLanguage
$lng;
51 protected \ilObjExercise
$exc;
66 $this->domain_service,
74 $this->domain_service,
82 $this->domain_service,
94 ?array $query_params =
null,
95 ?array $post_data =
null 97 if (is_null($query_params) && is_null($post_data) && !is_null($this->
request)) {
102 $this->domain_service->refinery(),
106 if (is_null($query_params) && is_null($post_data)) {
120 return new \ilObjExerciseGUI([],
$ref_id,
true);
126 $exc = $this->
request()->getExercise();
128 return new \ilExcRandomAssignmentGUI(
131 $this->domain_service->lng(),
133 $this->domain_service->assignment()->randomAssignments($exc)
143 $exc = $this->
request()->getExercise();
146 $ass = $this->
request()->getAssignment();
148 if ($member_id ===
null) {
149 $member_id = $this->
request()->getMemberId();
151 return new \ilExSubmissionGUI(
162 return new \ilExSubmissionTeamGUI($exc, $submission);
169 return new \ilExerciseSubmissionFeedbackGUI(
170 $this->domain_service,
181 $this->domain_service,
Exercise UI frontend presentation service class.
ILIAS Exercise InternalDomainService $domain_service
initGUIServices(\ILIAS\DI\Container $DIC)
Link to exercise: goto.php?target=exc_<exc_ref_id> Link to assignment: goto.php?target=exc_<exc_ref_i...
Interface Observer Contains several chained tasks and infos about them.
getSubmissionGUI(?\ilObjExercise $exc=null, ?\ilExAssignment $ass=null, $member_id=null)
Exercise internal service.
request(?array $query_params=null, ?array $post_data=null)
Get request wrapper.
trait GlobalDICGUIServices
Customizing of pimple-DIC for ILIAS.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $DIC, InternalDataService $data_service, InternalDomainService $domain_service)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getExerciseGUI(?int $ref_id=null)
static http()
Fetches the global http state from ILIAS.
ILIAS Exercise InternalDataService $data_service
UI for random assignment (ui)
getTeamSubmissionGUI(\ilObjExercise $exc, \ilExSubmission $submission)
getRandomAssignmentGUI(?\ilObjExercise $exc=null)
Internal factory for data objects.
getSubmissionFeedbackGUI(?\ilObjExercise $exercise, \ILIAS\Exercise\Notification\NotificationManager $notification)
Exercise submission //TODO: This class has many static methods related to delivered "files"...
Exercise gui request wrapper.
Refinery Factory $refinery
ilExSubmissionGUI $submission_gui