19 declare(strict_types=1);
43 protected \ilLanguage
$lng;
50 protected \ilObjExercise
$exc;
65 $this->domain_service,
73 $this->domain_service,
81 $this->domain_service,
93 ?array $query_params = null,
94 ?array $post_data = null
96 if (is_null($query_params) && is_null($post_data) && !is_null($this->
request)) {
101 $this->domain_service->refinery(),
105 if (is_null($query_params) && is_null($post_data)) {
119 return new \ilObjExerciseGUI([],
$ref_id,
true);
125 $exc = $this->
request()->getExercise();
127 return new \ilExcRandomAssignmentGUI(
130 $this->domain_service->lng(),
132 $this->domain_service->assignment()->randomAssignments($exc)
142 $exc = $this->
request()->getExercise();
145 $ass = $this->
request()->getAssignment();
147 if ($member_id === null) {
148 $member_id = $this->
request()->getMemberId();
150 return new \ilExSubmissionGUI(
161 return new \ilExSubmissionTeamGUI($exc, $submission);
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...
Exercise internal service.
request(?array $query_params=null, ?array $post_data=null)
Get request wrapper.
getSubmissionGUI(\ilObjExercise $exc=null, \ilExAssignment $ass=null, $member_id=null)
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)
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)
Internal factory for data objects.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trait GlobalDICGUIServices
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getRandomAssignmentGUI(\ilObjExercise $exc=null)
Exercise gui request wrapper.
Refinery Factory $refinery
ilExSubmissionGUI $submission_gui