ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
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 108 of file class.GUIService.php.

References $lng.

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

◆ getRandomAssignmentGUI()

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

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

95  {
96  if ($exc === null) {
97  $exc = $this->gui_service->request()->getExercise();
98  }
99  return new \ilExcRandomAssignmentGUI(
100  $this->gui_service->ui(),
101  $this->gui_service->toolbar(),
102  $this->domain_service->lng(),
103  $this->gui_service->ctrl(),
104  $this->domain_service->assignment()->randomAssignments($exc)
105  );
106  }
UI for random assignment (ui)

◆ getTutorFeedbackFileResourceCollectionGUI()

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

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

References $lng.

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

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