ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Exercise\Assignment\GUIService Class Reference
+ Collaboration diagram for ILIAS\Exercise\Assignment\GUIService:

Public Member Functions

 __construct (InternalDomainService $domain_service, InternalGUIService $gui_service)
 
 itemBuilder (\ilObjExercise $exc, MandatoryAssignmentsManager $mandatory_manager)
 
 panelBuilder (\ilObjExercise $exc, MandatoryAssignmentsManager $mandatory_manager)
 
 propertyAndActionBuilder (\ilObjExercise $exc, MandatoryAssignmentsManager $mandatory_manager)
 
 assignmentPresentationGUI (\ilObjExercise $exc)
 
 types ()
 
 getRandomAssignmentGUI (?\ilObjExercise $exc=null)
 
 getInstructionFileResourceCollectionGUI (int $ref_id, int $ass_id)
 
 getTutorFeedbackFileResourceCollectionGUI (int $ref_id, int $ass_id, int $participant_id)
 

Protected Attributes

CollectionWrapperGUI $irss_wrapper_gui
 
InternalDomainService $domain_service
 
InternalGUIService $gui_service
 

Detailed Description

Definition at line 28 of file class.GUIService.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Exercise\Assignment\GUIService::__construct ( InternalDomainService  $domain_service,
InternalGUIService  $gui_service 
)

Definition at line 35 of file class.GUIService.php.

References ILIAS\Exercise\Assignment\GUIService\$domain_service, and ILIAS\Exercise\Assignment\GUIService\$gui_service.

38  {
39  $this->domain_service = $domain_service;
40  $this->gui_service = $gui_service;
41  $this->irss_wrapper_gui = new CollectionWrapperGUI();
42  }

Member Function Documentation

◆ assignmentPresentationGUI()

ILIAS\Exercise\Assignment\GUIService::assignmentPresentationGUI ( \ilObjExercise  $exc)

Definition at line 80 of file class.GUIService.php.

81  {
82  return new \ilAssignmentPresentationGUI(
83  $exc,
84  $this->domain_service,
85  $this->gui_service
86  );
87  }
ilAssignmentPresentationGUI: ilExSubmissionGUI

◆ getInstructionFileResourceCollectionGUI()

ILIAS\Exercise\Assignment\GUIService::getInstructionFileResourceCollectionGUI ( int  $ref_id,
int  $ass_id 
)

Definition at line 111 of file class.GUIService.php.

References $lng.

115  $irss = $this->domain_service->assignment()->instructionFiles($ass_id);
116  $lng = $this->domain_service->lng();
117  $lng->loadLanguageModule("exc");
118 
119  $write = $this->domain_service->access()->checkAccess('write', '', $ref_id);
120 
121  return $this->irss_wrapper_gui->getResourceCollectionGUI(
122  $irss->getStakeholder(),
123  $irss->getCollectionIdString(),
124  $lng->txt('exc_instruction_files'),
125  $write
126  );
127  }
$ref_id
Definition: ltiauth.php:65
global $lng
Definition: privfeed.php:31

◆ getRandomAssignmentGUI()

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

Definition at line 97 of file class.GUIService.php.

References null.

98  {
99  if ($exc === null) {
100  $exc = $this->gui_service->request()->getExercise();
101  }
102  return new \ilExcRandomAssignmentGUI(
103  $this->gui_service->ui(),
104  $this->gui_service->toolbar(),
105  $this->domain_service->lng(),
106  $this->gui_service->ctrl(),
107  $this->domain_service->assignment()->randomAssignments($exc)
108  );
109  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
UI for random assignment (ui)

◆ getTutorFeedbackFileResourceCollectionGUI()

ILIAS\Exercise\Assignment\GUIService::getTutorFeedbackFileResourceCollectionGUI ( int  $ref_id,
int  $ass_id,
int  $participant_id 
)

Definition at line 129 of file class.GUIService.php.

References $lng.

134  $feedback_file_manager = $this->domain_service->assignment()->tutorFeedbackFile($ass_id);
135  $lng = $this->domain_service->lng();
136  $lng->loadLanguageModule("exc");
137 
138  $write = $this->domain_service->access()->checkAccess('edit_submissions_grades', '', $ref_id);
139 
140  return $this->irss_wrapper_gui->getResourceCollectionGUI(
141  $feedback_file_manager->getStakeholder(),
142  $feedback_file_manager->getCollectionIdString($participant_id),
143  $feedback_file_manager->getFeedbackTitle($participant_id),
144  $write
145  );
146  }
$ref_id
Definition: ltiauth.php:65
global $lng
Definition: privfeed.php:31

◆ itemBuilder()

ILIAS\Exercise\Assignment\GUIService::itemBuilder ( \ilObjExercise  $exc,
MandatoryAssignmentsManager  $mandatory_manager 
)

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

References ILIAS\Exercise\Assignment\GUIService\propertyAndActionBuilder().

47  : ItemBuilderUI {
48  return new ItemBuilderUI(
49  $this->propertyAndActionBuilder($exc, $mandatory_manager),
50  $this->gui_service->ui()->factory(),
51  $this->gui_service->ctrl()
52  );
53  }
propertyAndActionBuilder(\ilObjExercise $exc, MandatoryAssignmentsManager $mandatory_manager)
+ Here is the call graph for this function:

◆ panelBuilder()

ILIAS\Exercise\Assignment\GUIService::panelBuilder ( \ilObjExercise  $exc,
MandatoryAssignmentsManager  $mandatory_manager 
)

Definition at line 55 of file class.GUIService.php.

References ILIAS\Exercise\Assignment\GUIService\propertyAndActionBuilder().

58  : PanelBuilderUI {
59  return new PanelBuilderUI(
60  $this->propertyAndActionBuilder($exc, $mandatory_manager),
61  $this->gui_service->ui()->factory(),
62  $this->gui_service->ui()->renderer(),
63  $this->gui_service->ctrl(),
64  $this->domain_service->lng()
65  );
66  }
propertyAndActionBuilder(\ilObjExercise $exc, MandatoryAssignmentsManager $mandatory_manager)
+ Here is the call graph for this function:

◆ propertyAndActionBuilder()

ILIAS\Exercise\Assignment\GUIService::propertyAndActionBuilder ( \ilObjExercise  $exc,
MandatoryAssignmentsManager  $mandatory_manager 
)

Definition at line 68 of file class.GUIService.php.

Referenced by ILIAS\Exercise\Assignment\GUIService\itemBuilder(), and ILIAS\Exercise\Assignment\GUIService\panelBuilder().

71  : PropertyAndActionBuilderUI {
72  return new PropertyAndActionBuilderUI(
73  $exc,
74  $mandatory_manager,
75  $this->domain_service,
76  $this->gui_service
77  );
78  }
+ Here is the caller graph for this function:

◆ types()

ILIAS\Exercise\Assignment\GUIService::types ( )

Definition at line 89 of file class.GUIService.php.

90  {
91  return new \ilExAssignmentTypesGUI(
92  $this->domain_service,
93  $this->gui_service
94  );
95  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Field Documentation

◆ $domain_service

InternalDomainService ILIAS\Exercise\Assignment\GUIService::$domain_service
protected

◆ $gui_service

InternalGUIService ILIAS\Exercise\Assignment\GUIService::$gui_service
protected

◆ $irss_wrapper_gui

CollectionWrapperGUI ILIAS\Exercise\Assignment\GUIService::$irss_wrapper_gui
protected

Definition at line 30 of file class.GUIService.php.


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