ILIAS  release_8 Revision v8.24
ilExAssTypePortfolioGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilExAssTypePortfolioGUI:
+ Collaboration diagram for ilExAssTypePortfolioGUI:

Public Member Functions

 __construct ()
 Constructor. More...
 
 addEditFormCustomProperties (ilPropertyFormGUI $form)
 Add custom form properties to edit form. More...
 
 importFormToAssignment (ilExAssignment $ass, ilPropertyFormGUI $form)
 Get values from form and put them into assignment. More...
 
 getFormValuesArray (ilExAssignment $ass)
 Get form values array from assignment.
Returns
array
More...
 
 getOverviewContent (ilInfoScreenGUI $a_info, ilExSubmission $a_submission)
 Add overview content of submission to info screen object. More...
 
- Public Member Functions inherited from ilExAssignmentTypeGUIInterface
 addEditFormCustomProperties (ilPropertyFormGUI $form)
 Add custom form properties to edit form. More...
 
 importFormToAssignment (ilExAssignment $ass, ilPropertyFormGUI $form)
 Get values from form and put them into assignment. More...
 
 getFormValuesArray (ilExAssignment $ass)
 Get form values array from assignment. More...
 
 getOverviewContent (ilInfoScreenGUI $a_info, ilExSubmission $a_submission)
 Add overview content of submission to info screen object. More...
 
 setSubmission (ilExSubmission $a_submission)
 Set submission. More...
 
 setExercise (ilObjExercise $a_exercise)
 Set exercise. More...
 

Protected Attributes

 $lng
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Portfolio type gui implementations

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

Definition at line 24 of file class.ilExAssTypePortfolioGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilExAssTypePortfolioGUI::__construct ( )

Constructor.

Definition at line 36 of file class.ilExAssTypePortfolioGUI.php.

37 {
38 global $DIC;
39
40 $this->lng = $DIC->language();
41 }
global $DIC
Definition: feed.php:28

References $DIC, and ILIAS\Repository\lng().

+ Here is the call graph for this function:

Member Function Documentation

◆ addEditFormCustomProperties()

ilExAssTypePortfolioGUI::addEditFormCustomProperties ( ilPropertyFormGUI  $form)

Add custom form properties to edit form.

Implements ilExAssignmentTypeGUIInterface.

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

46 : void
47 {
49
50 $rd_template = new ilRadioGroupInputGUI($lng->txt("exc_template"), "template");
51 $rd_template->setRequired(true);
52 $rd_template->setValue("0");
53 $radio_no_template = new ilRadioOption($lng->txt("exc_without_template"), "0", $lng->txt("exc_without_template_info", "without_template_info"));
54 $radio_with_template = new ilRadioOption($lng->txt("exc_with_template"), "1", $lng->txt("exc_with_template_info", "with_template_info"));
55
56 $repo = new ilRepositorySelector2InputGUI($lng->txt("exc_portfolio_template"), "template_id");
57 $repo->setRequired(true);
58 $repo->getExplorerGUI()->setSelectableTypes(array("prtt"));
59 $repo->getExplorerGUI()->setTypeWhiteList(array("root", "prtt", "cat", "crs", "grp", "fold"));
60 $radio_with_template->addSubItem($repo);
61
62 $rd_template->addOption($radio_no_template);
63 $rd_template->addOption($radio_with_template);
64 $form->addItem($rd_template);
65 }
This class represents a property in a property form.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $lng, and ilPropertyFormGUI\addItem().

+ Here is the call graph for this function:

◆ getFormValuesArray()

ilExAssTypePortfolioGUI::getFormValuesArray ( ilExAssignment  $ass)

Get form values array from assignment.

Returns
array

Implements ilExAssignmentTypeGUIInterface.

Definition at line 81 of file class.ilExAssTypePortfolioGUI.php.

82 {
83 $values = [];
84
85 $values["template"] = "0";
86 if ($ass->getPortfolioTemplateId() > 0) {
87 $values["template_id"] = $ass->getPortfolioTemplateId();
88 $values["template"] = "1";
89 }
90
91 return $values;
92 }

References ilExAssignment\getPortfolioTemplateId().

+ Here is the call graph for this function:

◆ getOverviewContent()

ilExAssTypePortfolioGUI::getOverviewContent ( ilInfoScreenGUI  $a_info,
ilExSubmission  $a_submission 
)

Add overview content of submission to info screen object.

Implements ilExAssignmentTypeGUIInterface.

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

94 : void
95 {
96 }

◆ importFormToAssignment()

ilExAssTypePortfolioGUI::importFormToAssignment ( ilExAssignment  $ass,
ilPropertyFormGUI  $form 
)

Get values from form and put them into assignment.

Implements ilExAssignmentTypeGUIInterface.

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

70 : void
71 {
73 if ($form->getInput("template_id") && $form->getInput("template")) {
74 $ass->setPortfolioTemplateId($form->getInput("template_id"));
75 }
76 }
setPortfolioTemplateId(int $a_val)
getInput(string $a_post_var, bool $ensureValidation=true)
Returns the input of an item, if item provides getInput method and as fallback the value of the HTTP-...

References ilPropertyFormGUI\getInput(), and ilExAssignment\setPortfolioTemplateId().

+ Here is the call graph for this function:

Field Documentation

◆ $lng

ilExAssTypePortfolioGUI::$lng
protected

Definition at line 31 of file class.ilExAssTypePortfolioGUI.php.

Referenced by addEditFormCustomProperties().


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