ILIAS  release_8 Revision v8.24
ilObjPortfolioAdministrationGUI 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 ilObjPortfolioAdministrationGUI:
+ Collaboration diagram for ilObjPortfolioAdministrationGUI:

Public Member Functions

 __construct ( $a_data, int $a_id, bool $a_call_by_reference=true, bool $a_prepare_output=true)
 
 executeCommand ()
 
 getAdminTabs ()
 administration tabs show only permissions and trash folder More...
 
 editSettings ($a_form=null)
 
 saveSettings ()
 
 cancel ()
 
 addToExternalSettingsForm (int $a_form_id)
 
 initAuthorshipForm ()
 
 saveAuthorship ()
 
- Public Member Functions inherited from ilObjectGUI
 __construct ($data, int $id=0, bool $call_by_reference=true, bool $prepare_output=true)
 
 getRefId ()
 
 setAdminMode (string $mode)
 
 getAdminMode ()
 
 getObject ()
 
 executeCommand ()
 
 withReferences ()
 determines whether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode (bool $mode=true)
 if true, a creation screen is displayed the current [ref_id] don't belong to the current class! The mode is determined in ilRepositoryGUI More...
 
 getCreationMode ()
 
 prepareOutput (bool $show_sub_objects=true)
 
 getAdminTabs ()
 administration tabs show only permissions and trash folder More...
 
 getHTML ()
 
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More...
 
 cancelDeleteObject ()
 cancel deletion of object More...
 
 cancelObject ()
 cancel action and go back to previous page More...
 
 createObject ()
 create new object form More...
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 
 getDidacticTemplateVar (string $type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $obj, int $parent_node_id=null)
 Add object to tree at given position. More...
 
 editObject ()
 
 addExternalEditFormCustom (ilPropertyFormGUI $form)
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction (string $cmd, string $default_form_action="")
 Get form action for command (command is method name without "Object", e.g. More...
 
 isVisible (int $ref_id, string $type)
 
 viewObject ()
 viewObject container presentation for "administration -> repository, trash, permissions" More...
 
 deleteObject (bool $error=false)
 Display deletion confirmation screen. More...
 
 setColumnSettings (ilColumnGUI $column_gui)
 
 redirectAfterCreation ()
 Redirect after creation, see https://docu.ilias.de/goto_docu_wiki_wpage_5035_1357.html Should be overwritten and redirect to settings screen. More...
 
 addToDeskObject ()
 
 removeFromDeskObject ()
 
- Public Member Functions inherited from ILIAS\Object\ImplementsCreationCallback
 callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb)
 

Protected Member Functions

 hasWritePermission ()
 
 hasReadPermission ()
 
 initFormSettings ()
 
 editDeclarationOfAuthorship ()
 
- Protected Member Functions inherited from ilObjectGUI
 getObjectService ()
 
 assignObject ()
 
 setTitleAndDescription ()
 
 initHeaderAction (?string $sub_type=null, ?int $sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction (?ilObjectListGUI $list_gui=null)
 Insert header action into main template. More...
 
 addHeaderAction ()
 Add header action menu. More...
 
 redrawHeaderActionObject ()
 Ajax call: redraw action header only. More...
 
 setTabs ()
 set admin tabs More...
 
 setAdminTabs ()
 set admin tabs More...
 
 setLocator ()
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator (bool $omit=true)
 
 addAdminLocatorItems (bool $do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 initCreationForms (string $new_type)
 Init creation forms. More...
 
 getCreationFormsHTML (array $forms)
 Get HTML for creation forms (accordion) More...
 
 initCreateForm (string $new_type)
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates. More...
 
 afterSave (ilObject $new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 initImportForm (string $new_type)
 
 importFileObject (int $parent_id=null)
 
 afterImport (ilObject $new_object)
 Post (successful) object import hook. More...
 
 setFormAction (string $cmd, string $form_action)
 
 getReturnLocation (string $cmd, string $default_location="")
 Get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation (string $cmd, string $location)
 set specific return location for command More...
 
 getTargetFrame (string $cmd, string $default_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame (string $cmd, string $target_frame)
 Set specific target frame for command. More...
 
 showPossibleSubObjects ()
 show possible sub objects (pull down menu) More...
 
 getTabs ()
 @abstract overwrite in derived GUI class of your object type More...
 
 redirectToRefId (int $ref_id, string $cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current ["ref_id"] value of the request More...
 
 fillCloneTemplate (?string $tpl_name, string $type)
 Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 showCustomIconsEditing ( $input_colspan=1, ilPropertyFormGUI $form=null, $as_section=true)
 show edit section of custom icons for container More...
 

Protected Attributes

ILIAS DI UIServices $ui
 
 ilPortfolioDeclarationOfAuthorship$declaration_authorship
 
- Protected Attributes inherited from ilObjectGUI
ILIAS Notes Service $notes_service
 
ServerRequestInterface $request
 
ilLocatorGUI $locator
 
ilObjUser $user
 
ilAccessHandler $access
 
ilSetting $settings
 
ilToolbarGUI $toolbar
 
ilRbacAdmin $rbac_admin
 
ilRbacSystem $rbac_system
 
ilRbacReview $rbac_review
 
ilObjectService $object_service
 
ilObjectDefinition $obj_definition
 
ilGlobalTemplateInterface $tpl
 
ilTree $tree
 
ilCtrl $ctrl
 
ilErrorHandling $error
 
ilLanguage $lng
 
ilTabsGUI $tabs_gui
 
ILIAS $ilias
 
ArrayBasedRequestWrapper $post_wrapper
 
RequestWrapper $request_wrapper
 
Factory $refinery
 
ilFavouritesManager $favourites
 
ilObjectCustomIconFactory $custom_icon_factory
 
ilObject $object = null
 
bool $creation_mode = false
 
 $data
 
int $id
 
bool $call_by_reference = false
 
bool $prepare_output
 
int $ref_id
 
int $obj_id
 
int $maxcount
 
array $form_action = []
 
array $return_location = []
 
array $target_frame = []
 
string $tmp_import_dir
 
string $sub_objects = ""
 
bool $omit_locator = false
 
string $type = ""
 
string $admin_mode = self::ADMIN_MODE_NONE
 
int $requested_ref_id = 0
 
int $requested_crtptrefid = 0
 
int $requested_crtcb = 0
 
string $requested_new_type = ""
 
string $link_params
 
string $html = ""
 

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot (bool $raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode (int $ref_id, string $cmd="")
 
static _gotoSharedWorkspaceNode (int $wsp_id)
 
- Data Fields inherited from ilObjectGUI
const ALLOWED_TAGS_IN_TITLE_AND_DESCRIPTION
 
const ADMIN_MODE_NONE = ""
 
const ADMIN_MODE_SETTINGS = "settings"
 
const ADMIN_MODE_REPOSITORY = "repository"
 
const UPLOAD_TYPE_LOCAL = 1
 
const UPLOAD_TYPE_UPLOAD_DIRECTORY = 2
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 

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 Administration Settings.

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om @ilCtrl_Calls ilObjPortfolioAdministrationGUI: ilPermissionGUI, ilPortfolioRoleAssignmentGUI @ilCtrl_IsCalledBy ilObjPortfolioAdministrationGUI: ilAdministrationGUI

Definition at line 26 of file class.ilObjPortfolioAdministrationGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjPortfolioAdministrationGUI::__construct (   $data,
int  $id,
bool  $call_by_reference = true,
bool  $prepare_output = true 
)
Parameters
mixed$data
int$id
bool$call_by_reference
bool$prepare_output
Exceptions
ilCtrlException

Reimplemented from ilObjectGUI.

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

36 {
37 global $DIC;
38
39 $this->rbac_system = $DIC->rbac()->system();
40 $this->lng = $DIC->language();
41 $this->settings = $DIC->settings();
42 $this->ctrl = $DIC->ctrl();
43 $this->access = $DIC->access();
44 $this->type = "prfa";
45 $this->ui = $DIC->ui();
46 $this->request = $DIC->http()->request();
47 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
48
49 $this->declaration_authorship = new ilPortfolioDeclarationOfAuthorship();
50
51 $this->lng->loadLanguageModule("prtf");
52 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\settings(), and ILIAS\Repository\ui().

+ Here is the call graph for this function:

Member Function Documentation

◆ addToExternalSettingsForm()

ilObjPortfolioAdministrationGUI::addToExternalSettingsForm ( int  $a_form_id)

Definition at line 226 of file class.ilObjPortfolioAdministrationGUI.php.

226 : array
227 {
229
231 $fields = array('pd_enable_prtf' => array($ilSetting->get('user_portfolios'),
233 )
234 );
235
236 return array(array("editSettings", $fields));
237 }
238 return [];
239 }
ilSetting $settings
global $ilSetting
Definition: privfeed.php:17

References $ilSetting, ilObjectGUI\$settings, ilAdministrationSettingsFormHandler\FORM_WSP, and ilAdministrationSettingsFormHandler\VALUE_BOOL.

◆ cancel()

ilObjPortfolioAdministrationGUI::cancel ( )

Definition at line 153 of file class.ilObjPortfolioAdministrationGUI.php.

153 : void
154 {
155 $ilCtrl = $this->ctrl;
156
157 $ilCtrl->redirect($this, "view");
158 }
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
@inheritDoc

References ilObjectGUI\$ctrl, and ilCtrl\redirect().

+ Here is the call graph for this function:

◆ editDeclarationOfAuthorship()

ilObjPortfolioAdministrationGUI::editDeclarationOfAuthorship ( )
protected

Definition at line 245 of file class.ilObjPortfolioAdministrationGUI.php.

245 : void
246 {
247 $main_tpl = $this->tpl;
248 $renderer = $ui = $this->ui->renderer();
249 $form = $this->initAuthorshipForm();
250
251 $this->tabs_gui->activateTab("authorship");
252
253 $main_tpl->setContent($renderer->render($form));
254 }
ilGlobalTemplateInterface $tpl

References ilObjectGUI\$tpl, $ui, initAuthorshipForm(), and ILIAS\Repository\ui().

+ Here is the call graph for this function:

◆ editSettings()

ilObjPortfolioAdministrationGUI::editSettings (   $a_form = null)

Definition at line 117 of file class.ilObjPortfolioAdministrationGUI.php.

117 : void
118 {
119 $this->tabs_gui->activateTab('settings');
120 if (!$a_form) {
121 $a_form = $this->initFormSettings();
122 }
123 $this->tpl->setContent($a_form->getHTML());
124 }

References initFormSettings().

Referenced by saveSettings().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilObjPortfolioAdministrationGUI::executeCommand ( )

Reimplemented from ilObjectGUI.

Definition at line 54 of file class.ilObjPortfolioAdministrationGUI.php.

54 : void
55 {
56 $next_class = $this->ctrl->getNextClass($this);
57 $cmd = $this->ctrl->getCmd();
58
59 $this->prepareOutput();
60
61 switch ($next_class) {
62 case 'ilpermissiongui':
63 $this->tabs_gui->activateTab('perm_settings');
64 $perm_gui = new ilPermissionGUI($this);
65 $this->ctrl->forwardCommand($perm_gui);
66 break;
67
68 case 'ilportfolioroleassignmentgui':
69 $this->tabs_gui->activateTab('role_assignment');
71 $this->ctrl->forwardCommand($gui);
72 break;
73
74 default:
75 if (!$cmd || $cmd === 'view') {
76 $cmd = "editSettings";
77 }
78
79 $this->$cmd();
80 break;
81 }
82 }
prepareOutput(bool $show_sub_objects=true)
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
@ilCtrl_Calls ilPortfolioRoleAssignmentGUI: ilPropertyFormGUI

References ILIAS\Repository\ctrl(), and ilObjectGUI\prepareOutput().

+ Here is the call graph for this function:

◆ getAdminTabs()

ilObjPortfolioAdministrationGUI::getAdminTabs ( )

administration tabs show only permissions and trash folder

Reimplemented from ilObjectGUI.

Definition at line 84 of file class.ilObjPortfolioAdministrationGUI.php.

84 : void
85 {
87 $tabs = $this->tabs_gui;
88
89
90 if ($this->hasReadPermission()) {
91 $tabs->addTab(
92 "settings",
93 $lng->txt("settings"),
94 $this->ctrl->getLinkTarget($this, "editSettings")
95 );
96 $tabs->addTab(
97 "role_assignment",
98 $lng->txt("prtf_role_assignment"),
99 $this->ctrl->getLinkTargetByClass("ilPortfolioRoleAssignmentGUI", "")
100 );
101 $tabs->addTab(
102 "authorship",
103 $lng->txt("prtf_decl_authorship"),
104 $this->ctrl->getLinkTarget($this, "editDeclarationOfAuthorship")
105 );
106 }
107
108 if ($this->checkPermissionBool('edit_permission')) {
109 $tabs->addTab(
110 "perm_settings",
111 $lng->txt("perm_settings"),
112 $this->ctrl->getLinkTargetByClass('ilpermissiongui', "perm")
113 );
114 }
115 }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
ilTabsGUI $tabs_gui
ilLanguage $lng
addTab(string $a_id, string $a_text, string $a_link, string $a_frame="")
Add a Tab.

References ilObjectGUI\$lng, ilObjectGUI\$tabs_gui, ilTabsGUI\addTab(), ilObjectGUI\checkPermissionBool(), hasReadPermission(), and ilLanguage\txt().

+ Here is the call graph for this function:

◆ hasReadPermission()

ilObjPortfolioAdministrationGUI::hasReadPermission ( )
protected

Definition at line 165 of file class.ilObjPortfolioAdministrationGUI.php.

165 : bool
166 {
167 return $this->rbac_system->checkAccess("read", $this->object->getRefId());
168 }

References ILIAS\Repository\object().

Referenced by getAdminTabs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hasWritePermission()

ilObjPortfolioAdministrationGUI::hasWritePermission ( )
protected

Definition at line 160 of file class.ilObjPortfolioAdministrationGUI.php.

160 : bool
161 {
162 return $this->rbac_system->checkAccess("write", $this->object->getRefId());
163 }

References ILIAS\Repository\object().

Referenced by initFormSettings(), saveAuthorship(), and saveSettings().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initAuthorshipForm()

ilObjPortfolioAdministrationGUI::initAuthorshipForm ( )

Definition at line 256 of file class.ilObjPortfolioAdministrationGUI.php.

257 {
258 $ui = $this->ui;
259 $f = $ui->factory();
262
263 $lng->loadLanguageModule("meta");
264 $fields = [];
265
266 foreach ($lng->getInstalledLanguages() as $l) {
267 $txt = $lng->txt("meta_l_" . $l);
268 if ($lng->getDefaultLanguage() == $l) {
269 $txt .= " (" . $lng->txt("default") . ")";
270 }
271 $fields["decl_" . $l] = $f->input()->field()->textarea($txt)
272 ->withRequired(false)
273 ->withValue($this->declaration_authorship->getForLanguage($l));
274 }
275
276 // section
277 $section1 = $f->input()->field()->section($fields, $lng->txt("prtf_decl_authorship"), "");
278
279 $form_action = $ctrl->getLinkTarget($this, "saveAuthorship");
280 return $f->input()->container()->form()->standard($form_action, ["sec" => $section1]);
281 }
getLinkTarget(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
@inheritDoc
loadLanguageModule(string $a_module)
Load language module.
getDefaultLanguage()
Return default language.
getInstalledLanguages()
Get installed languages.
$txt
Definition: error.php:13
This describes a standard form.
Definition: Standard.php:27

References ilObjectGUI\$ctrl, Vendor\Package\$f, ilObjectGUI\$form_action, ilObjectGUI\$lng, $txt, $ui, ilLanguage\getDefaultLanguage(), ilLanguage\getInstalledLanguages(), ilCtrl\getLinkTarget(), ilLanguage\loadLanguageModule(), and ilLanguage\txt().

Referenced by editDeclarationOfAuthorship(), and saveAuthorship().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initFormSettings()

ilObjPortfolioAdministrationGUI::initFormSettings ( )
protected

Definition at line 170 of file class.ilObjPortfolioAdministrationGUI.php.

171 {
174
175 $form = new ilPropertyFormGUI();
176 $form->setFormAction($this->ctrl->getFormAction($this));
177 $form->setTitle($this->lng->txt('prtf_settings'));
178
179 if ($this->hasWritePermission()) {
180 $form->addCommandButton('saveSettings', $this->lng->txt('save'));
181 $form->addCommandButton('cancel', $this->lng->txt('cancel'));
182 }
183
184 // Enable 'Portfolios'
186 $lng->loadLanguageModule('user');
187 $prtf_prop = new ilCheckboxInputGUI($lng->txt('pd_enable_prtf'), 'prtf');
188 $prtf_prop->setValue('1');
189 $prtf_prop->setInfo($lng->txt('user_portfolios_desc'));
190 $prtf_prop->setChecked((bool) $ilSetting->get('user_portfolios'));
191 $form->addItem($prtf_prop);
192
193 $prfa_set = new ilSetting("prfa");
194
195 $banner = new ilCheckboxInputGUI($lng->txt("prtf_preview_banner"), "banner");
196 $banner->setInfo($lng->txt("prtf_preview_banner_info"));
197 $form->addItem($banner);
198
199 $width = new ilNumberInputGUI($lng->txt("prtf_preview_banner_width"), "width");
200 $width->setRequired(true);
201 $width->setSize(4);
202 $banner->addSubItem($width);
203
204 $height = new ilNumberInputGUI($lng->txt("prtf_preview_banner_height"), "height");
205 $height->setRequired(true);
206 $height->setSize(4);
207 $banner->addSubItem($height);
208
209 $banner->setChecked($prfa_set->get("banner", false));
210 if ($prfa_set->get("banner")) {
211 $width->setValue($prfa_set->get("banner_width"));
212 $height->setValue($prfa_set->get("banner_height"));
213 } else {
214 $width->setValue(1370);
215 $height->setValue(100);
216 }
217
218 $mycourses = new ilCheckboxInputGUI($lng->txt("prtf_allow_my_courses"), "mycrs");
219 $mycourses->setInfo($lng->txt("prtf_allow_my_courses_info"));
220 $mycourses->setChecked($prfa_set->get("mycrs", true));
221 $form->addItem($mycourses);
222
223 return $form;
224 }
This class represents a checkbox property in a property form.
This class represents a number property in a property form.
This class represents a property form user interface.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $ilSetting, ilObjectGUI\$lng, ilObjectGUI\$settings, ILIAS\Repository\ctrl(), hasWritePermission(), ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), and ilLanguage\txt().

Referenced by editSettings(), and saveSettings().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveAuthorship()

ilObjPortfolioAdministrationGUI::saveAuthorship ( )

Definition at line 283 of file class.ilObjPortfolioAdministrationGUI.php.

283 : void
284 {
286 $form = $this->initAuthorshipForm();
289
290 if ($this->hasWritePermission()) {
291 if ($request->getMethod() === "POST") {
292 $form = $form->withRequest($request);
293 $data = $form->getData();
294 if (is_array($data["sec"])) {
295 foreach ($lng->getInstalledLanguages() as $l) {
296 $this->declaration_authorship->setForLanguage($l, $data["sec"]["decl_" . $l]);
297 }
298
299 $this->tpl->setOnScreenMessage('info', $lng->txt("msg_obj_modified"), true);
300 }
301 }
302 } else {
303 $this->tpl->setOnScreenMessage('failure', $lng->txt("msg_no_perm_write"), true);
304 }
305 $ctrl->redirect($this, "editDeclarationOfAuthorship");
306 }
ServerRequestInterface $request

References ilObjectGUI\$ctrl, ilObjectGUI\$data, ilObjectGUI\$lng, ilObjectGUI\$request, ilLanguage\getInstalledLanguages(), hasWritePermission(), initAuthorshipForm(), ilCtrl\redirect(), and ilLanguage\txt().

+ Here is the call graph for this function:

◆ saveSettings()

ilObjPortfolioAdministrationGUI::saveSettings ( )

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

126 : void
127 {
128 $ilCtrl = $this->ctrl;
130
131 if ($this->hasWritePermission()) {
132 $form = $this->initFormSettings();
133 if ($form->checkInput()) {
134 $ilSetting->set('user_portfolios', (int) $form->getInput("prtf"));
135
136 $banner = (bool) $form->getInput("banner");
137
138 $prfa_set = new ilSetting("prfa");
139 $prfa_set->set("banner", $banner);
140 $prfa_set->set("banner_width", (int) $form->getInput("width"));
141 $prfa_set->set("banner_height", (int) $form->getInput("height"));
142 $prfa_set->set("mask", (bool) $form->getInput("mask"));
143 $prfa_set->set("mycrs", (bool) $form->getInput("mycrs"));
144
145 $this->tpl->setOnScreenMessage('success', $this->lng->txt("settings_saved"), true);
146 $ilCtrl->redirect($this, "editSettings");
147 }
148 $form->setValuesByPost();
149 $this->editSettings($form);
150 }
151 }

References ilObjectGUI\$ctrl, $ilSetting, ilObjectGUI\$settings, editSettings(), hasWritePermission(), initFormSettings(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

Field Documentation

◆ $ui

ILIAS DI UIServices ilObjPortfolioAdministrationGUI::$ui
protected

◆ ilPortfolioDeclarationOfAuthorship$declaration_authorship

ilObjPortfolioAdministrationGUI::ilPortfolioDeclarationOfAuthorship$declaration_authorship
protected

Definition at line 29 of file class.ilObjPortfolioAdministrationGUI.php.


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