ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
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)
 

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 37 of file class.InternalGUIService.php.

Constructor & Destructor Documentation

◆ __construct()

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

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

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

56  {
57  $this->data_service = $data_service;
58  $this->domain_service = $domain_service;
59  $this->initGUIServices($DIC);
60  }
ILIAS Exercise InternalDomainService $domain_service
initGUIServices(\ILIAS\DI\Container $DIC)
global $DIC
Definition: feed.php:28
ILIAS Exercise InternalDataService $data_service
+ Here is the call graph for this function:

Member Function Documentation

◆ assignment()

ILIAS\Exercise\InternalGUIService::assignment ( )

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

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

62  : Assignment\GUIService
63  {
64  return new Assignment\GUIService(
65  $this->domain_service,
66  $this
67  );
68  }
+ Here is the caller graph for this function:

◆ getExerciseGUI()

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

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

References $ref_id, and ILIAS\Exercise\InternalGUIService\request().

115  {
116  if ($ref_id === null) {
117  $ref_id = $this->request()->getRefId();
118  }
119  return new \ilObjExerciseGUI([], $ref_id, true);
120  }
request(?array $query_params=null, ?array $post_data=null)
Get request wrapper.
$ref_id
Definition: ltiauth.php:67
+ Here is the call graph for this function:

◆ getRandomAssignmentGUI()

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

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

References ILIAS\Repository\ctrl(), ILIAS\Exercise\InternalGUIService\request(), ILIAS\Repository\toolbar(), and ILIAS\Repository\ui().

123  {
124  if ($exc === null) {
125  $exc = $this->request()->getExercise();
126  }
127  return new \ilExcRandomAssignmentGUI(
128  $this->ui(),
129  $this->toolbar(),
130  $this->domain_service->lng(),
131  $this->ctrl(),
132  $this->domain_service->assignment()->randomAssignments($exc)
133  );
134  }
request(?array $query_params=null, ?array $post_data=null)
Get request wrapper.
UI for random assignment (ui)
+ Here is the call graph for this function:

◆ getSubmissionGUI()

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

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

References ILIAS\Exercise\InternalGUIService\request().

141  if ($exc === null) {
142  $exc = $this->request()->getExercise();
143  }
144  if ($ass === null) {
145  $ass = $this->request()->getAssignment();
146  }
147  if ($member_id === null) {
148  $member_id = $this->request()->getMemberId();
149  }
150  return new \ilExSubmissionGUI(
151  $exc,
152  $ass,
153  $member_id
154  );
155  }
request(?array $query_params=null, ?array $post_data=null)
Get request wrapper.
Class ilExSubmissionGUI.
+ Here is the call graph for this function:

◆ getTeamSubmissionGUI()

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

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

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

◆ peerReview()

ILIAS\Exercise\InternalGUIService::peerReview ( )

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

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

◆ permanentLink()

ILIAS\Exercise\InternalGUIService::permanentLink ( )

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

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

◆ 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 92 of file class.InternalGUIService.php.

References ILIAS\Exercise\InternalGUIService\$request, and ILIAS\FileDelivery\http().

Referenced by ilAssignmentPresentationGUI\__construct(), ilExerciseManagementGUI\__construct(), ILIAS\Exercise\InternalGUIService\getExerciseGUI(), ILIAS\Exercise\InternalGUIService\getRandomAssignmentGUI(), and ILIAS\Exercise\InternalGUIService\getSubmissionGUI().

95  : GUIRequest {
96  if (is_null($query_params) && is_null($post_data) && !is_null($this->request)) {
97  return $this->request;
98  }
99  $request = new GUIRequest(
100  $this->http(),
101  $this->domain_service->refinery(),
102  $query_params,
103  $post_data
104  );
105  if (is_null($query_params) && is_null($post_data)) {
106  $this->request = $request;
107  }
108  return $request;
109  }
request(?array $query_params=null, ?array $post_data=null)
Get request wrapper.
static http()
Fetches the global http state from ILIAS.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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 50 of file class.InternalGUIService.php.

◆ $lng

ilLanguage ILIAS\Exercise\InternalGUIService::$lng
protected

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

◆ $refinery

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

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

◆ $request

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

◆ $service

InternalService ILIAS\Exercise\InternalGUIService::$service
protected

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

◆ $submission_gui

ilExSubmissionGUI ILIAS\Exercise\InternalGUIService::$submission_gui
protected

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


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