ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Exercise\InternalGUIService Class Reference

Exercise UI frontend presentation service class. More...

+ Collaboration diagram for ILIAS\Exercise\InternalGUIService:

Public Member Functions

 __construct (Container $DIC, InternalDataService $data_service, InternalDomainService $domain_service)
 
 assignment ()
 
 peerReview ()
 
 permanentLink ()
 
 request (?array $query_params=null, ?array $post_data=null)
 Get request wrapper. More...
 
 getExerciseGUI (?int $ref_id=null)
 
 getRandomAssignmentGUI (?\ilObjExercise $exc=null)
 
 getSubmissionGUI (?\ilObjExercise $exc=null, ?\ilExAssignment $ass=null, $member_id=null)
 
 getTeamSubmissionGUI (\ilObjExercise $exc, \ilExSubmission $submission)
 
 getSubmissionFeedbackGUI (?\ilObjExercise $exercise, \ILIAS\Exercise\Notification\NotificationManager $notification)
 
 settings ()
 

Protected Attributes

ILIAS Exercise InternalDataService $data_service
 
ILIAS Exercise InternalDomainService $domain_service
 
ilLanguage $lng
 
Refinery Factory $refinery
 
InternalService $service
 
GUIRequest $request = null
 
ilExSubmissionGUI $submission_gui
 
ilObjExercise $exc
 

Detailed Description

Exercise UI frontend presentation service class.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 38 of file class.InternalGUIService.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Exercise\InternalGUIService::__construct ( Container  $DIC,
InternalDataService  $data_service,
InternalDomainService  $domain_service 
)

Definition at line 53 of file class.InternalGUIService.php.

57 {
58 $this->data_service = $data_service;
59 $this->domain_service = $domain_service;
60 $this->initGUIServices($DIC);
61 }
ILIAS Exercise InternalDataService $data_service
ILIAS Exercise InternalDomainService $domain_service
initGUIServices(\ILIAS\DI\Container $DIC)

References ILIAS\Exercise\InternalGUIService\$data_service, ILIAS\Exercise\InternalGUIService\$domain_service, and ILIAS\Repository\initGUIServices().

+ Here is the call graph for this function:

Member Function Documentation

◆ assignment()

ILIAS\Exercise\InternalGUIService::assignment ( )

Definition at line 63 of file class.InternalGUIService.php.

63 : Assignment\GUIService
64 {
65 return new Assignment\GUIService(
66 $this->domain_service,
67 $this
68 );
69 }

Referenced by ILIAS\Exercise\Assignment\PropertyAndActionBuilderUI\__construct(), ilAssignmentPresentationGUI\__construct(), and ilExerciseManagementGUI\executeCommand().

+ Here is the caller graph for this function:

◆ getExerciseGUI()

ILIAS\Exercise\InternalGUIService::getExerciseGUI ( ?int  $ref_id = null)
Exceptions

ilExerciseException

Definition at line 115 of file class.InternalGUIService.php.

116 {
117 if ($ref_id === null) {
118 $ref_id = $this->request()->getRefId();
119 }
120 return new \ilObjExerciseGUI([], $ref_id, true);
121 }
request(?array $query_params=null, ?array $post_data=null)
Get request wrapper.
$ref_id
Definition: ltiauth.php:66

References $ref_id.

◆ getRandomAssignmentGUI()

ILIAS\Exercise\InternalGUIService::getRandomAssignmentGUI ( ?\ilObjExercise  $exc = null)

Definition at line 123 of file class.InternalGUIService.php.

124 {
125 if ($exc === null) {
126 $exc = $this->request()->getExercise();
127 }
128 return new \ilExcRandomAssignmentGUI(
129 $this->ui(),
130 $this->toolbar(),
131 $this->domain_service->lng(),
132 $this->ctrl(),
133 $this->domain_service->assignment()->randomAssignments($exc)
134 );
135 }
UI for random assignment (ui)

References ILIAS\Repository\toolbar(), and ILIAS\Repository\ui().

+ Here is the call graph for this function:

◆ getSubmissionFeedbackGUI()

ILIAS\Exercise\InternalGUIService::getSubmissionFeedbackGUI ( ?\ilObjExercise  $exercise,
\ILIAS\Exercise\Notification\NotificationManager  $notification 
)

Definition at line 165 of file class.InternalGUIService.php.

169 return new \ilExerciseSubmissionFeedbackGUI(
170 $this->domain_service,
171 $this,
172 $exercise,
173 $notification
174 );
175 }

◆ getSubmissionGUI()

ILIAS\Exercise\InternalGUIService::getSubmissionGUI ( ?\ilObjExercise  $exc = null,
?\ilExAssignment  $ass = null,
  $member_id = null 
)

Definition at line 137 of file class.InternalGUIService.php.

142 if ($exc === null) {
143 $exc = $this->request()->getExercise();
144 }
145 if ($ass === null) {
146 $ass = $this->request()->getAssignment();
147 }
148 if ($member_id === null) {
149 $member_id = $this->request()->getMemberId();
150 }
151 return new \ilExSubmissionGUI(
152 $exc,
153 $ass,
154 $member_id
155 );
156 }
Class ilExSubmissionGUI.

◆ getTeamSubmissionGUI()

ILIAS\Exercise\InternalGUIService::getTeamSubmissionGUI ( \ilObjExercise  $exc,
\ilExSubmission  $submission 
)

Definition at line 158 of file class.InternalGUIService.php.

162 return new \ilExSubmissionTeamGUI($exc, $submission);
163 }

◆ peerReview()

ILIAS\Exercise\InternalGUIService::peerReview ( )

Definition at line 71 of file class.InternalGUIService.php.

71 : PeerReview\GUIService
72 {
73 return new PeerReview\GUIService(
74 $this->domain_service,
75 $this
76 );
77 }

◆ permanentLink()

ILIAS\Exercise\InternalGUIService::permanentLink ( )

Definition at line 79 of file class.InternalGUIService.php.

79 : PermanentLinkManager
80 {
81 return new PermanentLinkManager(
82 $this->domain_service,
83 $this
84 );
85 }

◆ request()

ILIAS\Exercise\InternalGUIService::request ( ?array  $query_params = null,
?array  $post_data = null 
)

Get request wrapper.

If dummy data is provided the usual http wrapper will not be used.

Returns
GUIRequest

Definition at line 93 of file class.InternalGUIService.php.

96 : GUIRequest {
97 if (is_null($query_params) && is_null($post_data) && !is_null($this->request)) {
98 return $this->request;
99 }
100 $request = new GUIRequest(
101 $this->http(),
102 $this->domain_service->refinery(),
103 $query_params,
104 $post_data
105 );
106 if (is_null($query_params) && is_null($post_data)) {
107 $this->request = $request;
108 }
109 return $request;
110 }
Exercise gui request wrapper.
static http()
Fetches the global http state from ILIAS.

References ILIAS\Exercise\InternalGUIService\$request.

Referenced by ilAssignmentPresentationGUI\__construct(), and ilExerciseManagementGUI\__construct().

+ Here is the caller graph for this function:

◆ settings()

ILIAS\Exercise\InternalGUIService::settings ( )

Definition at line 177 of file class.InternalGUIService.php.

178 : GUIService {
179 return new GUIService(
180 $this->data_service,
181 $this->domain_service,
182 $this
183 );
184 }

Field Documentation

◆ $data_service

ILIAS Exercise InternalDataService ILIAS\Exercise\InternalGUIService::$data_service
protected

◆ $domain_service

ILIAS Exercise InternalDomainService ILIAS\Exercise\InternalGUIService::$domain_service
protected

◆ $exc

ilObjExercise ILIAS\Exercise\InternalGUIService::$exc
protected

Definition at line 51 of file class.InternalGUIService.php.

◆ $lng

ilLanguage ILIAS\Exercise\InternalGUIService::$lng
protected

Definition at line 44 of file class.InternalGUIService.php.

◆ $refinery

Refinery Factory ILIAS\Exercise\InternalGUIService::$refinery
protected

Definition at line 45 of file class.InternalGUIService.php.

◆ $request

GUIRequest ILIAS\Exercise\InternalGUIService::$request = null
protected

◆ $service

InternalService ILIAS\Exercise\InternalGUIService::$service
protected

Definition at line 47 of file class.InternalGUIService.php.

◆ $submission_gui

ilExSubmissionGUI ILIAS\Exercise\InternalGUIService::$submission_gui
protected

Definition at line 50 of file class.InternalGUIService.php.


The documentation for this class was generated from the following file: