ILIAS  release_8 Revision v8.24
ilPropertyFormGUI Class Reference

This class represents a property form user interface. More...

+ Inheritance diagram for ilPropertyFormGUI:
+ Collaboration diagram for ilPropertyFormGUI:

Public Member Functions

 __construct ()
 
 executeCommand ()
 
 setTableWidth (string $a_width)
 
 getTableWidth ()
 
 setMode (string $a_mode)
 
 getMode ()
 
 setTitle (string $a_title)
 
 getTitle ()
 
 setTitleIcon (string $a_titleicon)
 
 getTitleIcon ()
 
 setDescription (string $a_val)
 
 getDescription ()
 
 setTopAnchor (string $a_val)
 
 getTopAnchor ()
 
 setShowTopButtons (bool $a_val)
 
 getShowTopButtons ()
 
 setForceTopButtons (bool $a_val)
 
 getForceTopButtons ()
 
 addItem ($a_item)
 
 removeItemByPostVar (string $a_post_var, bool $a_remove_unused_headers=false)
 
 getItemByPostVar (string $a_post_var)
 
 setItems (array $a_items)
 
 getItems ()
 
 getInputItemsRecursive ()
 returns a flat array of all input items including the possibly existing subitems recursively More...
 
 setDisableStandardMessage (bool $a_val)
 
 getDisableStandardMessage ()
 
 getHideLabels ()
 
 setHideLabels (bool $a_value=true)
 
 setValuesByArray (array $a_values, bool $a_restrict_to_value_keys=false)
 
 setValuesByPost ()
 
 checkInput ()
 
 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-POST variable, identified by the passed postvar. More...
 
 addCommandButton (string $a_cmd, string $a_text, string $a_id="")
 
 getCommandButtons ()
 
 clearCommandButtons ()
 
 getContent ()
 
 insertItem ( $item, bool $a_sub_item=false)
 
 addAsyncOnloadCode (string $code)
 
 getHTML ()
 
 getHTMLAsync ()
 
 getFileUpload (string $a_field, ?string $a_index=null, ?string $a_sub_index=null)
 Get file upload data. More...
 
 hasFileUpload (string $a_field, ?string $a_index=null, ?string $a_sub_index=null)
 
 moveFileUpload (string $a_target_directory, string $a_field, ?string $a_target_name=null, ?string $a_index=null, ?string $a_sub_index=null)
 Move upload to target directory. More...
 
- Public Member Functions inherited from ilFormGUI
 setFormAction (string $a_formaction)
 
 getFormAction ()
 
 setTarget (string $a_target)
 
 getTarget ()
 
 setMultipart (bool $a_multipart)
 
 getMultipart ()
 
 setId (string $a_id)
 
 getId ()
 
 setName (string $a_name)
 
 getName ()
 
 setKeepOpen (bool $a_keepopen)
 
 getKeepOpen ()
 
 setOpenTag (bool $a_open)
 
 getOpenTag ()
 
 setCloseTag (bool $a_val)
 
 getCloseTag ()
 
 setPreventDoubleSubmission (bool $a_val)
 
 getPreventDoubleSubmission ()
 
 getHTML ()
 
 getContent ()
 

Protected Member Functions

 getRequestedPostVar ()
 
 getFileHash ()
 
 hideRequired (string $a_type)
 
 appendOnloadCode (string $html)
 
 rebuildUploadedFiles ()
 

Protected Attributes

bool $required_text = false
 
ilLanguage $lng
 
ilCtrl $ctrl
 
ilTemplate $tpl
 
ilObjUser $user = null
 
ilSetting $settings = null
 
string $mode = "std"
 
bool $check_input_called = false
 
bool $disable_standard_message = false
 
string $top_anchor = "il_form_top"
 
string $title = ''
 
string $titleicon = ""
 
string $description = ""
 
string $tbl_width = ""
 
bool $show_top_buttons = true
 
bool $hide_labels = false
 
bool $force_top_buttons = false
 
HTTP Services $http
 
Refinery Factory $refinery = null
 
ilGlobalTemplateInterface $global_tpl = null
 
 $onload_code = []
 
- Protected Attributes inherited from ilFormGUI
string $formaction = ""
 
bool $multipart = false
 
bool $keepopen = false
 
bool $opentag = true
 
string $id = ''
 
string $name = ''
 
string $target = ''
 
bool $prevent_double_submission = false
 

Private Attributes

array $kept_uploads = []
 
array $buttons = array()
 
array $items = array()
 

Detailed Description

This class represents a property form user interface.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de @ilCtrl_Calls ilPropertyFormGUI: ilFormPropertyDispatchGUI

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

Constructor & Destructor Documentation

◆ __construct()

ilPropertyFormGUI::__construct ( )

Reimplemented in ilAssOrderingQuestionAuthoringFormGUI, ilAssQuestionAuthoringFormGUI, and ilMStListCoursesGUI.

Definition at line 58 of file class.ilPropertyFormGUI.php.

59 {
60 global $DIC;
61
62 $this->lng = $DIC->language();
63 $this->ctrl = $DIC->ctrl();
64
65 $this->user = null;
66 if (isset($DIC["ilUser"])) {
67 $this->user = $DIC["ilUser"];
68 }
69
70 $this->settings = null;
71 if (isset($DIC["ilSetting"])) {
72 $this->settings = $DIC["ilSetting"];
73 }
74
75 $lng = $DIC->language();
76
77 $lng->loadLanguageModule("form");
78
79 // avoid double submission
80 $this->setPreventDoubleSubmission(true);
81
82 // do it as early as possible
83 if (isset($DIC["http"])) {
84 $this->http = $DIC->http();
85 }
86 if (isset($DIC["refinery"])) {
87 $this->refinery = $DIC->refinery();
88 }
89 $this->rebuildUploadedFiles();
90 if (isset($DIC["tpl"])) { // some unit tests will fail otherwise
91 $this->global_tpl = $DIC['tpl'];
92 }
93 }
setPreventDoubleSubmission(bool $a_val)
loadLanguageModule(string $a_module)
Load language module.
global $DIC
Definition: feed.php:28
static http()
Fetches the global http state from ILIAS.

References $DIC, $lng, ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), rebuildUploadedFiles(), ILIAS\Repository\refinery(), ilFormGUI\setPreventDoubleSubmission(), ILIAS\Repository\settings(), and ILIAS\Repository\user().

+ Here is the call graph for this function:

Member Function Documentation

◆ addAsyncOnloadCode()

ilPropertyFormGUI::addAsyncOnloadCode ( string  $code)

Definition at line 807 of file class.ilPropertyFormGUI.php.

807 : void
808 {
809 $this->onload_code[] = $code;
810 }

◆ addCommandButton()

ilPropertyFormGUI::addCommandButton ( string  $a_cmd,
string  $a_text,
string  $a_id = "" 
)

Definition at line 466 of file class.ilPropertyFormGUI.php.

470 : void {
471 $this->buttons[] = array("cmd" => $a_cmd, "text" => $a_text, "id" => $a_id);
472 }

Referenced by FormMailCodesGUI\__construct(), SurveyQuestionGUI\addCommandButtons(), ilPageComponentPluginGUI\addCreationButton(), ilChatroomFormFactory\addDefaultBehaviour(), ilAssQuestionAuthoringFormGUI\addGenericAssessmentQuestionCommandButtons(), ilTestExpressPageObjectGUI\addQuestion(), assQuestionGUI\addQuestionFormCommandButtons(), ilAssOrderingQuestionAuthoringFormGUI\addSpecificOrderingQuestionCommandButtons(), ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilAssQuestionSkillAssignmentPropertyFormGUI\build(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilChatroomHistoryGUI\bySession(), ilPCMediaObjectGUI\changeObjectReference(), ilAsyncPropertyFormGUI\cloneForm(), ilPCTableGUI\editCellAlignment(), ilPCTableGUI\editCellStyle(), ilObjCourseGUI\editMapSettingsObject(), ilObjGroupGUI\editMapSettingsObject(), ilPCMediaObjectGUI\editStyle(), ilForumThreadFormGUI\generateDefaultForm(), ilForumThreadFormGUI\generateMinimalForm(), ilObjAuthSettingsGUI\getApacheAuthSettingsForm(), ilObjStyleSheetGUI\getCloneForm(), ilLTIConsumeProviderFormGUI\getContentSelectionFrame(), ilObjStyleSheetGUI\getCreateForm(), ilLTIConsumeProviderFormGUI\getDynRegError(), ilSamlSettingsGUI\getIdpForm(), ilSamlSettingsGUI\getIdpSettingsForm(), ilObjStyleSheetGUI\getImportForm(), ILIAS\COPage\Editor\Server\UIWrapper\getRenderedForm(), ilSamlSettingsGUI\getSettingsForm(), ilMailTemplateGUI\getTemplateForm(), ilObjAdvancedEditingGUI\getTinyForm(), ilMailOptionsFormGUI\init(), ilObjOrgUnitGUI\initAdvancedSettingsForm(), ilObjStudyProgrammeGUI\initAdvancedSettingsForm(), ilBiblFieldFilterFormGUI\initButtons(), ILIAS\Modules\OrgUnit\ARHelper\BaseForm\initButtons(), ilOrgUnitDefaultPermissionFormGUI\initButtons(), ilObjAdvancedEditingGUI\initCharSelectorSettingsForm(), ilObjEmployeeTalkSeriesGUI\initCreateForm(), ilObjGlossaryGUI\initCreateForm(), ilLTIConsumeProviderFormGUI\initDynRegForm(), ilObjCategoryGUI\initEditForm(), ilObjCourseGUI\initEditForm(), ilObjTalkTemplateGUI\initEditForm(), ilObjFolderGUI\initEditForm(), ilContainerGUI\initEditForm(), ilBiblLibraryFormGUI\initForm(), ilDclTableViewEditFormGUI\initForm(), ilExtIdGUI\initForm(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilOrgUnitTypeFormGUI\initForm(), ilStudyProgrammeTypeCustomIconsFormGUI\initForm(), ilAccessibilityDocumentFormGUI\initForm(), ilRegistrationSettingsGUI\initForm(), ilTermsOfServiceSettingsFormGUI\initForm(), ilTermsOfServiceDocumentFormGUI\initForm(), ilWebDAVMountInstructionsDocumentFormGUI\initForm(), ilContainerReferenceGUI\initForm(), ilObjGroupGUI\initForm(), ilLTIConsumeProviderFormGUI\initForm(), ilLTIConsumerSettingsFormGUI\initForm(), ilCalendarAppointmentGUI\initFormConfirmBooking(), ilCourseObjectivesGUI\initFormRandom(), ilMembershipAdministrationGUI\initFormSettings(), ilObjAdvancedEditingGUI\initGeneralPageSettingsForm(), ilObjMDSettingsGUI\initGeneralSettingsForm(), ilConsultationHoursGUI\initGroupForm(), ilCalendarCategoryGUI\initImportForm(), ilObjSCORMLearningModuleGUI\initImportForm(), ilObjCourseGUI\initInfoEditor(), ilObjGroupGUI\initInfoEditor(), ilSkillRootGUI\initInputForm(), ilECSSettingsGUI\initMappingsForm(), ilObjectCustomUserFieldsGUI\initMemberForm(), ilObjContentObjectGUI\initMenuEntryForm(), ilObjContentObjectGUI\initMenuForm(), ilObjUserFolderGUI\initNewAccountMailForm(), ilPageObjectGUI\initOpenedContentForm(), ilObjMDSettingsGUI\initSettingsForm(), and ilLTIConsumeProviderFormGUI\initToolConfigForm().

+ Here is the caller graph for this function:

◆ addItem()

ilPropertyFormGUI::addItem (   $a_item)
Parameters
ilFormPropertyGUI | ilFormSectionHeaderGUI$a_item

Definition at line 213 of file class.ilPropertyFormGUI.php.

213 : void
214 {
215 $a_item->setParentForm($this);
216 $this->items[] = $a_item;
217 }

Referenced by FormMailCodesGUI\__construct(), ilMemberAgreementGUI\addAgreement(), ilForumThreadFormGUI\addAliasInput(), ilForumThreadFormGUI\addAllowNotificationInput(), ilObjTestSettingsGeneralGUI\addAvailabilityProperties(), ilObjContentPageGUI\addAvailabilitySection(), ilForumSettingsGUI\addAvailabilitySection(), assClozeTestGUI\addBasicQuestionFormProperties(), assQuestionGUI\addBasicQuestionFormProperties(), ilObjCourseAdministrationGUI\addChildContentsTo(), ilIndividualAssessmentCommonSettingsGUI\addCommonFieldsToForm(), ilObjLearningSequenceSettingsGUI\addCommonFieldsToForm(), ilTCPDFRenderer\addConfigElementsToForm(), ilWkhtmlToPdfConfigFormGUI\addConfigForm(), ilObjRemoteCourseGUI\addCustomEditForm(), ilObjRemoteGlossaryGUI\addCustomEditForm(), ilObjRemoteGroupGUI\addCustomEditForm(), ilObjRemoteLearningModuleGUI\addCustomEditForm(), ilObjRemoteTestGUI\addCustomEditForm(), ilObjRemoteWikiGUI\addCustomEditForm(), ilForumCronNotification\addCustomSettingsToForm(), ilConsultationHourCron\addCustomSettingsToForm(), ilCleanCOPageHistoryCronjob\addCustomSettingsToForm(), ilLoggerCronCleanErrorFiles\addCustomSettingsToForm(), ilMailCronNotification\addCustomSettingsToForm(), ilMailCronOrphanedMails\addCustomSettingsToForm(), ilCronOerHarvester\addCustomSettingsToForm(), ilSCCronTrash\addCustomSettingsToForm(), ilCronDeleteInactivatedUserAccounts\addCustomSettingsToForm(), ilCronDeleteInactiveUserAccounts\addCustomSettingsToForm(), ilCronDeleteNeverLoggedInUserAccounts\addCustomSettingsToForm(), ilExAssTypePortfolioGUI\addEditFormCustomProperties(), ilExAssTypeTextGUI\addEditFormCustomProperties(), ilExAssTypeWikiTeamGUI\addEditFormCustomProperties(), SurveyMatrixQuestionGUI\addFieldsToEditForm(), SurveyMetricQuestionGUI\addFieldsToEditForm(), SurveyMultipleChoiceQuestionGUI\addFieldsToEditForm(), SurveySingleChoiceQuestionGUI\addFieldsToEditForm(), SurveyTextQuestionGUI\addFieldsToEditForm(), ilForumThreadFormGUI\addFileUploadInput(), ilCharSelectorGUI\addFormProperties(), ilObjTestSettingsGeneralGUI\addGeneralProperties(), ilPersonalProfileGUI\addLocationToForm(), ilMembershipRegistrationSettingsGUI\addMembershipFormElements(), ilForumThreadFormGUI\addMessageInput(), ilSamlSettingsGUI\addMetadataElement(), assQuestionGUI\addNumberOfTriesToFormIfNecessary(), ilObjTestSettingsGeneralGUI\addPresentationProperties(), ilTestExpressPageObjectGUI\addQuestion(), ilObjTestSettingsGeneralGUI\addQuestionBehaviourProperties(), ilECSObjectSettings\addSettingsToForm(), ILIAS\Blog\ReadingTime\BlogSettingsGUI\addSettingToForm(), ILIAS\LearningModule\ReadingTime\SettingsGUI\addSettingToForm(), ilSkillTreeNodeGUI\addStatusInput(), ilForumThreadFormGUI\addSubjectInput(), ilObjTestSettingsGeneralGUI\addTestAccessProperties(), ilObjTestSettingsGeneralGUI\addTestFinishProperties(), ilObjTestSettingsGeneralGUI\addTestIntroProperties(), ilObjTestSettingsGeneralGUI\addTestRunProperties(), ilObjTestSettingsGeneralGUI\addTestSequenceProperties(), ilTaxMDGUI\addToMDForm(), ilOrgUnitTypeFormGUI\addTranslationInputs(), ilWkhtmlToPdfConfigFormGUI\appendOutputOptionsForm(), ilWkhtmlToPdfConfigFormGUI\appendPageSettingsForm(), ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilAssQuestionSkillAssignmentPropertyFormGUI\build(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilAsyncPropertyFormGUI\cloneForm(), ilAssQuestionFeedback\completeGenericFormProperties(), ilAssClozeTestFeedback\completeSpecificFormProperties(), ilAssConfigurableMultiOptionQuestionFeedback\completeSpecificFormProperties(), ilAssMultiOptionQuestionFeedback\completeSpecificFormProperties(), ilPCTableGUI\editCellAlignment(), ilPCTableGUI\editCellStyle(), ilObjCourseGUI\editMapSettingsObject(), ilObjGroupGUI\editMapSettingsObject(), ilPCMediaObjectGUI\editStyle(), ilObjAuthSettingsGUI\getApacheAuthSettingsForm(), ilObjStyleSheetGUI\getCloneForm(), ilObjStyleSheetGUI\getCreateForm(), ilSearchBaseGUI\getCreationDateForm(), ilForumSettingsGUI\getCustomForm(), ilSamlSettingsGUI\getIdpSettingsForm(), ilObjStyleSheetGUI\getImportForm(), ilObjCategoryGUI\getObjectMetadataGUI(), ilSearchBaseGUI\getSearchAreaForm(), ilSamlSettingsGUI\getSettingsForm(), ilMailTemplateGUI\getTemplateForm(), ilObjAdvancedEditingGUI\getTinyForm(), ilExAssignmentEditorGUI\handleDisabledPeerFields(), ilMailOptionsFormGUI\init(), ilCourseLPBadgeGUI\initConfigForm(), ilUserProfileBadgeGUI\initConfigForm(), ilObjPortfolioGUI\initCopyPageFormOptions(), ilObjPortfolioTemplateGUI\initCopyPageFormOptions(), ilObjEmployeeTalkSeriesGUI\initCreateForm(), ilObjGlossaryGUI\initCreateForm(), ilExcCriteriaText\initCustomForm(), ilObjPortfolioTemplateGUI\initDidacticTemplate(), ilObjectGUI\initDidacticTemplate(), ilLTIConsumeProviderFormGUI\initDynRegForm(), ilObjBibliographicGUI\initEditCustomForm(), ilObjContentPageGUI\initEditCustomForm(), ilObjTalkTemplateGUI\initEditCustomForm(), ilObjMediaPoolGUI\initEditCustomForm(), ilObjPollGUI\initEditCustomForm(), ilObjPortfolioBaseGUI\initEditCustomForm(), ilObjPortfolioTemplateGUI\initEditCustomForm(), ilObjBookingPoolGUI\initEditCustomForm(), ilObjItemGroupGUI\initEditCustomForm(), ilObjCategoryGUI\initEditForm(), ilObjCourseGUI\initEditForm(), ilObjFolderGUI\initEditForm(), ilObjCourseReferenceGUI\initForm(), ilBiblLibraryFormGUI\initForm(), ilBiblFieldFilterFormGUI\initForm(), ilDclTableViewEditFormGUI\initForm(), ilExtIdGUI\initForm(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilOrgUnitTypeFormGUI\initForm(), ilStudyProgrammeTypeCustomIconsFormGUI\initForm(), ilAccessibilityDocumentFormGUI\initForm(), ilRegistrationSettingsGUI\initForm(), ilTermsOfServiceSettingsFormGUI\initForm(), ilTermsOfServiceDocumentFormGUI\initForm(), ilWebDAVMountInstructionsDocumentFormGUI\initForm(), ilContainerReferenceGUI\initForm(), ilObjGroupGUI\initForm(), ilLTIConsumeProviderFormGUI\initForm(), ilLTIConsumerSettingsFormGUI\initForm(), ilCalendarAppointmentGUI\initFormConfirmBooking(), ilOrgUnitAuthorityFormGUI\initFormElements(), ilOrgUnitPositionFormGUI\initFormElements(), ilOrgUnitDefaultPermissionFormGUI\initFormElements(), ilCourseObjectivesGUI\initFormRandom(), ilMembershipAdministrationGUI\initFormSettings(), ilObjAdvancedEditingGUI\initGeneralPageSettingsForm(), ilObjMDSettingsGUI\initGeneralSettingsForm(), ilConsultationHoursGUI\initGroupForm(), ilCalendarCategoryGUI\initImportForm(), ilObjContentObjectGUI\initImportForm(), ilObjSCORMLearningModuleGUI\initImportForm(), ilObjCourseGUI\initInfoEditor(), ilObjGroupGUI\initInfoEditor(), ilSkillRootGUI\initInputForm(), ilContainerGUI\initListPresentationForm(), ilECSSettingsGUI\initMappingsForm(), ilObjContentObjectGUI\initMenuEntryForm(), ilObjContentObjectGUI\initMenuForm(), ilObjUserFolderGUI\initNewAccountMailForm(), ilPageObjectGUI\initOpenedContentForm(), ilAdvancedMDFieldDefinitionGroupBased\initOptionForm(), ilObjectServiceSettingsGUI\initServiceSettingsForm(), ilObjMDSettingsGUI\initSettingsForm(), ilLTIConsumeProviderFormGUI\initToolConfigForm(), ilMDEditorGUI\listQuickEditCopyright(), assMatchingQuestionGUI\populateAnswerSpecificFormPart(), assNumericGUI\populateAnswerSpecificFormPart(), assTextQuestionGUI\populateAnswerSpecificFormPart(), assTextSubsetGUI\populateAnswerSpecificFormPart(), assMultipleChoiceGUI\populateAnswerSpecificFormPart(), assSingleChoiceGUI\populateAnswerSpecificFormPart(), assClozeTestGUI\populateAnswerSpecificFormPart(), assErrorTextGUI\populateAnswerSpecificFormPart(), assKprimChoiceGUI\populateAnswerSpecificFormPart(), assOrderingQuestionGUI\populateAnswerSpecificFormPart(), assErrorTextGUI\populateCorrectionsFormProperties(), assFileUploadGUI\populateCorrectionsFormProperties(), assImagemapQuestionGUI\populateCorrectionsFormProperties(), assKprimChoiceGUI\populateCorrectionsFormProperties(), assLongMenuGUI\populateCorrectionsFormProperties(), assMatchingQuestionGUI\populateCorrectionsFormProperties(), assMultipleChoiceGUI\populateCorrectionsFormProperties(), assNumericGUI\populateCorrectionsFormProperties(), assOrderingHorizontalGUI\populateCorrectionsFormProperties(), assOrderingQuestionGUI\populateCorrectionsFormProperties(), assSingleChoiceGUI\populateCorrectionsFormProperties(), assTextSubsetGUI\populateCorrectionsFormProperties(), ilAssQuestionSkillAssignmentPropertyFormGUI\populateFullProperties(), assClozeTestGUI\populateGapCombinationCorrectionFormProperty(), ilAssQuestionSkillAssignmentPropertyFormGUI\populateLimitedProperties(), assImagemapQuestionGUI\populateQuestionSpecificFormPart(), assMatchingQuestionGUI\populateQuestionSpecificFormPart(), assNumericGUI\populateQuestionSpecificFormPart(), assOrderingHorizontalGUI\populateQuestionSpecificFormPart(), assOrderingQuestionGUI\populateQuestionSpecificFormPart(), assTextQuestionGUI\populateQuestionSpecificFormPart(), assTextSubsetGUI\populateQuestionSpecificFormPart(), assMultipleChoiceGUI\populateQuestionSpecificFormPart(), assSingleChoiceGUI\populateQuestionSpecificFormPart(), assClozeTestGUI\populateQuestionSpecificFormPart(), assErrorTextGUI\populateQuestionSpecificFormPart(), assFileUploadGUI\populateQuestionSpecificFormPart(), assKprimChoiceGUI\populateQuestionSpecificFormPart(), assLongMenuGUI\populateQuestionSpecificFormPart(), assQuestionGUI\populateTaxonomyFormSection(), ilAdvancedMDFieldDefinitionSelect\prepareCustomDefinitionFormConfirmation(), and ilAdvancedMDFieldDefinition\prepareDefinitionFormConfirmation().

+ Here is the caller graph for this function:

◆ appendOnloadCode()

ilPropertyFormGUI::appendOnloadCode ( string  $html)
protected

Definition at line 841 of file class.ilPropertyFormGUI.php.

841 : string
842 {
843 if (count($this->onload_code) > 0) {
844 $html .= "<script>";
845 foreach ($this->onload_code as $code) {
846 $html .= $code . "\n";
847 }
848 $html .= "</script>";
849 }
850 return $html;
851 }

◆ checkInput()

ilPropertyFormGUI::checkInput ( )

Reimplemented in ilAsyncPropertyFormGUI.

Definition at line 344 of file class.ilPropertyFormGUI.php.

344 : bool
345 {
346 global $DIC;
347
348 if ($this->check_input_called) {
349 die("Error: ilPropertyFormGUI->checkInput() called twice.");
350 }
351
352 $ok = true;
353 foreach ($this->items as $item) {
354 $item_ok = $item->checkInput();
355 if (!$item_ok) {
356 $ok = false;
357 }
358 }
359
360 // check if POST is missing completely (if post_max_size exceeded)
361 $post = $this->http->request()->getParsedBody();
362 if (count($this->items) > 0 && count($post) === 0) {
363 $ok = false;
364 }
365
366 $this->check_input_called = true;
367
368 // try to keep uploads for another try
369 $filehash = $this->getFileHash();
370 if (!$ok && !is_null($filehash) && $filehash && count($_FILES)) {
371 $hash = $filehash;
372
373 foreach ($_FILES as $field => $data) {
374 // only try to keep files that are ok
375 // see 25484: Wrong error handling when uploading icon instead of tile
376 $item = $this->getItemByPostVar($field);
377 if (is_null($item) || !$item->checkInput()) {
378 continue;
379 }
380 // we support up to 2 nesting levels (see test/assessment)
381 if (is_array($data["tmp_name"])) {
382 foreach ($data["tmp_name"] as $idx => $upload) {
383 if (is_array($upload)) {
384 foreach ($upload as $idx2 => $file) {
385 if ($file && is_uploaded_file($file)) {
386 $file_name = $data["name"][$idx][$idx2];
387 $file_type = $data["type"][$idx][$idx2];
388 $this->keepFileUpload($hash, $field, $file, $file_name, $file_type, (string) $idx, (string) $idx2);
389 }
390 }
391 } elseif ($upload && is_uploaded_file($upload)) {
392 $file_name = $data["name"][$idx];
393 $file_type = $data["type"][$idx];
394 $this->keepFileUpload($hash, $field, $upload, $file_name, $file_type, (string) $idx);
395 }
396 }
397 } else {
398 $this->keepFileUpload($hash, $field, $data["tmp_name"], $data["name"], $data["type"]);
399 }
400 }
401 }
402 $http = $DIC->http();
403 $txt = $DIC->language()->txt("form_input_not_valid");
404 switch ($http->request()->getHeaderLine('Accept')) {
405 // When JS asks for a valid JSON-Response, we send the success and message as JSON
406 case 'application/json':
407 $stream = \ILIAS\Filesystem\Stream\Streams::ofString(json_encode([
408 'success' => $ok,
409 'message' => $txt,
410 ]));
411 $http->saveResponse($http->response()->withBody($stream));
412
413 return $ok;
414
415 // Otherwise, we send it using ilUtil, and it will be rendered in the Template
416 default:
417
418 if (!$ok && !$this->getDisableStandardMessage()) {
419 $this->global_tpl->setOnScreenMessage('failure', $txt);
420 }
421
422 return $ok;
423 }
424 }
static ofString(string $string)
Creates a new stream with an initial value.
Definition: Streams.php:43
saveResponse(ResponseInterface $response)
@inheritDoc
Definition: Services.php:119
getItemByPostVar(string $a_post_var)
$txt
Definition: error.php:13
$post
Definition: ltitoken.php:49

References $data, $DIC, $http, $post, $txt, ILIAS\FileDelivery\http(), and ILIAS\Filesystem\Stream\Streams\ofString().

Referenced by ilCalendarAppointmentGUI\bookconfirmed(), ilChatroomHistoryGUI\bySession(), ILIAS\Survey\Settings\SettingsFormGUI\checkForm(), ilPCSectionGUI\checkInput(), ilObjUserFolderGUI\confirmaccessRestrictObject(), ilObjStyleSheetGUI\copyStyleObject(), ilWebDAVMountInstructionsDocumentFormGUI\createFilledObject(), ilBiblFieldFilterFormGUI\fillObject(), ilOrgUnitAuthorityFormGUI\fillObject(), ilOrgUnitDefaultPermissionFormGUI\fillObject(), ilObjOrgUnitSettingsFormGUI\fillObject(), ilOrgUnitTypeAdvancedMetaDataFormGUI\fillObject(), ilOrgUnitTypeFormGUI\fillObject(), ilAccessibilityCriterionFormGUI\fillObject(), ilTermsOfServiceSettingsFormGUI\fillObject(), ilTermsOfServiceCriterionFormGUI\fillObject(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\fillObject(), ilObjSCORMLearningModuleGUI\import(), ilSkillRootGUI\importSkills(), ilMailTemplateGUI\insertTemplate(), ilRegistrationGUI\join(), ilSearchBaseGUI\loadCreationFilter(), ilExAssignmentEditorGUI\processForm(), ilCourseObjectivesGUI\save(), ilStructureObjectGUI\save(), ilCalendarCategoryGUI\save(), ilMailOptionsFormGUI\save(), ilMemberAgreementGUI\save(), ilObjLinkResourceGUI\saveAddLink(), ilPCMediaObjectGUI\saveAliasProperties(), ilObjAuthSettingsGUI\saveApacheSettingsObject(), ilObjAdvancedEditingGUI\saveCharSelectorSettingsObject(), ilObjMDSettingsGUI\saveCopyrightSettings(), ilObjectCustomIconConfigurationGUI\saveForm(), ilObjAdvancedEditingGUI\saveGeneralPageSettingsObject(), ilObjMDSettingsGUI\saveGeneralSettings(), ilConsultationHoursGUI\saveGroup(), ilSamlSettingsGUI\saveIdpSettings(), ilObjLinkResourceGUI\saveLinkList(), ilObjectCustomUserFieldsGUI\saveMember(), ilObjContentObjectGUI\saveMenuEntry(), ilObjContentObjectGUI\saveMenuProperties(), ilSamlSettingsGUI\saveNewIdp(), ilBiblLibraryFormGUI\saveObject(), ilObjEmployeeTalkSeriesGUI\saveObject(), ilObjGlossaryGUI\saveObject(), ilObjStyleSheetGUI\saveObject(), ilContainerGUI\savePasswordObject(), ilObjContentObjectGUI\saveProperties(), ilCourseObjectivesGUI\saveRandom(), ilObjLinkResourceGUI\saveSettings(), ilMembershipAdministrationGUI\saveSettings(), ilSamlSettingsGUI\saveSettings(), ilObjAdvancedEditingGUI\saveSettingsObject(), ilObjAdvancedEditingGUI\saveTags(), ilObjMediaPoolGUI\saveTitlesAndDescriptions(), ilSamlSettingsGUI\saveUserAttributeMapping(), ilExtIdGUI\update(), ilCalendarCategoryGUI\update(), ilObjOrgUnitGUI\updateAdvancedSettings(), ilObjStudyProgrammeGUI\updateAdvancedSettings(), ilConsultationHoursGUI\updateGroup(), ilObjCourseGUI\updateInfoObject(), ilObjLinkResourceGUI\updateLink(), ilObjContentObjectGUI\updateMenuEntry(), ilObjCategoryGUI\updateObject(), ilObjCourseGUI\updateObject(), ilObjEmployeeTalkGUI\updateObject(), ilObjGroupGUI\updateObject(), ilContainerReferenceGUI\updateObject(), ilMDEditorGUI\updateQuickEdit(), ilMailTemplateGUI\updateTemplate(), ilObjectServiceSettingsGUI\updateToolSettings(), and ilCalendarCategoryGUI\uploadAppointments().

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

◆ clearCommandButtons()

◆ executeCommand()

ilPropertyFormGUI::executeCommand ( )
Returns
mixed
Exceptions
ilCtrlException

Reimplemented in ilMStListCoursesGUI.

Definition at line 99 of file class.ilPropertyFormGUI.php.

100 {
101 $ilCtrl = $this->ctrl;
102
103 $next_class = $ilCtrl->getNextClass($this);
104
105 switch ($next_class) {
106 case 'ilformpropertydispatchgui':
107 $ilCtrl->saveParameter($this, 'postvar');
108 $form_prop_dispatch = new ilFormPropertyDispatchGUI();
109 $item = $this->getItemByPostVar($this->getRequestedPostVar());
110 $form_prop_dispatch->setItem($item);
111 return $ilCtrl->forwardCommand($form_prop_dispatch);
112 }
113 return false;
114 }
getNextClass($a_gui_class=null)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $ctrl, getItemByPostVar(), ilCtrl\getNextClass(), and getRequestedPostVar().

+ Here is the call graph for this function:

◆ getCommandButtons()

ilPropertyFormGUI::getCommandButtons ( )

Definition at line 475 of file class.ilPropertyFormGUI.php.

475 : array
476 {
477 return $this->buttons;
478 }

Referenced by ilAsyncPropertyFormGUI\cloneForm().

+ Here is the caller graph for this function:

◆ getContent()

ilPropertyFormGUI::getContent ( )

Reimplemented from ilFormGUI.

Definition at line 485 of file class.ilPropertyFormGUI.php.

485 : string
486 {
487 global $DIC;
489 $tpl = $DIC["tpl"];
491
494
495 $tpl->addJavaScript("./Services/JavaScript/js/Basic.js");
496 $tpl->addJavaScript("Services/Form/js/Form.js");
497
498 $this->tpl = new ilTemplate("tpl.property_form.html", true, true, "Services/Form");
499
500 // check if form has not title and first item is a section header
501 // -> use section header for title and remove section header
502 // -> command buttons are presented on top
503 $fi = $this->items[0] ?? null;
504 if ($this->getMode() == "std" &&
505 $this->getTitle() == "" &&
506 is_object($fi) && $fi->getType() == "section_header"
507 ) {
508 $this->setTitle($fi->getTitle());
509 unset($this->items[0]);
510 }
511
512
513 // title icon
514 if ($this->getTitleIcon() != "" && is_file($this->getTitleIcon())) {
515 $this->tpl->setCurrentBlock("title_icon");
516 $this->tpl->setVariable("IMG_ICON", $this->getTitleIcon());
517 $this->tpl->parseCurrentBlock();
518 }
519
520 // title
521 if ($this->getTitle() != "") {
522 // commands on top
523 if (count($this->buttons) > 0 && $this->getShowTopButtons() && (count($this->items) > 2 || $this->force_top_buttons)) {
524 // command buttons
525 foreach ($this->buttons as $button) {
526 $this->tpl->setCurrentBlock("cmd2");
527 $this->tpl->setVariable("CMD", $button["cmd"]);
528 $this->tpl->setVariable("CMD_TXT", $button["text"]);
529 if ($button["id"] != "") {
530 $this->tpl->setVariable("CMD2_ID", " id='" . $button["id"] . "_top'");
531 }
532 $this->tpl->parseCurrentBlock();
533 }
534 $this->tpl->setCurrentBlock("commands2");
535 $this->tpl->parseCurrentBlock();
536 }
537
538 if (is_object($ilSetting)) {
539 if ($ilSetting->get('char_selector_availability') > 0) {
541 $char_selector = ilCharSelectorGUI::_getCurrentGUI();
542 if ($char_selector->getConfig()->getAvailability() == ilCharSelectorConfig::ENABLED) {
543 $char_selector->addToPage();
544 $this->tpl->touchBlock('char_selector');
545 }
546 }
547 }
548 }
549
550 $this->tpl->setCurrentBlock("header");
551 $this->tpl->setVariable("TXT_TITLE", $this->getTitle());
552 //$this->tpl->setVariable("LABEL", $this->getTopAnchor());
553 $this->tpl->setVariable("TXT_DESCRIPTION", $this->getDescription());
554 $this->tpl->parseCurrentBlock();
555 }
556 $this->tpl->touchBlock("item");
557
558 // properties
559 $this->required_text = false;
560 foreach ($this->items as $item) {
561 if ($item->getType() != "hidden") {
562 $this->insertItem($item);
563 }
564 }
565
566 // required
567 if ($this->required_text && $this->getMode() == "std") {
568 $this->tpl->setCurrentBlock("required_text");
569 $this->tpl->setVariable("TXT_REQUIRED", $lng->txt("required_field"));
570 $this->tpl->parseCurrentBlock();
571 }
572
573 // command buttons
574 foreach ($this->buttons as $button) {
575 $this->tpl->setCurrentBlock("cmd");
576 $this->tpl->setVariable("CMD", $button["cmd"]);
577 $this->tpl->setVariable("CMD_TXT", $button["text"]);
578
579 if ($button["id"] != "") {
580 $this->tpl->setVariable("CMD_ID", " id='" . $button["id"] . "'");
581 }
582
583 $this->tpl->parseCurrentBlock();
584 }
585
586 // #18808
587 if ($this->getMode() != "subform") {
588 // try to keep uploads even if checking input fails
589 if ($this->getMultipart()) {
590 $hash = $this->getFileHash() ?? null;
591 if (!$hash) {
592 $hash = md5(uniqid((string) mt_rand(), true));
593 }
594 $fhash = new ilHiddenInputGUI("ilfilehash");
595 $fhash->setValue($hash);
596 $this->addItem($fhash);
597 }
598 }
599
600 // hidden properties
601 $hidden_fields = false;
602 foreach ($this->items as $item) {
603 if ($item->getType() == "hidden") {
604 $item->insert($this->tpl);
605 $hidden_fields = true;
606 }
607 }
608
609 if ($this->required_text || count($this->buttons) > 0 || $hidden_fields) {
610 $this->tpl->setCurrentBlock("commands");
611 $this->tpl->parseCurrentBlock();
612 }
613
614
615 if ($this->getMode() == "subform") {
616 $this->tpl->touchBlock("sub_table");
617 } else {
618 $this->tpl->touchBlock("std_table");
619 $this->tpl->setVariable('STD_TABLE_WIDTH', $this->getTableWidth());
620 }
621
622 return $this->tpl->get();
623 }
static _isAllowed()
Check if the CharSelector is allowed for the current GUI.
static _getCurrentGUI(ilObjTest $a_test_obj=null)
Get the GUI that is used for the currently available selector (other GUI instances may exist for conf...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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...
insertItem( $item, bool $a_sub_item=false)
special template class to simplify handling of ITX/PEAR
static initDom(?ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Dom.
static initEvent(?ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Event.
global $ilSetting
Definition: privfeed.php:17

References $DIC, $ilSetting, $lng, ILIAS\LTI\ToolProvider\$settings, $tpl, ilCharSelectorGUI\_getCurrentGUI(), ilCharSelectorGUI\_isAllowed(), ilCharSelectorConfig\ENABLED, ilYuiUtil\initDom(), and ilYuiUtil\initEvent().

+ Here is the call graph for this function:

◆ getDescription()

ilPropertyFormGUI::getDescription ( )

Definition at line 175 of file class.ilPropertyFormGUI.php.

175 : string
176 {
177 return $this->description;
178 }

References $description.

◆ getDisableStandardMessage()

ilPropertyFormGUI::getDisableStandardMessage ( )

Definition at line 303 of file class.ilPropertyFormGUI.php.

303 : bool
304 {
306 }

◆ getFileHash()

ilPropertyFormGUI::getFileHash ( )
protected

Definition at line 426 of file class.ilPropertyFormGUI.php.

426 : ?string
427 {
428 if (is_null($this->refinery)) {
429 return null;
430 }
431 // try to keep uploads for another try
432 $t = $this->refinery->kindlyTo()->string();
433 $w = $this->http->wrapper();
434 $filehash = null;
435 if ($w->post()->has("ilfilehash")) {
436 $filehash = $w->post()->retrieve("ilfilehash", $t);
437 }
438 return $filehash;
439 }

References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().

+ Here is the call graph for this function:

◆ getFileUpload()

ilPropertyFormGUI::getFileUpload ( string  $a_field,
?string  $a_index = null,
?string  $a_sub_index = null 
)

Get file upload data.

Parameters
string$a_fieldform field
mixed$a_indexform field index (if array)
mixed$a_sub_indexform field subindex (if array)
Returns
array (tmp_name, name, type, error, size, is_upload)

Definition at line 918 of file class.ilPropertyFormGUI.php.

922 : array {
923 $res = array();
924 if ($a_index) {
925 if ($_FILES[$a_field]["tmp_name"][$a_index][$a_sub_index] ?? false) {
926 $res = array(
927 "tmp_name" => $_FILES[$a_field]["tmp_name"][$a_index][$a_sub_index],
928 "name" => $_FILES[$a_field]["name"][$a_index][$a_sub_index],
929 "type" => $_FILES[$a_field]["type"][$a_index][$a_sub_index],
930 "error" => $_FILES[$a_field]["error"][$a_index][$a_sub_index],
931 "size" => $_FILES[$a_field]["size"][$a_index][$a_sub_index],
932 "is_upload" => $_FILES[$a_field]["is_upload"][$a_index][$a_sub_index] ?? true
933 );
934 }
935 } elseif ($a_sub_index) {
936 if ($_FILES[$a_field]["tmp_name"][$a_index] ?? false) {
937 $res = array(
938 "tmp_name" => $_FILES[$a_field]["tmp_name"][$a_index],
939 "name" => $_FILES[$a_field]["name"][$a_index],
940 "type" => $_FILES[$a_field]["type"][$a_index],
941 "error" => $_FILES[$a_field]["error"][$a_index],
942 "size" => $_FILES[$a_field]["size"][$a_index],
943 "is_upload" => $_FILES[$a_field]["is_upload"][$a_index] ?? true
944 );
945 }
946 } else {
947 if ($_FILES[$a_field]["tmp_name"] ?? false) {
948 $res = array(
949 "tmp_name" => $_FILES[$a_field]["tmp_name"],
950 "name" => $_FILES[$a_field]["name"],
951 "type" => $_FILES[$a_field]["type"],
952 "error" => $_FILES[$a_field]["error"],
953 "size" => $_FILES[$a_field]["size"],
954 "is_upload" => $_FILES[$a_field]["is_upload"] ?? true
955 );
956 }
957 }
958 return $res;
959 }
$res
Definition: ltiservices.php:69

References $res.

◆ getForceTopButtons()

ilPropertyFormGUI::getForceTopButtons ( )

Definition at line 205 of file class.ilPropertyFormGUI.php.

205 : bool
206 {
208 }

References $force_top_buttons.

◆ getHideLabels()

ilPropertyFormGUI::getHideLabels ( )

Definition at line 309 of file class.ilPropertyFormGUI.php.

309 : bool
310 {
311 return $this->hide_labels;
312 }

◆ getHTML()

ilPropertyFormGUI::getHTML ( )

Reimplemented from ilFormGUI.

Reimplemented in ilLTIConsumerProviderSelectionFormTableGUI, and ilAsyncPropertyFormGUI.

Definition at line 812 of file class.ilPropertyFormGUI.php.

812 : string
813 {
814 $html = parent::getHTML();
815
816 // #13531 - get content that has to reside outside of the parent form tag, e.g. panels/layers
817 foreach ($this->items as $item) {
818 // #13536 - ilFormSectionHeaderGUI does NOT extend ilFormPropertyGUI ?!
819 if (method_exists($item, "getContentOutsideFormTag")) {
820 $outside = $item->getContentOutsideFormTag();
821 if ($outside) {
822 $html .= $outside;
823 }
824 }
825 }
826 if ($this->ctrl->isAsynch()) {
827 $html = $this->appendOnloadCode($html);
828 }
829 return $html;
830 }

References ILIAS\Repository\ctrl().

Referenced by ilCalendarAppointmentGUI\add(), ilCalendarCategoryGUI\add(), ilConsultationHoursGUI\addGroup(), ilObjLinkResourceGUI\addLink(), ilObjContentObjectGUI\addMenuEntry(), ilCalendarAppointmentGUI\addMilestone(), SurveyQuestionGUI\addPhrase(), ilTestExpressPageObjectGUI\addQuestion(), ilObjAdvancedEditingGUI\assessmentObject(), ilObjSessionGUI\attendanceListObject(), ilCalendarAppointmentGUI\book(), ilPCMediaObjectGUI\changeObjectReference(), ilCourseObjectivesGUI\create(), ilContainerReferenceGUI\createObject(), ilChatroomAdminViewGUI\createSettingTemplate(), ilObjMediaPoolGUI\edit(), ilExtIdGUI\edit(), ilCourseObjectivesGUI\edit(), ilCalendarAppointmentGUI\edit(), ilExcCriteriaGUI\edit(), ilCalendarCategoryGUI\edit(), ilObjOrgUnitGUI\editAdvancedSettings(), ilObjStudyProgrammeGUI\editAdvancedSettings(), ilPCTableGUI\editCellAlignment(), ilPCTableGUI\editCellStyle(), ilConsultationHoursGUI\editGroup(), ilObjGroupGUI\editInfoObject(), ilObjLinkResourceGUI\editLink(), ilObjCourseGUI\editMapSettingsObject(), ilObjGroupGUI\editMapSettingsObject(), ilObjectCustomUserFieldsGUI\editMember(), ilObjContentObjectGUI\editMenuEntry(), ilObjContentObjectGUI\editMenuProperties(), ilObjEmployeeTalkGUI\editObject(), ilObjFolderGUI\editObject(), ilObjCourseGUI\editObject(), ilContainerReferenceGUI\editObject(), ilExAssignmentEditorGUI\editPeerReviewObject(), ilObjOrgUnitGUI\editSettings(), ilObjectServiceSettingsGUI\editSettings(), ilPCMediaObjectGUI\editStyle(), ilObjMediaPoolGUI\editTitlesAndDescriptions(), ilObjAdvancedEditingGUI\excAssObject(), ilECSSettingsGUI\exportMappings(), ilObjAdvancedEditingGUI\frmPostObject(), ilLTIConsumeProviderFormGUI\getContentSelectionFrame(), ilLTIConsumeProviderFormGUI\getDynRegError(), ilLTIConsumeProviderFormGUI\getDynRegRequest(), ilCalendarCategoryGUI\importAppointments(), ilObjContentObjectGUI\importFileObject(), ilObjSCORMLearningModuleGUI\importForm(), ilECSSettingsGUI\importMappings(), ilSkillRootGUI\importSkills(), ilPageObjectGUI\initialOpenedContent(), ilMDEditorGUI\listQuickEdit(), ilObjUserFolderGUI\newAccountMailObject(), ilStyleCharacteristicGUI\outputTagStyleEditScreen(), assQuestionGUI\renderEditForm(), ilAuthShibbolethSettingsGUI\save(), ilObjLinkResourceGUI\saveAddLink(), ilObjAdvancedEditingGUI\saveAssessmentSettingsObject(), ilObjAdvancedEditingGUI\saveCharSelectorSettingsObject(), ilObjAdvancedEditingGUI\saveExcAssSettingsObject(), ilObjAdvancedEditingGUI\saveFrmPostSettingsObject(), ilObjAdvancedEditingGUI\saveGeneralPageSettingsObject(), ilObjEmployeeTalkSeriesGUI\saveObject(), ilObjGlossaryGUI\saveObject(), ilObjLinkResourceGUI\saveSettings(), ilObjAdvancedEditingGUI\saveSurveySettingsObject(), ilCertificateGUI\setTemplateContent(), ilObjLinkResourceGUI\settings(), ilAuthShibbolethSettingsGUI\settings(), ilObjAdvancedEditingGUI\settingsObject(), ilObjAdvancedEditingGUI\showCharSelectorSettingsObject(), ilObjMDSettingsGUI\showCopyrightSettings(), ilMailTemplateGUI\showEditTemplateForm(), ilObjAdvancedEditingGUI\showGeneralPageEditorSettingsObject(), ilObjMDSettingsGUI\showGeneralSettings(), ilSamlSettingsGUI\showIdpSettings(), ilMailTemplateGUI\showInsertTemplateForm(), ilSamlSettingsGUI\showNewIdpForm(), ilMailOptionsGUI\showOptions(), ilCourseObjectivesGUI\showRandomTestAssignment(), ilSamlSettingsGUI\showSettings(), ilSamlSettingsGUI\showUserAttributeMappingForm(), ilObjAdvancedEditingGUI\surveyObject(), ilExtIdGUI\update(), ilObjOrgUnitGUI\updateAdvancedSettings(), ilObjStudyProgrammeGUI\updateAdvancedSettings(), ilObjLinkResourceGUI\updateLink(), ilObjCategoryGUI\updateObject(), and ilObjOrgUnitGUI\updateSettings().

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

◆ getHTMLAsync()

ilPropertyFormGUI::getHTMLAsync ( )

Definition at line 832 of file class.ilPropertyFormGUI.php.

832 : string
833 {
834 $html = $this->getHTML();
835 if (!$this->ctrl->isAsynch()) {
836 $html = $this->appendOnloadCode($html);
837 }
838 return $html;
839 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ getInput()

ilPropertyFormGUI::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-POST variable, identified by the passed postvar.

Parameters
string$a_post_varThe key used for value determination
bool$ensureValidationA flag whether the form input has to be validated before calling this method
Returns
mixed The value of a HTTP-POST variable, identified by the passed id

Definition at line 448 of file class.ilPropertyFormGUI.php.

451 {
452 // this check ensures, that checkInput has been called (incl. stripSlashes())
453 if (!$this->check_input_called && $ensureValidation) {
454 throw new LogicException('Error: ilPropertyFormGUI->getInput() called without calling checkInput() first.');
455 }
456
457 $item = $this->getItemByPostVar($a_post_var);
458 if (is_object($item) && method_exists($item, "getInput")) {
459 return $item->getInput();
460 }
461
462 $post = $this->http->request()->getParsedBody();
463 return $post[$a_post_var] ?? '';
464 }

References $post, and ILIAS\FileDelivery\http().

Referenced by ilSurveyRaterGUI\addExternalRater(), ilSurveyRaterGUI\addRater(), ilCalendarAppointmentGUI\bookconfirmed(), ilAdvancedMDFieldDefinitionSelect\buildConfirmedObjects(), ilDclSelectionFieldModel\checkFieldCreationInput(), ilDclTextFieldModel\checkFieldCreationInput(), ILIAS\Survey\Settings\SettingsFormGUI\checkForm(), ilDclBaseFieldModel\checkValidityFromForm(), ilDclTextFieldModel\checkValidityFromForm(), ilPCTabsGUI\checkWidthHeight(), ilObjStyleSheetGUI\copyStyleObject(), ilCustomUserFieldsGUI\create(), ilWebDAVMountInstructionsDocumentFormGUI\createFilledObject(), ilDclTableViewEditFormGUI\createTableView(), ilCmiXapiLP\fetchModeOption(), ilBiblFieldFilterFormGUI\fillObject(), ilOrgUnitAuthorityFormGUI\fillObject(), ilOrgUnitDefaultPermissionFormGUI\fillObject(), ilObjOrgUnitSettingsFormGUI\fillObject(), ilOrgUnitTypeAdvancedMetaDataFormGUI\fillObject(), ilOrgUnitTypeFormGUI\fillObject(), ilAccessibilityCriterionFormGUI\fillObject(), ilTermsOfServiceCriterionFormGUI\fillObject(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\fillObject(), ilAccessibilityUserHasLanguageCriterionGUI\getConfigByForm(), ilTermsOfServiceUserHasCountryCriterionGUI\getConfigByForm(), ilTermsOfServiceUserHasGlobalRoleCriterionGUI\getConfigByForm(), ilTermsOfServiceUserHasLanguageCriterionGUI\getConfigByForm(), ilCourseLPBadgeGUI\getConfigFromForm(), ilWkhtmlToPdfConfigFormGUI\getConfigFromForm(), ilDclBaseFieldModel\getConfirmationGUI(), ilDclSelectionFieldModel\getConfirmationGUI(), ilLTIConsumeProviderFormGUI\getDynRegRequest(), ilCharSelectorGUI\getFormValues(), ilObjCategoryGUI\getObjectMetadataGUI(), ILIAS\Survey\Settings\SettingsFormGUI\getTutorIdsFromForm(), ILIAS\Survey\Settings\SettingsFormGUI\getTutorResIdsFromForm(), ilObjSCORMLearningModuleGUI\import(), ilAdvancedMDFieldDefinitionFloat\importCustomDefinitionFormPostValues(), ilAdvancedMDFieldDefinitionGroupBased\importCustomDefinitionFormPostValues(), ilAdvancedMDFieldDefinitionInteger\importCustomDefinitionFormPostValues(), ilAdvancedMDFieldDefinitionText\importCustomDefinitionFormPostValues(), ilExcCriteriaText\importCustomForm(), ilAdvancedMDFieldDefinition\importDefinitionFormPostValues(), SurveyMatrixQuestionGUI\importEditFormValues(), SurveyMetricQuestionGUI\importEditFormValues(), SurveyMultipleChoiceQuestionGUI\importEditFormValues(), SurveySingleChoiceQuestionGUI\importEditFormValues(), SurveyTextQuestionGUI\importEditFormValues(), ilExAssTypePortfolioGUI\importFormToAssignment(), ilExAssTypeTextGUI\importFormToAssignment(), ilExAssTypeWikiTeamGUI\importFormToAssignment(), ilAdvancedMDFieldDefinitionSelect\importTranslatedFormPostValues(), ilLTIConsumerSettingsFormGUI\initObject(), ilLTIConsumeProviderFormGUI\initProvider(), ilMailTemplateGUI\insertTemplate(), ilDclSelectionFieldModel\isConfirmationRequired(), ilObjTestSettingsGeneralGUI\isSkillServiceSettingToBeAdjusted(), ilCalendarAppointmentGUI\load(), ilSearchBaseGUI\loadCreationFilter(), ilCalendarAppointmentGUI\loadNotificationRecipients(), ilObjCourseReferenceGUI\loadPropertiesFromSettingsForm(), ilContainerReferenceGUI\loadPropertiesFromSettingsForm(), ilAdvancedMDSettingsGUI\loadRecordFormData(), ilEmployeeTalkAppointmentGUI\loadRecurrenceSettings(), ilObjRoleGUI\loadRoleProperties(), ilObjTestSettingsGeneralGUI\performSaveForm(), ilAdvancedMDFieldDefinition\prepareDefinitionFormConfirmation(), ilExAssignmentEditorGUI\processForm(), ilConsultationHoursGUI\rewriteBookingIdsForAppointments(), ilCourseObjectivesGUI\save(), ilStructureObjectGUI\save(), ilCalendarCategoryGUI\save(), ilMailOptionsFormGUI\save(), ilCalendarAppointmentGUI\save(), ilPCMediaObjectGUI\saveAliasProperties(), ilObjAuthSettingsGUI\saveApacheSettingsObject(), ilObjTestSettingsGeneralGUI\saveAvailabilityProperties(), ilObjCourseAdministrationGUI\saveChildSettings(), ilObjMDSettingsGUI\saveCopyrightSettings(), assErrorTextGUI\saveCorrectionsFormProperties(), assFileUploadGUI\saveCorrectionsFormProperties(), assKprimChoiceGUI\saveCorrectionsFormProperties(), assLongMenuGUI\saveCorrectionsFormProperties(), assNumericGUI\saveCorrectionsFormProperties(), assOrderingHorizontalGUI\saveCorrectionsFormProperties(), assOrderingQuestionGUI\saveCorrectionsFormProperties(), ilMemberAgreementGUI\saveCourseDefinedFields(), ilForumCronNotification\saveCustomSettings(), ilConsultationHourCron\saveCustomSettings(), ilCleanCOPageHistoryCronjob\saveCustomSettings(), ilLoggerCronCleanErrorFiles\saveCustomSettings(), ilMailCronOrphanedMails\saveCustomSettings(), ilCronOerHarvester\saveCustomSettings(), ilSCCronTrash\saveCustomSettings(), ILIAS\Survey\Settings\SettingsFormGUI\saveForm(), ilObjAdvancedEditingGUI\saveGeneralPageSettingsObject(), ilObjTestSettingsGeneralGUI\saveGeneralProperties(), ilObjMDSettingsGUI\saveGeneralSettings(), ilAssQuestionFeedback\saveGenericFormProperties(), ilConsultationHoursGUI\saveGroup(), ilSamlSettingsGUI\saveIdpSettings(), ilObjLinkResourceGUI\saveLinkList(), ilContainerGUI\saveListPresentation(), ilObjContentObjectGUI\saveMenuEntry(), ilObjContentObjectGUI\saveMenuProperties(), ilForumLP\saveModeConfiguration(), ilSamlSettingsGUI\saveNewIdp(), assClozeTestGUI\saveNumericGapCorrectionFormProperty(), ilBiblLibraryFormGUI\saveObject(), ilObjEmployeeTalkSeriesGUI\saveObject(), ilObjGlossaryGUI\saveObject(), ilObjStyleSheetGUI\saveObject(), ilObjContentObjectGUI\saveProperties(), ilObjTestSettingsGeneralGUI\saveQuestionBehaviourProperties(), ilCourseObjectivesGUI\saveRandom(), ilCmiXapiRegistrationGUI\saveRegistration(), ilLTIProviderObjectSettingGUI\saveRoleSelection(), ILIAS\Blog\ReadingTime\BlogSettingsGUI\saveSettingFromForm(), ILIAS\LearningModule\ReadingTime\SettingsGUI\saveSettingFromForm(), ilObjLinkResourceGUI\saveSettings(), ilMembershipAdministrationGUI\saveSettings(), ilSamlSettingsGUI\saveSettings(), ilCmiXapiSettingsGUI\saveSettings(), ilObjAdvancedEditingGUI\saveSettingsObject(), ilContainerGUI\saveSortingSettings(), ilAssConfigurableMultiOptionQuestionFeedback\saveSpecificFormProperties(), ilAssMultiOptionQuestionFeedback\saveSpecificFormProperties(), ilObjAdvancedEditingGUI\saveTags(), ilStyleCharacteristicGUI\saveTagStyle(), ilObjTestSettingsGeneralGUI\saveTestAccessProperties(), ilObjTestSettingsGeneralGUI\saveTestFinishProperties(), ilObjTestSettingsGeneralGUI\saveTestIntroProperties(), ilObjTestSettingsGeneralGUI\saveTestRunProperties(), ilObjTestSettingsGeneralGUI\saveTestSequenceSettings(), ilObjMediaPoolGUI\saveTitlesAndDescriptions(), ilSamlSettingsGUI\saveUserAttributeMapping(), ilDclBaseRecordFieldModel\setValueFromForm(), ilDclCopyRecordFieldModel\setValueFromForm(), ilDclFileuploadRecordFieldModel\setValueFromForm(), ilDclMobRecordFieldModel\setValueFromForm(), ilDclTextRecordFieldModel\setValueFromForm(), ilPCSectionGUI\setValuesFromForm(), ilDclBaseFieldModel\storePropertiesFromForm(), ilDclSelectionFieldModel\storePropertiesFromForm(), ilCalendarAppointmentGUI\update(), ilCalendarCategoryGUI\update(), ilCustomUserFieldsGUI\update(), ilObjBibliographicGUI\updateCustom(), ilObjTalkTemplateGUI\updateCustom(), ilObjExerciseGUI\updateCustom(), ilObjBlogGUI\updateCustom(), ilObjBookingPoolGUI\updateCustom(), ilObjContentPageGUI\updateCustom(), ilObjDataCollectionGUI\updateCustom(), ilObjItemGroupGUI\updateCustom(), ilObjMediaPoolGUI\updateCustom(), ilObjPollGUI\updateCustom(), ilObjPortfolioBaseGUI\updateCustom(), ilObjPortfolioGUI\updateCustom(), ilObjPortfolioTemplateGUI\updateCustom(), ilForumSettingsGUI\updateCustomValues(), ilAdvancedMDFieldTranslations\updateFromForm(), ilConsultationHoursGUI\updateGroup(), ilObjCourseGUI\updateInfoObject(), ilObjLinkResourceGUI\updateLink(), ilObjContentObjectGUI\updateMenuEntry(), ilObjCategoryGUI\updateObject(), ilObjCourseGUI\updateObject(), ilObjEmployeeTalkGUI\updateObject(), ilObjGroupGUI\updateObject(), ilMDEditorGUI\updateQuickEdit(), ilObjectServiceSettingsGUI\updateServiceSettingsForm(), ilDclTableViewEditFormGUI\updateTableView(), ilMailTemplateGUI\updateTemplate(), ilObjectServiceSettingsGUI\updateToolSettings(), ilObjOrgUnitSettingsFormGUI\updateTranslation(), ilCalendarCategoryGUI\uploadAppointments(), ilObjEmployeeTalkGUI\validateCustom(), ilObjPollGUI\validateCustom(), SurveyMultipleChoiceQuestionGUI\validateEditForm(), ilCourseLPBadgeGUI\validateForm(), ilCustomUserFieldsGUI\validateForm(), and ilSurveyPhrasesGUI\writePostData().

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

◆ getInputItemsRecursive()

ilPropertyFormGUI::getInputItemsRecursive ( )

returns a flat array of all input items including the possibly existing subitems recursively

Definition at line 279 of file class.ilPropertyFormGUI.php.

279 : array
280 {
281 $inputItems = array();
282
283 foreach ($this->items as $item) {
284 if ($item->getType() == 'section_header') {
285 continue;
286 }
287
288 $inputItems[] = $item;
289
290 if ($item instanceof ilSubEnabledFormPropertyGUI) {
291 $inputItems = array_merge($inputItems, $item->getSubInputItemsRecursive());
292 }
293 }
294
295 return $inputItems;
296 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Referenced by ilTestSettingsChangeConfirmationGUI\populateParametersFromPropertyForm().

+ Here is the caller graph for this function:

◆ getItemByPostVar()

ilPropertyFormGUI::getItemByPostVar ( string  $a_post_var)

Definition at line 250 of file class.ilPropertyFormGUI.php.

251 {
252 foreach ($this->items as $item) {
253 if ($item->getType() != "section_header") {
254 //if ($item->getPostVar() == $a_post_var)
255 $ret = $item->getItemByPostVar($a_post_var);
256 if (is_object($ret)) {
257 return $ret;
258 }
259 }
260 }
261
262 return null;
263 }
This class represents a property in a property form.
getItemByPostVar(string $a_post_var)
Get item by post var.

References ilFormPropertyGUI\getItemByPostVar().

Referenced by assMultipleChoiceGUI\addBasicQuestionFormProperties(), ilCronDeleteInactiveUserAccounts\addCustomSettingsToForm(), ilTestRandomQuestionSetPoolDefinitionFormGUI\applySubmit(), ilCalendarAppointmentGUI\book(), ilDclSelectionFieldModel\checkFieldCreationInput(), ilDclTextFieldModel\checkFieldCreationInput(), ILIAS\Survey\Settings\SettingsFormGUI\checkForm(), ilPCSectionGUI\checkInput(), ilPCTabsGUI\checkWidthHeight(), ilObjUserFolderGUI\confirmaccessRestrictObject(), executeCommand(), ilExcCriteriaText\exportCustomForm(), assOrderingQuestionGUI\fetchSolutionListFromSubmittedForm(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\fillForm(), ilStudyProgrammeTypeCustomIconsFormGUI\fillForm(), ilDclBaseRecordRepresentation\fillFormInput(), ilDclTextRecordRepresentation\fillFormInput(), ilAccessibilityCriterionFormGUI\fillObject(), ilTermsOfServiceCriterionFormGUI\fillObject(), ilDclBaseRecordModel\fillStandardFieldFormInput(), ilTestSettingsGUI\formPropertyExists(), ilObjQuestionPoolSettingsGeneralGUI\formPropertyExists(), ilExAssignmentEditorGUI\getAssignmentValues(), ilTCPDFRenderer\getConfigFromForm(), ilLTIConsumeProviderFormGUI\getDynRegRequest(), ilWebDAVMountInstructionsDocumentFormGUI\getFileUploadResult(), ilAssOrderingQuestionAuthoringFormGUI\getOrderingElementInputField(), ilWebDAVMountInstructionsDocumentFormGUI\getRawMountInstructionsFromFileUpload(), ilStyleCharacteristicGUI\getValues(), ilNewsItemGUI\getValuesNewsItem(), ilExAssignmentEditorGUI\handleDisabledFields(), ilExAssignmentEditorGUI\handleDisabledPeerFields(), ilCourseLPBadgeGUI\importConfigToForm(), ilUserProfileBadgeGUI\importConfigToForm(), ilObjContentPageGUI\initEditCustomForm(), ilObjPortfolioTemplateGUI\initEditCustomForm(), ilAssClozeTestFeedback\initFbPropsForNumericGap(), ilAssClozeTestFeedback\initFbPropsForSelectGap(), ilAssClozeTestFeedback\initFbPropsForTextGap(), ilAssClozeTestFeedback\initFeedbackFieldsPerGapQuestion(), ilAssQuestionFeedback\initGenericFormProperties(), ilLTIConsumeProviderFormGUI\initProvider(), ilAssClozeTestFeedback\initSpecificFormProperties(), ilAssConfigurableMultiOptionQuestionFeedback\initSpecificFormProperties(), ilAssMultiOptionQuestionFeedback\initSpecificFormProperties(), ilMailTemplateGUI\insertTemplate(), ilObjTestSettingsGeneralGUI\isSkillServiceSettingToBeAdjusted(), assMatchingQuestionGUI\isValidTermAndDefinitionAmount(), ilSearchBaseGUI\loadCreationFilter(), ilObjCourseReferenceGUI\loadPropertiesFromSettingsForm(), ilContainerReferenceGUI\loadPropertiesFromSettingsForm(), ilEmployeeTalkAppointmentGUI\loadRecurrenceSettings(), ilCalendarAppointmentGUI\loadRecurrenceSettings(), ilObjRoleGUI\loadRoleProperties(), ilObjTestSettingsGeneralGUI\performSaveForm(), ilObjQuestionPoolSettingsGeneralGUI\performSaveForm(), ilTCPDFRenderer\populateConfigElementsInForm(), ilWkhtmlToPdfConfigFormGUI\populateForm(), ilAdvancedMDFieldDefinitionSelect\prepareCustomDefinitionFormConfirmation(), ilAdvancedMDFieldDefinition\prepareDefinitionFormConfirmation(), assOrderingQuestionGUI\prepareReprintableCorrectionsForm(), ilExAssignmentEditorGUI\processForm(), ilAssOrderingQuestionAuthoringFormGUI\renewOrderingElementInput(), ilTestRandomQuestionSetGeneralConfigFormGUI\save(), ilObjTestSettingsGeneralGUI\saveAvailabilityProperties(), assImagemapQuestionGUI\saveCorrectionsFormProperties(), assKprimChoiceGUI\saveCorrectionsFormProperties(), assMultipleChoiceGUI\saveCorrectionsFormProperties(), assSingleChoiceGUI\saveCorrectionsFormProperties(), assTextSubsetGUI\saveCorrectionsFormProperties(), ilCronDeleteInactiveUserAccounts\saveCustomSettings(), ilCronDeleteNeverLoggedInUserAccounts\saveCustomSettings(), ilAssClozeTestFeedback\saveFbPropsForNumericGap(), ilAssClozeTestFeedback\saveFbPropsForSelectGap(), ilAssClozeTestFeedback\saveFbPropsForTextGap(), ilAssClozeTestFeedback\saveFeedbackFieldsPerGapQuestion(), ILIAS\Survey\Settings\SettingsFormGUI\saveForm(), assClozeTestGUI\saveGapCombinationCorrectionFormProperties(), ilObjAdvancedEditingGUI\saveGeneralPageSettingsObject(), ilObjTestSettingsGeneralGUI\saveGeneralProperties(), ilObjEmployeeTalkSeriesGUI\saveObject(), ilAccessibilityCriterionFormGUI\saveObject(), ilTermsOfServiceCriterionFormGUI\saveObject(), ilObjTestSettingsGeneralGUI\saveQuestionBehaviourProperties(), ilAssClozeTestFeedback\saveSpecificFormProperties(), ilStyleCharacteristicGUI\saveTagStyle(), ilObjTestSettingsGeneralGUI\saveTestIntroProperties(), ilObjTestSettingsGeneralGUI\saveTestRunProperties(), assClozeTestGUI\saveTextOrSelectGapCorrectionFormProperty(), ilExAssignmentEditorGUI\setDisabledFieldValues(), ilExAssignmentEditorGUI\setDisabledPeerReviewFieldValues(), ilCharSelectorGUI\setFormValues(), ilSessionMembershipRegistrationSettingsGUI\setFormValues(), ilObjBadgeAdministrationGUI\setImageTemplateFormValues(), ilDclBaseRecordModel\setStandardFieldFromForm(), ilDclFileuploadRecordFieldModel\setValueFromForm(), ilDclMobRecordFieldModel\setValueFromForm(), ilPCSectionGUI\setValuesFromForm(), ilSearchGUI\storeRoot(), ilLuceneSearchGUI\storeRoot(), ilExtIdGUI\update(), ilObjBlogGUI\updateCustom(), ilObjBookingPoolGUI\updateCustom(), ilObjPollGUI\updateCustom(), ilObjPortfolioBaseGUI\updateCustom(), ilObjPortfolioTemplateGUI\updateCustom(), ilObjCourseGUI\updateInfoObject(), ilObjCourseGUI\updateObject(), ilObjGroupGUI\updateObject(), ilMailTemplateGUI\updateTemplate(), ilObjPollGUI\validateCustom(), SurveyMultipleChoiceQuestionGUI\validateEditForm(), ilCourseLPBadgeGUI\validateForm(), ilWkhtmlToPdfConfigFormGUI\validateForm(), ilCustomUserFieldsGUI\validateForm(), assImagemapQuestionGUI\writeAnswerSpecificPostData(), assKprimChoiceGUI\writeAnswerSpecificPostData(), assKprimChoiceGUI\writeQuestionSpecificPostData(), and assMultipleChoiceGUI\writeQuestionSpecificPostData().

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

◆ getItems()

◆ getMode()

ilPropertyFormGUI::getMode ( )

Definition at line 145 of file class.ilPropertyFormGUI.php.

145 : string
146 {
147 return $this->mode;
148 }

References $mode.

◆ getRequestedPostVar()

ilPropertyFormGUI::getRequestedPostVar ( )
protected

Definition at line 116 of file class.ilPropertyFormGUI.php.

116 : ?string
117 {
118 $t = $this->refinery->kindlyTo()->string();
119 $w = $this->http->wrapper();
120 if ($w->post()->has("postvar")) {
121 return $w->post()->retrieve("postvar", $t);
122 }
123 if ($w->query()->has("postvar")) {
124 return $w->query()->retrieve("postvar", $t);
125 }
126 return null;
127 }

References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().

Referenced by executeCommand().

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

◆ getShowTopButtons()

ilPropertyFormGUI::getShowTopButtons ( )

Definition at line 195 of file class.ilPropertyFormGUI.php.

195 : bool
196 {
198 }

References $show_top_buttons.

◆ getTableWidth()

ilPropertyFormGUI::getTableWidth ( )
final

Definition at line 134 of file class.ilPropertyFormGUI.php.

134 : string
135 {
136 return $this->tbl_width;
137 }

References $tbl_width.

◆ getTitle()

ilPropertyFormGUI::getTitle ( )

Reimplemented in ilLTIConsumerProviderSelectionFormTableGUI.

Definition at line 155 of file class.ilPropertyFormGUI.php.

155 : string
156 {
157 return $this->title;
158 }

References $title.

◆ getTitleIcon()

ilPropertyFormGUI::getTitleIcon ( )

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

165 : string
166 {
167 return $this->titleicon;
168 }

References $titleicon.

◆ getTopAnchor()

ilPropertyFormGUI::getTopAnchor ( )

Definition at line 185 of file class.ilPropertyFormGUI.php.

185 : string
186 {
187 return $this->top_anchor;
188 }

References $top_anchor.

◆ hasFileUpload()

ilPropertyFormGUI::hasFileUpload ( string  $a_field,
?string  $a_index = null,
?string  $a_sub_index = null 
)

Definition at line 961 of file class.ilPropertyFormGUI.php.

965 : bool {
966 $data = $this->getFileUpload($a_field, $a_index, $a_sub_index);
967 return (bool) ($data["tmp_name"] ?? false);
968 }
getFileUpload(string $a_field, ?string $a_index=null, ?string $a_sub_index=null)
Get file upload data.

◆ hideRequired()

ilPropertyFormGUI::hideRequired ( string  $a_type)
protected

Definition at line 625 of file class.ilPropertyFormGUI.php.

625 : bool
626 {
627 // #15818
628 return $a_type == "non_editable_value";
629 }

◆ insertItem()

ilPropertyFormGUI::insertItem (   $item,
bool  $a_sub_item = false 
)
Parameters
ilFormPropertyGUI | ilFormSectionHeaderGUI$item

Definition at line 634 of file class.ilPropertyFormGUI.php.

637 : void {
638 global $DIC;
639 $tpl = $DIC["tpl"];
641
642
643 //$cfg = array();
644
645 //if(method_exists($item, "getMulti") && $item->getMulti())
646 if ($item instanceof ilMultiValuesItem && $item->getMulti()) {
647 $tpl->addJavascript("./Services/Form/js/ServiceFormMulti.js");
648
649 $this->tpl->setCurrentBlock("multi_in");
650 $this->tpl->setVariable("ID", $item->getFieldId());
651 $this->tpl->parseCurrentBlock();
652
653 $this->tpl->touchBlock("multi_out");
654
655
656 // add hidden item to enable preset multi items
657 // not used yet, should replace hidden field stuff
658 $multi_values = $item->getMultiValues();
659 if (is_array($multi_values) && sizeof($multi_values) > 1) {
660 $multi_value = new ilHiddenInputGUI("ilMultiValues~" . $item->getPostVar());
661 $multi_value->setValue(implode("~", $multi_values));
662 $this->addItem($multi_value);
663 }
664 //$cfg["multi_values"] = $multi_values;
665 }
666
667 $item->insert($this->tpl);
668
669 if ($item->getType() == "file" || $item->getType() == "image_file") {
670 $this->setMultipart(true);
671 }
672
673 if ($item->getType() != "section_header") {
674 //$cfg["id"] = $item->getFieldId();
675
676 // info text
677 if ($item->getInfo() != "") {
678 $this->tpl->setCurrentBlock("description");
679 $this->tpl->setVariable(
680 "PROPERTY_DESCRIPTION",
681 $item->getInfo()
682 );
683 $this->tpl->setVariable(
684 "DESCRIPTION_FOR_ID",
685 $item->getFieldId()
686 );
687 $this->tpl->parseCurrentBlock();
688 }
689
690 if ($this->getMode() == "subform") {
691 // required
692 if (!$this->hideRequired($item->getType())) {
693 if ($item->getRequired()) {
694 $this->tpl->touchBlock("sub_required");
695 $this->required_text = true;
696 }
697 }
698
699 // hidden title (for accessibility, e.g. file upload)
700 if ($item->getHiddenTitle() != "") {
701 $this->tpl->setCurrentBlock("sub_hid_title");
702 $this->tpl->setVariable(
703 "SPHID_TITLE",
704 $item->getHiddenTitle()
705 );
706 $this->tpl->parseCurrentBlock();
707 }
708
709 $this->tpl->setCurrentBlock("sub_prop_start");
710 $this->tpl->setVariable("PROPERTY_TITLE", $item->getTitle());
711 $this->tpl->setVariable("PROPERTY_CLASS", "il_" . $item->getType());
712 if ($item->getType() != "non_editable_value" && $item->getFormLabelFor() != "") {
713 $this->tpl->setVariable("FOR_ID", ' for="' . $item->getFormLabelFor() . '" ');
714 }
715 $this->tpl->setVariable("LAB_ID", $item->getFieldId());
716 } else {
717 // required
718 if (!$this->hideRequired($item->getType())) {
719 if ($item->getRequired()) {
720 $this->tpl->touchBlock("required");
721 $this->required_text = true;
722 }
723 }
724
725 // hidden title (for accessibility, e.g. file upload)
726 if ($item->getHiddenTitle() != "") {
727 $this->tpl->setCurrentBlock("std_hid_title");
728 $this->tpl->setVariable(
729 "PHID_TITLE",
730 $item->getHiddenTitle()
731 );
732 $this->tpl->parseCurrentBlock();
733 }
734
735 $this->tpl->setCurrentBlock("std_prop_start");
736 $this->tpl->setVariable("PROPERTY_TITLE", $item->getTitle());
737 if ($item->getType() != "non_editable_value" && $item->getFormLabelFor() != "") {
738 $this->tpl->setVariable("FOR_ID", ' for="' . $item->getFormLabelFor() . '" ');
739 }
740 $this->tpl->setVariable("LAB_ID", $item->getFieldId());
741 if ($this->getHideLabels()) {
742 $this->tpl->setVariable("HIDE_LABELS_STYLE", " ilFormOptionHidden");
743 }
744 }
745 $this->tpl->parseCurrentBlock();
746
747 // alert
748 if ($item->getType() != "non_editable_value" && $item->getAlert() != "") {
749 $this->tpl->setCurrentBlock("alert");
750 $this->tpl->setVariable(
751 "IMG_ALERT",
752 ilUtil::getImagePath("icon_alert.svg")
753 );
754 $this->tpl->setVariable(
755 "ALT_ALERT",
756 $lng->txt("alert")
757 );
758 $this->tpl->setVariable(
759 "TXT_ALERT",
760 $item->getAlert()
761 );
762 $this->tpl->setVariable(
763 "ALERT_FOR_ID",
764 $item->getFieldId()
765 );
766 $this->tpl->parseCurrentBlock();
767 }
768
769 // subitems
770 $sf = null;
771 if ($item->getType() != "non_editable_value" or 1) {
772 $sf = $item->getSubForm();
773 if ($item->hideSubForm() && is_object($sf)) {
774 if ($this->global_tpl) {
775 $dsfid = $item->getFieldId();
776 $this->global_tpl->addOnloadCode(
777 "il.Form.hideSubForm('subform_$dsfid');"
778 );
779 }
780 $this->addAsyncOnloadCode("il.Form.hideSubForm('subform_$dsfid');");
781 }
782 }
783
784 $sf_content = "";
785 if (is_object($sf)) {
786 $sf_content = $sf->getContent();
787 if ($sf->getMultipart()) {
788 $this->setMultipart(true);
789 }
790 $this->tpl->setCurrentBlock("sub_form");
791 $this->tpl->setVariable("PROP_SUB_FORM", $sf_content);
792 $this->tpl->setVariable("SFID", $item->getFieldId());
793 $this->tpl->parseCurrentBlock();
794 }
795
796 $this->tpl->setCurrentBlock("prop");
797 /* not used yet
798 $this->tpl->setVariable("ID", $item->getFieldId());
799 $this->tpl->setVariable("CFG", json_encode($cfg, JSON_THROW_ON_ERROR));*/
800 $this->tpl->parseCurrentBlock();
801 }
802
803
804 $this->tpl->touchBlock("item");
805 }
setMultipart(bool $a_multipart)
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $tpl.

◆ moveFileUpload()

ilPropertyFormGUI::moveFileUpload ( string  $a_target_directory,
string  $a_field,
?string  $a_target_name = null,
?string  $a_index = null,
?string  $a_sub_index = null 
)

Move upload to target directory.

Parameters
string$a_target_directorytarget directory (without filename!)
string$a_fieldform field
?string$a_target_name target file name (if different from uploaded file)
?string$a_index form field index (if array)
?string$a_sub_index form field subindex (if array)
Returns
string target file name incl. path
Exceptions
ilException

Definition at line 981 of file class.ilPropertyFormGUI.php.

987 : string {
988 if (!is_dir($a_target_directory)) {
989 return "";
990 }
991
992 $data = $this->getFileUpload($a_field, $a_index, $a_sub_index);
993 if ($data["tmp_name"] && file_exists($data["tmp_name"])) {
994 if ($a_target_name) {
995 $data["name"] = $a_target_name;
996 }
997
998 $target_file = $a_target_directory . "/" . $data["name"];
999 $target_file = str_replace("//", "/", $target_file);
1000
1001 if ($data["is_upload"]) {
1002 if (!ilFileUtils::moveUploadedFile($data["tmp_name"], $data["name"], $target_file)) {
1003 return "";
1004 }
1005 } else {
1006 if (!ilFileUtils::rename($data["tmp_name"], $target_file)) {
1007 return "";
1008 }
1009 }
1010
1011 return $target_file;
1012 }
1013 return "";
1014 }
static rename(string $a_source, string $a_target)
static moveUploadedFile(string $a_file, string $a_name, string $a_target, bool $a_raise_errors=true, string $a_mode="move_uploaded")
move uploaded file

◆ rebuildUploadedFiles()

ilPropertyFormGUI::rebuildUploadedFiles ( )
protected

Definition at line 1016 of file class.ilPropertyFormGUI.php.

1016 : void
1017 {
1018 $file_hash = (string) $this->getFileHash();
1019 if ($file_hash != "") {
1020 $temp_path = ilFileUtils::getDataDir() . "/temp";
1021 if (is_dir($temp_path)) {
1022 $temp_files = glob($temp_path . "/" . session_id() . "~~" . $file_hash . "~~*");
1023 if (is_array($temp_files)) {
1024 foreach ($temp_files as $full_file) {
1025 $file = explode("~~", basename($full_file));
1026 $field = $file[2];
1027 $idx = $file[3];
1028 $idx2 = $file[4];
1029 $type = $file[5] . "/" . $file[6];
1030 $name = $file[7];
1031
1032 if ($idx2 != "") {
1033 if (!isset($_FILES[$field]["tmp_name"][$idx][$idx2])) {
1034 $_FILES[$field]["tmp_name"][$idx][$idx2] = $full_file;
1035 $_FILES[$field]["name"][$idx][$idx2] = $name;
1036 $_FILES[$field]["type"][$idx][$idx2] = $type;
1037 $_FILES[$field]["error"][$idx][$idx2] = 0;
1038 $_FILES[$field]["size"][$idx][$idx2] = filesize($full_file);
1039 $_FILES[$field]["is_upload"][$idx][$idx2] = false;
1040 }
1041 } elseif ($idx != "") {
1042 if (!isset($_FILES[$field]["tmp_name"][$idx])) {
1043 $_FILES[$field]["tmp_name"][$idx] = $full_file;
1044 $_FILES[$field]["name"][$idx] = $name;
1045 $_FILES[$field]["type"][$idx] = $type;
1046 $_FILES[$field]["error"][$idx] = 0;
1047 $_FILES[$field]["size"][$idx] = filesize($full_file);
1048 $_FILES[$field]["is_upload"][$idx] = false;
1049 }
1050 } else {
1051 if (!isset($_FILES[$field]["tmp_name"])) {
1052 $_FILES[$field]["tmp_name"] = $full_file;
1053 $_FILES[$field]["name"] = $name;
1054 $_FILES[$field]["type"] = $type;
1055 $_FILES[$field]["error"] = 0;
1056 $_FILES[$field]["size"] = filesize($full_file);
1057 $_FILES[$field]["is_upload"] = false;
1058 }
1059 }
1060 }
1061 }
1062 }
1063 }
1064 }
static getDataDir()
get data directory (outside webspace)
$type

References $name, $type, and ilFileUtils\getDataDir().

Referenced by __construct().

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

◆ removeItemByPostVar()

ilPropertyFormGUI::removeItemByPostVar ( string  $a_post_var,
bool  $a_remove_unused_headers = false 
)

Definition at line 219 of file class.ilPropertyFormGUI.php.

222 : void {
223 foreach ($this->items as $key => $item) {
224 if (method_exists($item, "getPostVar") && $item->getPostVar() == $a_post_var) {
225 unset($this->items[$key]);
226 }
227 }
228
229 // remove section headers if they do not contain any items anymore
230 if ($a_remove_unused_headers) {
231 $unset_keys = array();
232 $last_item = null;
233 $last_key = null;
234 foreach ($this->items as $key => $item) {
235 if ($item instanceof ilFormSectionHeaderGUI && $last_item instanceof ilFormSectionHeaderGUI) {
236 $unset_keys[] = $last_key;
237 }
238 $last_item = $item;
239 $last_key = $key;
240 }
241 if ($last_item instanceof ilFormSectionHeaderGUI) {
242 $unset_keys[] = $last_key;
243 }
244 foreach ($unset_keys as $key) {
245 unset($this->items[$key]);
246 }
247 }
248 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
string $key
Consumer key/client ID value.
Definition: System.php:193

References ILIAS\LTI\ToolProvider\$key.

Referenced by ilLTIConsumeProviderFormGUI\getDynRegError(), ilObjItemGroupGUI\initEditCustomForm(), assTextQuestionGUI\populateCorrectionsFormProperties(), and ilTestSettingsGUI\removeHiddenItems().

+ Here is the caller graph for this function:

◆ setDescription()

ilPropertyFormGUI::setDescription ( string  $a_val)

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

170 : void
171 {
172 $this->description = $a_val;
173 }

Referenced by ilObjUserFolderGUI\initNewAccountMailForm().

+ Here is the caller graph for this function:

◆ setDisableStandardMessage()

ilPropertyFormGUI::setDisableStandardMessage ( bool  $a_val)

Definition at line 298 of file class.ilPropertyFormGUI.php.

298 : void
299 {
300 $this->disable_standard_message = $a_val;
301 }

◆ setForceTopButtons()

ilPropertyFormGUI::setForceTopButtons ( bool  $a_val)

Definition at line 200 of file class.ilPropertyFormGUI.php.

200 : void
201 {
202 $this->force_top_buttons = $a_val;
203 }

◆ setHideLabels()

ilPropertyFormGUI::setHideLabels ( bool  $a_value = true)

Definition at line 314 of file class.ilPropertyFormGUI.php.

314 : void
315 {
316 $this->hide_labels = $a_value;
317 }

◆ setItems()

ilPropertyFormGUI::setItems ( array  $a_items)

Definition at line 265 of file class.ilPropertyFormGUI.php.

265 : void
266 {
267 $this->items = $a_items;
268 }

Referenced by ilAssQuestionAuthoringFormGUI\replaceFormItemByPostVar().

+ Here is the caller graph for this function:

◆ setMode()

ilPropertyFormGUI::setMode ( string  $a_mode)

Definition at line 140 of file class.ilPropertyFormGUI.php.

140 : void
141 {
142 $this->mode = $a_mode;
143 }

◆ setShowTopButtons()

ilPropertyFormGUI::setShowTopButtons ( bool  $a_val)

Definition at line 190 of file class.ilPropertyFormGUI.php.

190 : void
191 {
192 $this->show_top_buttons = $a_val;
193 }

◆ setTableWidth()

ilPropertyFormGUI::setTableWidth ( string  $a_width)
final

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

129 : void
130 {
131 $this->tbl_width = $a_width;
132 }

Referenced by ilForumThreadFormGUI\generateInputItems(), and ilObjGroupGUI\initForm().

+ Here is the caller graph for this function:

◆ setTitle()

ilPropertyFormGUI::setTitle ( string  $a_title)

Reimplemented in ilLTIConsumerProviderSelectionFormTableGUI.

Definition at line 150 of file class.ilPropertyFormGUI.php.

150 : void
151 {
152 $this->title = $a_title;
153 }

Referenced by FormMailCodesGUI\__construct(), ilTestExpressPageObjectGUI\addQuestion(), ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilAssQuestionSkillAssignmentPropertyFormGUI\build(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilChatroomHistoryGUI\bySession(), ilPCTableGUI\editCellAlignment(), ilPCTableGUI\editCellStyle(), ilObjCourseGUI\editMapSettingsObject(), ilObjGroupGUI\editMapSettingsObject(), ilPCMediaObjectGUI\editStyle(), ilForumThreadFormGUI\generateInputItems(), ilObjAuthSettingsGUI\getApacheAuthSettingsForm(), ilObjStyleSheetGUI\getCloneForm(), ilLTIConsumeProviderFormGUI\getContentSelectionFrame(), ilObjStyleSheetGUI\getCreateForm(), ilForumSettingsGUI\getCustomForm(), ilLTIConsumeProviderFormGUI\getDynRegError(), ilSamlSettingsGUI\getIdpForm(), ilSamlSettingsGUI\getIdpSettingsForm(), ilObjStyleSheetGUI\getImportForm(), ilSamlSettingsGUI\getSettingsForm(), ilMailTemplateGUI\getTemplateForm(), ilObjAdvancedEditingGUI\getTinyForm(), ilMailOptionsFormGUI\init(), ILIAS\Modules\OrgUnit\ARHelper\BaseForm\initButtons(), ilOrgUnitDefaultPermissionFormGUI\initButtons(), ilObjAdvancedEditingGUI\initCharSelectorSettingsForm(), ilObjEmployeeTalkSeriesGUI\initCreateForm(), ilObjGlossaryGUI\initCreateForm(), ilLTIConsumeProviderFormGUI\initDynRegForm(), ilObjCategoryGUI\initEditForm(), ilObjCourseGUI\initEditForm(), ilObjFolderGUI\initEditForm(), ilContainerGUI\initEditForm(), ilBiblLibraryFormGUI\initForm(), ilBiblFieldFilterFormGUI\initForm(), ilDclTableViewEditFormGUI\initForm(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilOrgUnitTypeFormGUI\initForm(), ilStudyProgrammeTypeCustomIconsFormGUI\initForm(), ilAccessibilityDocumentFormGUI\initForm(), ilRegistrationSettingsGUI\initForm(), ilTermsOfServiceSettingsFormGUI\initForm(), ilTermsOfServiceDocumentFormGUI\initForm(), ilWebDAVMountInstructionsDocumentFormGUI\initForm(), ilContainerReferenceGUI\initForm(), ilObjGroupGUI\initForm(), ilLTIConsumeProviderFormGUI\initForm(), ilLTIConsumerSettingsFormGUI\initForm(), ilCourseObjectivesGUI\initFormRandom(), ilMembershipAdministrationGUI\initFormSettings(), ilObjAdvancedEditingGUI\initGeneralPageSettingsForm(), ilObjMDSettingsGUI\initGeneralSettingsForm(), ilConsultationHoursGUI\initGroupForm(), ilCalendarCategoryGUI\initImportForm(), ilObjSCORMLearningModuleGUI\initImportForm(), ilObjCourseGUI\initInfoEditor(), ilObjGroupGUI\initInfoEditor(), ilSkillRootGUI\initInputForm(), ilECSSettingsGUI\initMappingsForm(), ilObjectCustomUserFieldsGUI\initMemberForm(), ilObjContentObjectGUI\initMenuEntryForm(), ilObjContentObjectGUI\initMenuForm(), ilObjUserFolderGUI\initNewAccountMailForm(), ilPageObjectGUI\initOpenedContentForm(), ilObjMDSettingsGUI\initSettingsForm(), and ilLTIConsumeProviderFormGUI\initToolConfigForm().

+ Here is the caller graph for this function:

◆ setTitleIcon()

ilPropertyFormGUI::setTitleIcon ( string  $a_titleicon)

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

160 : void
161 {
162 $this->titleicon = $a_titleicon;
163 }

Referenced by ilForumThreadFormGUI\generateInputItems(), ilObjGroupGUI\initForm(), and ilObjUserFolderGUI\initNewAccountMailForm().

+ Here is the caller graph for this function:

◆ setTopAnchor()

ilPropertyFormGUI::setTopAnchor ( string  $a_val)

Definition at line 180 of file class.ilPropertyFormGUI.php.

180 : void
181 {
182 $this->top_anchor = $a_val;
183 }

◆ setValuesByArray()

ilPropertyFormGUI::setValuesByArray ( array  $a_values,
bool  $a_restrict_to_value_keys = false 
)

Definition at line 319 of file class.ilPropertyFormGUI.php.

322 : void {
323 foreach ($this->items as $item) {
324 if (!($a_restrict_to_value_keys) ||
325 in_array($item->getPostVar(), array_keys($a_values))) {
326 $item->setValueByArray($a_values);
327 }
328 }
329 }

Referenced by ilObjAuthSettingsGUI\apacheAuthSettingsObject(), ilChatroomFormFactory\applyValues(), ilChatroomHistoryGUI\bySession(), ilObjMediaPoolGUI\edit(), ilObjEmployeeTalkGUI\editObject(), ilObjFolderGUI\editObject(), ilBiblLibraryFormGUI\fillForm(), ilBiblFieldFilterFormGUI\fillForm(), ilOrgUnitAuthorityFormGUI\fillForm(), ilOrgUnitPositionFormGUI\fillForm(), ilOrgUnitDefaultPermissionFormGUI\fillForm(), ilObjLearningSequenceSettingsGUI\fillForm(), ilDclBaseFieldModel\fillPropertiesForm(), ilDclSelectionFieldModel\fillPropertiesForm(), ilExAssignmentEditorGUI\getAssignmentValues(), ilSystemStyleIconsGUI\getByColorValues(), ilMediaPoolPageGUI\getMediaPoolPageValues(), ilExAssignmentEditorGUI\getPeerReviewValues(), ilNewsItemGUI\getValuesNewsItem(), ilRegistrationSettingsGUI\initFormValues(), ilMailOptionsFormGUI\populate(), ilMarkSchemaGUI\populateEctsForm(), ilObjMailGUI\populateExternalSettingsForm(), ilObjForumAdministrationGUI\populateForm(), ilMailTemplateGUI\populateFormWithTemplate(), ilObjMailGUI\populateGeneralSettingsForm(), ilObjWikiSettingsGUI\populateWithCurrentSettings(), ilObjRoleGUI\readRoleProperties(), ilCertificateGUI\setTemplateContent(), ilSamlSettingsGUI\showIdpSettings(), ilSamlSettingsGUI\showSettings(), and ilSamlSettingsGUI\showUserAttributeMappingForm().

+ Here is the caller graph for this function:

◆ setValuesByPost()

ilPropertyFormGUI::setValuesByPost ( )

Definition at line 331 of file class.ilPropertyFormGUI.php.

332 {
333 global $DIC;
334
335 if (!isset($DIC["http"])) {
336 return null;
337 }
338
339 foreach ($this->items as $item) {
340 $item->setValueByArray($DIC->http()->request()->getParsedBody());
341 }
342 }

References $DIC.

Referenced by ilCustomUserFieldsGUI\create(), ilObjOrgUnitSettingsFormGUI\fillObject(), ilOrgUnitTypeAdvancedMetaDataFormGUI\fillObject(), ilOrgUnitTypeFormGUI\fillObject(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\fillObject(), ilDidacticTemplateSettingsGUI\handleUpdateFailure(), ilObjSCORMLearningModuleGUI\import(), ilObjContentObjectGUI\importFileObject(), ilSkillRootGUI\importSkills(), ilMailTemplateGUI\insertTemplate(), ilRegistrationGUI\join(), ilCourseObjectivesGUI\save(), ilObjStudyProgrammeGUI\save(), ilAuthShibbolethSettingsGUI\save(), ilCalendarCategoryGUI\save(), ilMemberAgreementGUI\save(), ilObjAuthSettingsGUI\saveApacheSettingsObject(), ilObjAdvancedEditingGUI\saveAssessmentSettingsObject(), ilObjAdvancedEditingGUI\saveCharSelectorSettingsObject(), ilObjAdvancedEditingGUI\saveExcAssSettingsObject(), ilObjectCustomIconConfigurationGUI\saveForm(), ilObjAdvancedEditingGUI\saveFrmPostSettingsObject(), ilObjAdvancedEditingGUI\saveGeneralPageSettingsObject(), ilObjMDSettingsGUI\saveGeneralSettings(), ilObjLinkResourceGUI\saveLinkList(), ilObjectCustomUserFieldsGUI\saveMember(), ilObjContentObjectGUI\saveMenuEntry(), ilObjEmployeeTalkSeriesGUI\saveObject(), ilObjGlossaryGUI\saveObject(), ilAccessibilityCriterionFormGUI\saveObject(), ilAccessibilityDocumentFormGUI\saveObject(), ilTermsOfServiceCriterionFormGUI\saveObject(), ilTermsOfServiceDocumentFormGUI\saveObject(), ilWebDAVMountInstructionsDocumentFormGUI\saveObject(), ilContainerGUI\savePasswordObject(), ilCourseObjectivesGUI\saveRandom(), ilObjLinkResourceGUI\saveSettings(), ilMembershipAdministrationGUI\saveSettings(), ilSamlSettingsGUI\saveSettings(), ilObjAdvancedEditingGUI\saveSurveySettingsObject(), ilSamlSettingsGUI\saveUserAttributeMapping(), ilSamlSettingsGUI\showIdpSettings(), ilSamlSettingsGUI\showNewIdpForm(), ilMailOptionsGUI\showOptions(), ilExtIdGUI\update(), ilCalendarCategoryGUI\update(), ilCustomUserFieldsGUI\update(), ilObjCourseGUI\updateInfoObject(), ilObjLinkResourceGUI\updateLink(), ilObjContentObjectGUI\updateMenuEntry(), ilObjCategoryGUI\updateObject(), ilObjCourseGUI\updateObject(), ilObjEmployeeTalkGUI\updateObject(), ilObjGroupGUI\updateObject(), ilContainerReferenceGUI\updateObject(), ilWebDAVMountInstructionsDocumentFormGUI\updateObject(), ilMDEditorGUI\updateQuickEdit(), ilMailTemplateGUI\updateTemplate(), and ilObjectServiceSettingsGUI\updateToolSettings().

+ Here is the caller graph for this function:

Field Documentation

◆ $buttons

array ilPropertyFormGUI::$buttons = array()
private

Definition at line 39 of file class.ilPropertyFormGUI.php.

◆ $check_input_called

bool ilPropertyFormGUI::$check_input_called = false
protected

Definition at line 42 of file class.ilPropertyFormGUI.php.

◆ $ctrl

◆ $description

string ilPropertyFormGUI::$description = ""
protected

Definition at line 47 of file class.ilPropertyFormGUI.php.

Referenced by ilOrgUnitTypeFormGUI\fillObject(), and getDescription().

◆ $disable_standard_message

bool ilPropertyFormGUI::$disable_standard_message = false
protected

Definition at line 43 of file class.ilPropertyFormGUI.php.

◆ $force_top_buttons

bool ilPropertyFormGUI::$force_top_buttons = false
protected

Definition at line 51 of file class.ilPropertyFormGUI.php.

Referenced by getForceTopButtons().

◆ $global_tpl

ilGlobalTemplateInterface ilPropertyFormGUI::$global_tpl = null
protected

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

◆ $hide_labels

bool ilPropertyFormGUI::$hide_labels = false
protected

Definition at line 50 of file class.ilPropertyFormGUI.php.

◆ $http

HTTP Services ilPropertyFormGUI::$http
protected

Definition at line 52 of file class.ilPropertyFormGUI.php.

◆ $items

array ilPropertyFormGUI::$items = array()
private

Definition at line 40 of file class.ilPropertyFormGUI.php.

◆ $kept_uploads

array ilPropertyFormGUI::$kept_uploads = []
private

Definition at line 32 of file class.ilPropertyFormGUI.php.

◆ $lng

◆ $mode

string ilPropertyFormGUI::$mode = "std"
protected

Definition at line 41 of file class.ilPropertyFormGUI.php.

Referenced by getMode().

◆ $onload_code

ilPropertyFormGUI::$onload_code = []
protected

Definition at line 56 of file class.ilPropertyFormGUI.php.

◆ $refinery

Refinery Factory ilPropertyFormGUI::$refinery = null
protected

Definition at line 53 of file class.ilPropertyFormGUI.php.

◆ $required_text

bool ilPropertyFormGUI::$required_text = false
protected

Definition at line 33 of file class.ilPropertyFormGUI.php.

◆ $settings

ilSetting ilPropertyFormGUI::$settings = null
protected

Definition at line 38 of file class.ilPropertyFormGUI.php.

Referenced by FormMailCodesGUI\__construct().

◆ $show_top_buttons

bool ilPropertyFormGUI::$show_top_buttons = true
protected

Definition at line 49 of file class.ilPropertyFormGUI.php.

Referenced by getShowTopButtons().

◆ $tbl_width

string ilPropertyFormGUI::$tbl_width = ""
protected

Definition at line 48 of file class.ilPropertyFormGUI.php.

Referenced by getTableWidth().

◆ $title

◆ $titleicon

string ilPropertyFormGUI::$titleicon = ""
protected

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

Referenced by getTitleIcon().

◆ $top_anchor

string ilPropertyFormGUI::$top_anchor = "il_form_top"
protected

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

Referenced by getTopAnchor().

◆ $tpl

◆ $user


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