ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

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

57  {
58  $this->data_service = $data_service;
59  $this->domain_service = $domain_service;
60  $this->initGUIServices($DIC);
61  }
ILIAS Exercise InternalDomainService $domain_service
initGUIServices(\ILIAS\DI\Container $DIC)
ILIAS Exercise InternalDataService $data_service
global $DIC
Definition: shib_login.php:22
+ 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.

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

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

◆ getExerciseGUI()

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

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

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

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.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
$ref_id
Definition: ltiauth.php:65
+ Here is the call graph for this function:

◆ getRandomAssignmentGUI()

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

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

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

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  }
request(?array $query_params=null, ?array $post_data=null)
Get request wrapper.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
UI for random assignment (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.

References null, and ILIAS\Exercise\InternalGUIService\request().

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  }
request(?array $query_params=null, ?array $post_data=null)
Get request wrapper.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Class ilExSubmissionGUI.
+ Here is the call graph for this function:

◆ 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.

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().

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  }
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:

◆ 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: