19declare(strict_types=1);
40 use GlobalDICGUIServices;
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)) {
118 $ref_id = $this->request()->getRefId();
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(
170 $this->domain_service,
181 $this->domain_service,
Customizing of pimple-DIC for ILIAS.
Exercise gui request wrapper.
Internal factory for data objects.
Exercise UI frontend presentation service class.
getExerciseGUI(?int $ref_id=null)
request(?array $query_params=null, ?array $post_data=null)
Get request wrapper.
__construct(Container $DIC, InternalDataService $data_service, InternalDomainService $domain_service)
getSubmissionFeedbackGUI(?\ilObjExercise $exercise, \ILIAS\Exercise\Notification\NotificationManager $notification)
Refinery Factory $refinery
getRandomAssignmentGUI(?\ilObjExercise $exc=null)
ILIAS Exercise InternalDataService $data_service
getTeamSubmissionGUI(\ilObjExercise $exc, \ilExSubmission $submission)
ILIAS Exercise InternalDomainService $domain_service
ilExSubmissionGUI $submission_gui
getSubmissionGUI(?\ilObjExercise $exc=null, ?\ilExAssignment $ass=null, $member_id=null)
Exercise internal service.
Link to exercise: goto.php?target=exc_<exc_ref_id> Link to assignment: goto.php?target=exc_<exc_ref_i...
trait GlobalDICGUIServices
Exercise submission //TODO: This class has many static methods related to delivered "files".
UI for random assignment (ui)
return['delivery_method'=> 'php',]
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...
static http()
Fetches the global http state from ILIAS.
initGUIServices(\ILIAS\DI\Container $DIC)
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.
if(!file_exists('../ilias.ini.php'))