ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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 ()
 
 checkForRequiredField ()
 

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 ilPropertyFormGUI: ilFormPropertyDispatchGUI
Deprecated:
12 This component will be removed with ILIAS 12

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

Constructor & Destructor Documentation

◆ __construct()

ilPropertyFormGUI::__construct ( )

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

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

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

Member Function Documentation

◆ addAsyncOnloadCode()

ilPropertyFormGUI::addAsyncOnloadCode ( string  $code)

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

Referenced by insertItem().

809  : void
810  {
811  $this->onload_code[] = $code;
812  }
+ Here is the caller graph for this function:

◆ addCommandButton()

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

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

Referenced by FormMailCodesGUI\__construct(), SurveyQuestionGUI\addCommandButtons(), ilPageComponentPluginGUI\addCreationButton(), ilAssQuestionAuthoringFormGUI\addGenericAssessmentQuestionCommandButtons(), assQuestionGUI\addQuestionFormCommandButtons(), ilAssOrderingQuestionAuthoringFormGUI\addSpecificOrderingQuestionCommandButtons(), ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilAssQuestionSkillAssignmentPropertyFormGUI\build(), ilPCMediaObjectGUI\changeObjectReference(), ilPCTableGUI\editCellAlignment(), ilPCTableGUI\editCellStyle(), ilObjGroupGUI\editMapSettingsObject(), ilObjCourseGUI\editMapSettingsObject(), ilPCMediaObjectGUI\editStyle(), ilForumThreadFormGUI\generateDefaultForm(), ilForumThreadFormGUI\generateMinimalForm(), ilObjStyleSheetGUI\getCloneForm(), ilLTIConsumeProviderFormGUI\getContentSelectionFrame(), ilObjStyleSheetGUI\getCreateForm(), ilLTIConsumeProviderFormGUI\getDynRegError(), ilObjStyleSheetGUI\getImportForm(), ILIAS\COPage\Editor\Server\UIWrapper\getRenderedForm(), ilMailTemplateGUI\getTemplateForm(), ilMailOptionsFormGUI\init(), ilObjUserFolderGUI\initAccessRestrictionForm(), ilWikiPageGUI\initAdvancedMetaDataForm(), ilObjStudyProgrammeGUI\initAdvancedSettingsForm(), ilObjOrgUnitGUI\initAdvancedSettingsForm(), ILIAS\components\OrgUnit\ARHelper\BaseForm\initButtons(), ilOrgUnitPositionFormGUI\initButtons(), ilBiblFieldFilterFormGUI\initButtons(), ilAdvancedMDSettingsGUI\initComplexOptionForm(), ilObjEmployeeTalkSeriesGUI\initCreateForm(), ilObjSAHSLearningModuleGUI\initCreateForm(), ilObjGlossaryGUI\initCreateForm(), ilPCDataTableGUI\initCreationForm(), ilBlogPostingGUI\initDateForm(), ilLTIConsumeProviderFormGUI\initDynRegForm(), ilObjTalkTemplateGUI\initEditForm(), ilObjFolderGUI\initEditForm(), ilObjRootFolderGUI\initEditForm(), ilObjCategoryGUI\initEditForm(), ilObjCourseGUI\initEditForm(), ilContainerGUI\initEditForm(), ilAdvancedMDSettingsGUI\initFieldForm(), ilWebDAVMountInstructionsDocumentFormGUI\initForm(), ilLTIConsumerSettingsFormGUI\initForm(), ilBiblLibraryFormGUI\initForm(), ilLTIConsumeProviderFormGUI\initForm(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilAccessibilityDocumentFormGUI\initForm(), ilExtIdGUI\initForm(), ilStudyProgrammeTypeCustomIconsFormGUI\initForm(), ilRegistrationSettingsGUI\initForm(), ilContainerReferenceGUI\initForm(), ilObjGroupGUI\initForm(), ilCourseObjectivesGUI\initFormRandom(), ilMembershipAdministrationGUI\initFormSettings(), ilObjAdvancedEditingGUI\initGeneralPageSettingsForm(), ilPCDataTableGUI\initImportForm(), ilCalendarCategoryGUI\initImportForm(), ilObjCourseGUI\initInfoEditor(), ilObjGroupGUI\initInfoEditor(), ilSkillRootGUI\initInputForm(), ilECSSettingsGUI\initMappingsForm(), ilMediaPoolPageGUI\initMediaPoolPageForm(), ilObjectCustomUserFieldsGUI\initMemberForm(), ilObjContentObjectGUI\initMenuEntryForm(), ilObjContentObjectGUI\initMenuForm(), ilObjUserFolderGUI\initNewAccountMailForm(), ilPageObjectGUI\initOpenedContentForm(), ilConsultationHoursGUI\initSettingsForm(), ilBlogPostingGUI\initTitleForm(), ilLTIConsumeProviderFormGUI\initToolConfigForm(), ilObjSCORMLearningModuleGUI\initTrackingImportForm(), ilPCMediaObjectGUI\insert(), ilWikiPageGUI\insertWikiLink(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\saveObject(), ilObjOrgUnitSettingsFormGUI\saveObject(), ilObjEmployeeTalkGUI\sendUpdateNotification(), and ilAccessibilityCriterionFormGUI\setCheckInputCalled().

471  : void {
472  $this->buttons[] = array("cmd" => $a_cmd, "text" => $a_text, "id" => $a_id);
473  }
+ Here is the caller graph for this function:

◆ addItem()

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

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

Referenced by FormMailCodesGUI\__construct(), ilMemberAgreementGUI\addAgreement(), ilForumThreadFormGUI\addAliasInput(), ilForumThreadFormGUI\addAllowNotificationInput(), ilSamlSettingsGUI\addAttributeRuleFieldToForm(), ilForumThreadFormGUI\addAutosaveInfo(), ilForumSettingsGUI\addAvailabilitySection(), ilObjContentPageGUI\addAvailabilitySection(), assQuestionGUI\addBasicQuestionFormProperties(), ilObjCourseAdministrationGUI\addChildContentsTo(), ilIndividualAssessmentCommonSettingsGUI\addCommonFieldsToForm(), ilAdvancedMDFieldDefinitionSelect\addCreateOptionsFieldsToDefinitionForm(), ilObjRemoteGlossaryGUI\addCustomEditForm(), ilObjRemoteLearningModuleGUI\addCustomEditForm(), ilObjRemoteWikiGUI\addCustomEditForm(), ilObjRemoteCourseGUI\addCustomEditForm(), ilObjRemoteGroupGUI\addCustomEditForm(), ilObjRemoteTestGUI\addCustomEditForm(), ilMemberAgreementGUI\addCustomFields(), ilUserProfile\addCustomFieldsToForm(), ilAdvancedMDFieldDefinitionGroupBased\addCustomFieldToDefinitionForm(), ilAdvancedMDFieldDefinitionFloat\addCustomFieldToDefinitionForm(), ilAdvancedMDFieldDefinitionInteger\addCustomFieldToDefinitionForm(), ilAdvancedMDFieldDefinitionText\addCustomFieldToDefinitionForm(), ilAdvancedMDFieldDefinitionSelect\addCustomFieldToDefinitionFormInTranslationMode(), ilCronOerHarvester\addCustomSettingsToForm(), ilSCCronTrash\addCustomSettingsToForm(), ilCleanCOPageHistoryCronjob\addCustomSettingsToForm(), ilConsultationHourCron\addCustomSettingsToForm(), ilLoggerCronCleanErrorFiles\addCustomSettingsToForm(), ilMailCronOrphanedMails\addCustomSettingsToForm(), ilCronDeleteInactivatedUserAccounts\addCustomSettingsToForm(), ilCronDeleteNeverLoggedInUserAccounts\addCustomSettingsToForm(), ilCronDeleteInactiveUserAccounts\addCustomSettingsToForm(), ilForumCronNotification\addCustomSettingsToForm(), ilExAssTypePortfolioGUI\addEditFormCustomProperties(), ilExAssTypeTextGUI\addEditFormCustomProperties(), ilExAssTypeWikiTeamGUI\addEditFormCustomProperties(), ilAdvancedMDFieldDefinitionSelect\addEditOptionsFieldsToDefinitionForm(), ilMemberAgreementGUI\addExportFieldInfo(), SurveyMatrixQuestionGUI\addFieldsToEditForm(), SurveyMultipleChoiceQuestionGUI\addFieldsToEditForm(), SurveyMetricQuestionGUI\addFieldsToEditForm(), SurveyTextQuestionGUI\addFieldsToEditForm(), SurveySingleChoiceQuestionGUI\addFieldsToEditForm(), ilUserProfile\addFieldToForm(), ilForumThreadFormGUI\addFileUploadInput(), ilPersonalProfileGUI\addLocationToForm(), ilMembershipRegistrationSettingsGUI\addMembershipFormElements(), ilForumThreadFormGUI\addMessageInput(), assQuestionGUI\addNumberOfTriesToFormIfNecessary(), ilHelpGUI\addPersonalSettingToLegacyForm(), ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\Extract\Video\GUIService\addPreviewInput(), ilECSObjectSettings\addSettingsToForm(), ILIAS\Blog\ReadingTime\BlogSettingsGUI\addSettingToForm(), ILIAS\LearningModule\ReadingTime\SettingsGUI\addSettingToForm(), ilSkillTreeNodeGUI\addStatusInput(), ilForumThreadFormGUI\addSubjectInput(), ilAdvancedMDFieldDefinition\addToFieldDefinitionForm(), ilTaxMDGUI\addToMDForm(), ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilAssQuestionSkillAssignmentPropertyFormGUI\build(), ilAssQuestionFeedback\completeGenericFormProperties(), ilAssConfigurableMultiOptionQuestionFeedback\completeSpecificFormProperties(), ilAssMultiOptionQuestionFeedback\completeSpecificFormProperties(), ilAssClozeTestFeedback\completeSpecificFormProperties(), ilPCTableGUI\editCellAlignment(), ilPCTableGUI\editCellStyle(), ilObjGroupGUI\editMapSettingsObject(), ilObjCourseGUI\editMapSettingsObject(), ilPCMediaObjectGUI\editStyle(), ilObjStyleSheetGUI\getCloneForm(), getContent(), ilObjStyleSheetGUI\getCreateForm(), ilForumSettingsGUI\getCustomForm(), ilObjStyleSheetGUI\getImportForm(), ilMailTemplateGUI\getTemplateForm(), ilExAssignmentEditorGUI\handleDisabledPeerFields(), ilUserProfile\handleSectionChange(), ilMailOptionsFormGUI\init(), ilObjUserFolderGUI\initAccessRestrictionForm(), ilPCDataTableGUI\initCellPropertiesForm(), ilUserProfileBadgeGUI\initConfigForm(), ilCourseLPBadgeGUI\initConfigForm(), ilObjPortfolioTemplateGUI\initCopyPageFormOptions(), ilObjPortfolioGUI\initCopyPageFormOptions(), ilObjEmployeeTalkSeriesGUI\initCreateForm(), ilObjSAHSLearningModuleGUI\initCreateForm(), ilObjGlossaryGUI\initCreateForm(), ilPCDataTableGUI\initCreationForm(), ilExcCriteriaText\initCustomForm(), ilBlogPostingGUI\initDateForm(), ilObjPortfolioTemplateGUI\initDidacticTemplate(), ilObjectGUI\initDidacticTemplate(), ilLTIConsumeProviderFormGUI\initDynRegForm(), ilObjPollGUI\initEditCustomForm(), ilObjTalkTemplateGUI\initEditCustomForm(), ilObjItemGroupGUI\initEditCustomForm(), ilObjPortfolioBaseGUI\initEditCustomForm(), ilObjBookingPoolGUI\initEditCustomForm(), ilObjContentPageGUI\initEditCustomForm(), ilObjFolderGUI\initEditForm(), ilObjCategoryGUI\initEditForm(), ilObjCourseGUI\initEditForm(), ilContainerGUI\initEditForm(), ilPCDataTableGUI\initEditingForm(), ilAdvancedMDSettingsGUI\initFieldForm(), ilLTIConsumerSettingsFormGUI\initForm(), ilWebDAVMountInstructionsDocumentFormGUI\initForm(), ilBiblFieldFilterFormGUI\initForm(), ilBiblLibraryFormGUI\initForm(), ilLTIConsumeProviderFormGUI\initForm(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilAccessibilityDocumentFormGUI\initForm(), ilExtIdGUI\initForm(), ilStudyProgrammeTypeCustomIconsFormGUI\initForm(), ilObjCourseReferenceGUI\initForm(), ilRegistrationSettingsGUI\initForm(), ilContainerReferenceGUI\initForm(), ilObjGroupGUI\initForm(), ilOrgUnitAuthorityFormGUI\initFormElements(), ilOrgUnitPositionFormGUI\initFormElements(), ilCourseObjectivesGUI\initFormRandom(), ilMembershipAdministrationGUI\initFormSettings(), ilObjAdvancedEditingGUI\initGeneralPageSettingsForm(), ilPCDataTableGUI\initImportForm(), ilCalendarCategoryGUI\initImportForm(), ilObjCourseGUI\initInfoEditor(), ilObjGroupGUI\initInfoEditor(), ilSkillRootGUI\initInputForm(), ilContainerGUI\initListPresentationForm(), ilECSSettingsGUI\initMappingsForm(), ilObjMediaPoolGUI\initMediaBulkForm(), ilMediaPoolPageGUI\initMediaPoolPageForm(), ilObjContentObjectGUI\initMenuEntryForm(), ilObjContentObjectGUI\initMenuForm(), ilObjUserFolderGUI\initNewAccountMailForm(), ilPageObjectGUI\initOpenedContentForm(), ilAdvancedMDFieldDefinitionGroupBased\initOptionForm(), ilObjectServiceSettingsGUI\initServiceSettingsForm(), ilConsultationHoursGUI\initSettingsForm(), ilContainerGUI\initSortingForm(), ilBlogPostingGUI\initTitleForm(), ilLTIConsumeProviderFormGUI\initToolConfigForm(), ilObjSCORMLearningModuleGUI\initTrackingImportForm(), insertItem(), ilWikiPageGUI\insertWikiLink(), ilObjExerciseGUI\listAssignmentsObject(), ilAdministrationSettingsFormHandler\parseFieldValue(), assErrorTextGUI\populateAnswerSpecificFormPart(), assOrderingQuestionGUI\populateAnswerSpecificFormPart(), assKprimChoiceGUI\populateAnswerSpecificFormPart(), assMatchingQuestionGUI\populateAnswerSpecificFormPart(), assNumericGUI\populateAnswerSpecificFormPart(), assTextSubsetGUI\populateAnswerSpecificFormPart(), assClozeTestGUI\populateAnswerSpecificFormPart(), assTextQuestionGUI\populateAnswerSpecificFormPart(), assSingleChoiceGUI\populateAnswerSpecificFormPart(), assMultipleChoiceGUI\populateAnswerSpecificFormPart(), assOrderingHorizontalGUI\populateCorrectionsFormProperties(), assFileUploadGUI\populateCorrectionsFormProperties(), assNumericGUI\populateCorrectionsFormProperties(), assTextSubsetGUI\populateCorrectionsFormProperties(), assErrorTextGUI\populateCorrectionsFormProperties(), assLongMenuGUI\populateCorrectionsFormProperties(), assOrderingQuestionGUI\populateCorrectionsFormProperties(), assSingleChoiceGUI\populateCorrectionsFormProperties(), assImagemapQuestionGUI\populateCorrectionsFormProperties(), assKprimChoiceGUI\populateCorrectionsFormProperties(), assMultipleChoiceGUI\populateCorrectionsFormProperties(), assMatchingQuestionGUI\populateCorrectionsFormProperties(), ilAssQuestionSkillAssignmentPropertyFormGUI\populateFullProperties(), assClozeTestGUI\populateGapCombinationCorrectionFormProperty(), ilAssQuestionSkillAssignmentPropertyFormGUI\populateLimitedProperties(), assFileUploadGUI\populateQuestionSpecificFormPart(), assKprimChoiceGUI\populateQuestionSpecificFormPart(), assImagemapQuestionGUI\populateQuestionSpecificFormPart(), assLongMenuGUI\populateQuestionSpecificFormPart(), assErrorTextGUI\populateQuestionSpecificFormPart(), assOrderingQuestionGUI\populateQuestionSpecificFormPart(), assClozeTestGUI\populateQuestionSpecificFormPart(), assNumericGUI\populateQuestionSpecificFormPart(), assOrderingHorizontalGUI\populateQuestionSpecificFormPart(), assTextSubsetGUI\populateQuestionSpecificFormPart(), assMatchingQuestionGUI\populateQuestionSpecificFormPart(), assSingleChoiceGUI\populateQuestionSpecificFormPart(), assTextQuestionGUI\populateQuestionSpecificFormPart(), assMultipleChoiceGUI\populateQuestionSpecificFormPart(), assQuestionGUI\populateTaxonomyFormSection(), ilAdvancedMDFieldDefinitionSelect\prepareCustomDefinitionFormConfirmation(), ilAdvancedMDFieldDefinition\prepareDefinitionFormConfirmation(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\saveObject(), ilObjOrgUnitSettingsFormGUI\saveObject(), ilObjEmployeeTalkGUI\sendUpdateNotification(), ilAccessibilityCriterionFormGUI\setCheckInputCalled(), ilPersonalProfileGUI\showPublicProfileFields(), ILIAS\Survey\Settings\SettingsFormGUI\withAccess(), ILIAS\Survey\Settings\SettingsFormGUI\withActivation(), ILIAS\Survey\Settings\SettingsFormGUI\withAfterEnd(), ILIAS\Survey\Settings\SettingsFormGUI\withBeforeStart(), ILIAS\Survey\Settings\SettingsFormGUI\withGeneral(), ILIAS\Survey\Settings\SettingsFormGUI\withOther(), ILIAS\Survey\Settings\SettingsFormGUI\withPresentation(), ILIAS\Survey\Settings\SettingsFormGUI\withQuestionBehaviour(), ILIAS\Survey\Settings\SettingsFormGUI\withReminders(), and ILIAS\Survey\Settings\SettingsFormGUI\withResults().

214  : void
215  {
216  $a_item->setParentForm($this);
217  $this->items[] = $a_item;
218  }
+ Here is the caller graph for this function:

◆ appendOnloadCode()

ilPropertyFormGUI::appendOnloadCode ( string  $html)
protected

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

References ilFileUtils\createDirectory(), ilFileUtils\getASCIIFilename(), ilFileUtils\getDataDir(), getItemByPostVar(), ilFileUtils\moveUploadedFile(), and null.

Referenced by getHTML(), and getHTMLAsync().

843  : string
844  {
845  if (count($this->onload_code) > 0) {
846  $html .= "<script>";
847  foreach ($this->onload_code as $code) {
848  $html .= $code . "\n";
849  }
850  $html .= "</script>";
851  }
852  return $html;
853  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ checkForRequiredField()

ilPropertyFormGUI::checkForRequiredField ( )
protected

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

References getMode(), and hideRequired().

Referenced by getContent().

1068  : bool
1069  {
1070  foreach ($this->items as $item) {
1071  if ($item instanceof ilFormSectionHeaderGUI) {
1072  return false;
1073  } elseif ($item->getType() != "hidden") {
1074  if ($this->getMode() == "subform") {
1075  if (!$this->hideRequired($item->getType())) {
1076  if ($item->getRequired()) {
1077  return true;
1078  }
1079  }
1080  } elseif (!$this->hideRequired($item->getType())) {
1081  if ($item->getRequired()) {
1082  return true;
1083  }
1084  }
1085  }
1086  }
1087 
1088  return false;
1089  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ checkInput()

ilPropertyFormGUI::checkInput ( )

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

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

Referenced by ILIAS\Survey\Settings\SettingsFormGUI\checkForm(), ilPCSectionGUI\checkInput(), ilDidacticTemplateSettingsGUI\checkInput(), ilObjUserFolderGUI\confirmaccessRestrictObject(), ilObjStyleSheetGUI\copyStyleObject(), ilWebDAVMountInstructionsDocumentFormGUI\createFilledObject(), ilStudyProgrammeTypeCustomIconsFormGUI\fillForm(), ilOrgUnitPositionFormGUI\fillForm(), ilOrgUnitAuthorityFormGUI\fillObject(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\fillObject(), ilObjOrgUnitSettingsFormGUI\fillObject(), ilBiblFieldFilterFormGUI\fillObject(), ilAccessibilityCriterionFormGUI\fillObject(), ilSkillRootGUI\importSkills(), ilObjSCORMLearningModuleGUI\importTracking(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilMailTemplateGUI\insertTemplate(), ilRegistrationGUI\join(), ilExAssignmentEditorGUI\processForm(), ilExAssignmentEditorGUI\processPeerReviewForm(), ilMailOptionsFormGUI\save(), ilCalendarCategoryGUI\save(), ilCourseObjectivesGUI\save(), ilObjLinkResourceGUI\saveAddLink(), ilPCMediaObjectGUI\saveAliasProperties(), ilCertificateGUI\saveCertificate(), ilAdvancedMDSettingsGUI\saveField(), ilObjAdvancedEditingGUI\saveGeneralPageSettingsObject(), ilObjLinkResourceGUI\saveLinkList(), ilMediaPoolPageGUI\saveMediaPoolPage(), ilObjectCustomUserFieldsGUI\saveMember(), ilObjContentObjectGUI\saveMenuEntry(), ilObjContentObjectGUI\saveMenuProperties(), ilBiblLibraryFormGUI\saveObject(), ilAccessibilityDocumentFormGUI\saveObject(), ilContainerReferenceGUI\saveObject(), ilObjEmployeeTalkSeriesGUI\saveObject(), ilObjGlossaryGUI\saveObject(), ilObjStyleSheetGUI\saveObject(), ilContainerGUI\savePasswordObject(), ilObjContentObjectGUI\saveProperties(), ilCourseObjectivesGUI\saveRandom(), ilMembershipAdministrationGUI\saveSettings(), ilRTESettingsGUI\saveTags(), ilObjMediaPoolGUI\saveTitlesAndDescriptions(), ilExtIdGUI\update(), ilCalendarCategoryGUI\update(), ilWikiPageGUI\updateAdvancedMetaData(), ilObjStudyProgrammeGUI\updateAdvancedSettings(), ilObjOrgUnitGUI\updateAdvancedSettings(), ilAdvancedMDSettingsGUI\updateComplexOption(), ilBlogPostingGUI\updateDate(), ilAdvancedMDSettingsGUI\updateField(), ilObjCourseGUI\updateInfoObject(), ilObjLinkResourceGUI\updateLink(), ilMediaPoolPageGUI\updateMediaPoolPage(), ilObjContentObjectGUI\updateMenuEntry(), ilObjStudyProgrammeReferenceGUI\updateObject(), ilObjEmployeeTalkGUI\updateObject(), ilContainerReferenceGUI\updateObject(), ilObjGroupGUI\updateObject(), ilObjCourseGUI\updateObject(), ilObjCategoryGUI\updateObject(), ilPageLayoutGUI\updateProperties(), ilConsultationHoursGUI\updateSettings(), ilAdvancedMDSettingsGUI\updateSubstitutions(), ilMailTemplateGUI\updateTemplate(), ilBlogPostingGUI\updateTitle(), ilCalendarCategoryGUI\uploadAppointments(), and ilCustomUserFieldsGUI\validateForm().

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

◆ clearCommandButtons()

◆ executeCommand()

ilPropertyFormGUI::executeCommand ( )
Returns
mixed
Exceptions
ilCtrlException

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

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

101  {
102  $ilCtrl = $this->ctrl;
103 
104  $next_class = $ilCtrl->getNextClass($this);
105 
106  switch ($next_class) {
107  case 'ilformpropertydispatchgui':
108  $ilCtrl->saveParameter($this, 'postvar');
109  $form_prop_dispatch = new ilFormPropertyDispatchGUI();
110  $item = $this->getItemByPostVar($this->getRequestedPostVar());
111  $form_prop_dispatch->setItem($item);
112  return $ilCtrl->forwardCommand($form_prop_dispatch);
113  }
114  return false;
115  }
getItemByPostVar(string $a_post_var)
getNextClass($a_gui_class=null)
+ Here is the call graph for this function:

◆ getCommandButtons()

ilPropertyFormGUI::getCommandButtons ( )

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

References $buttons.

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

◆ getContent()

ilPropertyFormGUI::getContent ( )

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

References $DIC, $ilSetting, $lng, $settings, addItem(), checkForRequiredField(), getDescription(), getFileHash(), getMode(), ilFormGUI\getMultipart(), getShowTopButtons(), getTableWidth(), getTitle(), getTitleIcon(), ilYuiUtil\initDom(), ilYuiUtil\initEvent(), insertItem(), null, setTitle(), and ilLanguage\txt().

486  : string
487  {
488  global $DIC;
489  $lng = $this->lng;
490  $tpl = $DIC["tpl"];
492 
495 
496  $tpl->addJavaScript("assets/js/Basic.js");
497  $tpl->addJavaScript("assets/js/Form.js");
498 
499  $this->tpl = new ilTemplate("tpl.property_form.html", true, true, "components/ILIAS/Form");
500 
501  // check if form has not title and first item is a section header
502  // -> use section header for title and remove section header
503  // -> command buttons are presented on top
504  $fi = $this->items[0] ?? null;
505  if ($this->getMode() == "std" &&
506  $this->getTitle() == "" &&
507  is_object($fi) && $fi->getType() == "section_header"
508  ) {
509  $this->setTitle($fi->getTitle());
510  unset($this->items[0]);
511  }
512 
513 
514  // title icon
515  if ($this->getTitleIcon() != "" && is_file($this->getTitleIcon())) {
516  $this->tpl->setCurrentBlock("title_icon");
517  $this->tpl->setVariable("IMG_ICON", $this->getTitleIcon());
518  $this->tpl->parseCurrentBlock();
519  }
520 
521  // title
522  if ($this->getTitle() != "") {
523  // commands on top
524  if (count($this->buttons) > 0 && $this->getShowTopButtons() && (count($this->items) > 2 || $this->force_top_buttons)) {
525  // command buttons
526  foreach ($this->buttons as $button) {
527  $this->tpl->setCurrentBlock("cmd2");
528  $this->tpl->setVariable("CMD", $button["cmd"]);
529  $this->tpl->setVariable("CMD_TXT", $button["text"]);
530  if ($button["id"] != "") {
531  $this->tpl->setVariable("CMD2_ID", " id='" . $button["id"] . "_top'");
532  }
533  $this->tpl->parseCurrentBlock();
534  }
535  $this->tpl->setCurrentBlock("commands2");
536  $this->tpl->parseCurrentBlock();
537  }
538 
539  // required top
540  $this->tpl->setCurrentBlock("header");
541  if ($this->checkForRequiredField()) {
542  $this->tpl->setCurrentBlock("required_text_top");
543  $this->tpl->setVariable("TXT_REQUIRED_TOP", $lng->txt("required_field"));
544  $this->tpl->parseCurrentBlock();
545  }
546 
547  $this->tpl->setVariable("TXT_TITLE", $this->getTitle());
548  //$this->tpl->setVariable("LABEL", $this->getTopAnchor());
549  $this->tpl->setVariable("TXT_DESCRIPTION", $this->getDescription());
550  $this->tpl->parseCurrentBlock();
551  } elseif (!$this->required_text && $this->getMode() == "std") {
552  $this->tpl->setCurrentBlock("header");
553  // required top
554  $this->tpl->setCurrentBlock("required_text_top");
555  $this->tpl->setVariable("TXT_REQUIRED_TOP", $lng->txt("required_field"));
556  $this->tpl->parseCurrentBlock();
557  }
558  $this->tpl->touchBlock("item");
559 
560  // properties
561  $this->required_text = false;
562  foreach ($this->items as $item) {
563  if ($item->getType() != "hidden") {
564  $this->insertItem($item);
565  }
566  }
567 
568  // required
569  if ($this->required_text && $this->getMode() == "std") {
570  $this->tpl->setCurrentBlock("required_text");
571  $this->tpl->setVariable("TXT_REQUIRED", $lng->txt("required_field"));
572  $this->tpl->parseCurrentBlock();
573  }
574 
575  // command buttons
576  foreach ($this->buttons as $button) {
577  $this->tpl->setCurrentBlock("cmd");
578  $this->tpl->setVariable("CMD", $button["cmd"]);
579  $this->tpl->setVariable("CMD_TXT", $button["text"]);
580 
581  if ($button["id"] != "") {
582  $this->tpl->setVariable("CMD_ID", " id='" . $button["id"] . "'");
583  }
584 
585  $this->tpl->parseCurrentBlock();
586  }
587 
588  // #18808
589  if ($this->getMode() != "subform") {
590  // try to keep uploads even if checking input fails
591  if ($this->getMultipart()) {
592  $hash = $this->getFileHash() ?? null;
593  if (!$hash) {
594  $hash = md5(uniqid((string) mt_rand(), true));
595  }
596  $fhash = new ilHiddenInputGUI("ilfilehash");
597  $fhash->setValue($hash);
598  $this->addItem($fhash);
599  }
600  }
601 
602  // hidden properties
603  $hidden_fields = false;
604  foreach ($this->items as $item) {
605  if ($item->getType() == "hidden") {
606  $item->insert($this->tpl);
607  $hidden_fields = true;
608  }
609  }
610 
611  if ($this->required_text || count($this->buttons) > 0 || $hidden_fields) {
612  $this->tpl->setCurrentBlock("commands");
613  $this->tpl->parseCurrentBlock();
614  }
615 
616 
617  if ($this->getMode() == "subform") {
618  $this->tpl->touchBlock("sub_table");
619  } else {
620  $this->tpl->touchBlock("std_table");
621  $this->tpl->setVariable('STD_TABLE_WIDTH', $this->getTableWidth());
622  }
623 
624  return $this->tpl->get();
625  }
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...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static initDom(?ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Dom.
This class represents a hidden form property in a property form.
global $DIC
Definition: shib_login.php:26
insertItem( $item, bool $a_sub_item=false)
global $ilSetting
Definition: privfeed.php:31
static initEvent(?ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Event.
+ Here is the call graph for this function:

◆ getDescription()

ilPropertyFormGUI::getDescription ( )

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

References $description.

Referenced by getContent().

176  : string
177  {
178  return $this->description;
179  }
+ Here is the caller graph for this function:

◆ getDisableStandardMessage()

ilPropertyFormGUI::getDisableStandardMessage ( )

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

References $disable_standard_message.

Referenced by checkInput().

304  : bool
305  {
307  }
+ Here is the caller graph for this function:

◆ getFileHash()

ilPropertyFormGUI::getFileHash ( )
protected

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

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

Referenced by checkInput(), getContent(), and rebuildUploadedFiles().

427  : ?string
428  {
429  if (is_null($this->refinery)) {
430  return null;
431  }
432  // try to keep uploads for another try
433  $t = $this->refinery->kindlyTo()->string();
434  $w = $this->http->wrapper();
435  $filehash = null;
436  if ($w->post()->has("ilfilehash")) {
437  $filehash = $w->post()->retrieve("ilfilehash", $t);
438  }
439  return $filehash;
440  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static http()
Fetches the global http state from ILIAS.
+ Here is the call graph for this function:
+ Here is the caller 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 920 of file class.ilPropertyFormGUI.php.

References $res.

Referenced by ilUserProfile\addFieldToForm(), hasFileUpload(), and moveFileUpload().

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

◆ getForceTopButtons()

ilPropertyFormGUI::getForceTopButtons ( )

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

References $force_top_buttons.

206  : bool
207  {
209  }

◆ getHideLabels()

ilPropertyFormGUI::getHideLabels ( )

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

References $hide_labels.

Referenced by insertItem().

310  : bool
311  {
312  return $this->hide_labels;
313  }
+ Here is the caller graph for this function:

◆ getHTML()

ilPropertyFormGUI::getHTML ( )

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

References appendOnloadCode(), and ILIAS\Repository\ctrl().

Referenced by ilCalendarCategoryGUI\add(), ilObjFileGUI\addLegacyFormToAccordion(), ilObjLinkResourceGUI\addLink(), ilObjContentObjectGUI\addMenuEntry(), ilObjSessionGUI\attendanceListObject(), ilPCMediaObjectGUI\changeObjectReference(), ilCourseObjectivesGUI\create(), ilMediaPoolPageGUI\createMediaPoolPage(), ilContainerReferenceGUI\createObject(), ilChatroomAdminViewGUI\createSettingTemplate(), ilExtIdGUI\edit(), ilCalendarCategoryGUI\edit(), ilCourseObjectivesGUI\edit(), ilObjStudyProgrammeGUI\editAdvancedSettings(), ilObjOrgUnitGUI\editAdvancedSettings(), ilPCTableGUI\editCellAlignment(), ilPCTableGUI\editCellStyle(), ilObjGroupGUI\editInfoObject(), ilObjLinkResourceGUI\editLink(), ilObjGroupGUI\editMapSettingsObject(), ilObjCourseGUI\editMapSettingsObject(), ilMediaPoolPageGUI\editMediaPoolPage(), ilObjectCustomUserFieldsGUI\editMember(), ilObjContentObjectGUI\editMenuEntry(), ilObjContentObjectGUI\editMenuProperties(), ilObjEmployeeTalkGUI\editObject(), ilContainerReferenceGUI\editObject(), ilObjFolderGUI\editObject(), ilObjCourseGUI\editObject(), ilObjOrgUnitGUI\editSettings(), ilPCMediaObjectGUI\editStyle(), ilObjMediaPoolGUI\editTitlesAndDescriptions(), ilECSSettingsGUI\exportMappings(), ilLTIConsumeProviderFormGUI\getContentSelectionFrame(), ilObjLTIConsumerGUI\getCreationFormsHTML(), ilLTIConsumeProviderFormGUI\getDynRegError(), ilLTIConsumeProviderFormGUI\getDynRegRequest(), getHTMLAsync(), ilCalendarCategoryGUI\importAppointments(), ilECSSettingsGUI\importMappings(), ilSkillRootGUI\importSkills(), ilPageObjectGUI\initialOpenedContent(), ilPCMediaObjectGUI\insert(), ilWikiPageGUI\insertWikiLink(), ilObjUserFolderGUI\newAccountMailObject(), ilStyleCharacteristicGUI\outputTagStyleEditScreen(), assQuestionGUI\renderEditForm(), ilAuthShibbolethSettingsGUI\save(), ilObjLinkResourceGUI\saveAddLink(), ilCertificateGUI\saveCertificate(), ilObjAdvancedEditingGUI\saveGeneralPageSettingsObject(), ilContainerReferenceGUI\saveObject(), ilObjEmployeeTalkSeriesGUI\saveObject(), ilObjGlossaryGUI\saveObject(), ilAuthShibbolethSettingsGUI\settings(), ilConsultationHoursGUI\settings(), ilMailTemplateGUI\showEditTemplateForm(), ilObjAdvancedEditingGUI\showGeneralPageEditorSettingsObject(), ilMailTemplateGUI\showInsertTemplateForm(), ilChatroomHistoryGUI\showMessages(), ilMailOptionsGUI\showOptions(), ilCourseObjectivesGUI\showRandomTestAssignment(), ilObjSCORMLearningModuleGUI\trackingImportForm(), ilExtIdGUI\update(), ilObjStudyProgrammeGUI\updateAdvancedSettings(), ilObjOrgUnitGUI\updateAdvancedSettings(), ilObjLinkResourceGUI\updateLink(), ilObjCategoryGUI\updateObject(), ilObjOrgUnitGUI\updateSettings(), and ilConsultationHoursGUI\updateSettings().

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

◆ getHTMLAsync()

ilPropertyFormGUI::getHTMLAsync ( )

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

References appendOnloadCode(), ILIAS\Repository\ctrl(), and getHTML().

Referenced by ILIAS\COPage\Editor\Server\UIWrapper\getRenderedForm().

834  : string
835  {
836  $html = $this->getHTML();
837  if (!$this->ctrl->isAsynch()) {
838  $html = $this->appendOnloadCode($html);
839  }
840  return $html;
841  }
+ Here is the call graph for this function:
+ Here is the caller 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 449 of file class.ilPropertyFormGUI.php.

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

Referenced by ilObjEmployeeTalkGUI\addChangeDateButtonsToToolbar(), ilSurveyRaterGUI\addExternalRater(), ilSurveyRaterGUI\addRater(), ilAdvancedMDFieldDefinitionSelect\buildConfirmedObjects(), ILIAS\Survey\Settings\SettingsFormGUI\checkForm(), ilDidacticTemplateSettingsGUI\checkInput(), ilAssQuestionSkillAssignmentsGUI\checkPointsAreInt(), ilDclBaseFieldModel\checkUniqueProp(), ilDclTextFieldModel\checkValidityFromForm(), ilDclBooleanFieldModel\checkValidityFromForm(), ilDclBaseFieldModel\checkValidityFromForm(), ilPCTabsGUI\checkWidthHeight(), ilObjStyleSheetGUI\copyStyleObject(), ilWebDAVMountInstructionsDocumentFormGUI\createFilledObject(), ilEmployeeTalkAppointmentGUI\deleteTalks(), ilCmiXapiLP\fetchModeOption(), ilStudyProgrammeTypeCustomIconsFormGUI\fillForm(), ilOrgUnitPositionFormGUI\fillForm(), ilOrgUnitAuthorityFormGUI\fillObject(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\fillObject(), ilObjOrgUnitSettingsFormGUI\fillObject(), ilBiblFieldFilterFormGUI\fillObject(), ilAccessibilityCriterionFormGUI\fillObject(), ilBookingScheduleGUI\formToObject(), ilAccessibilityUserHasLanguageCriterionGUI\getConfigByForm(), ilCourseLPBadgeGUI\getConfigFromForm(), ilDclBaseFieldModel\getConfirmationGUI(), ilLTIConsumeProviderFormGUI\getDynRegRequest(), ILIAS\Survey\Settings\SettingsFormGUI\getTutorIdsFromForm(), ILIAS\Survey\Settings\SettingsFormGUI\getTutorResIdsFromForm(), ilECSObjectSettings\handleSettingsUpdate(), ilAdvancedMDFieldDefinitionGroupBased\importCustomDefinitionFormPostValues(), ilAdvancedMDFieldDefinitionFloat\importCustomDefinitionFormPostValues(), ilAdvancedMDFieldDefinitionInteger\importCustomDefinitionFormPostValues(), ilAdvancedMDFieldDefinitionText\importCustomDefinitionFormPostValues(), ilExcCriteriaText\importCustomForm(), ilAdvancedMDFieldDefinition\importDefinitionFormPostValues(), SurveyTextQuestionGUI\importEditFormValues(), SurveySingleChoiceQuestionGUI\importEditFormValues(), SurveyMetricQuestionGUI\importEditFormValues(), SurveyMultipleChoiceQuestionGUI\importEditFormValues(), SurveyMatrixQuestionGUI\importEditFormValues(), ilExAssTypePortfolioGUI\importFormToAssignment(), ilExAssTypeTextGUI\importFormToAssignment(), ilExAssTypeWikiTeamGUI\importFormToAssignment(), ilAdvancedMDFieldDefinitionSelect\importNewSelectOptions(), ilObjSCORMLearningModuleGUI\importTracking(), ilAdvancedMDFieldDefinitionSelect\importTranslatedFormPostValues(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilLTIConsumerSettingsFormGUI\initObject(), ilLTIConsumeProviderFormGUI\initProvider(), ilMailTemplateGUI\insertTemplate(), ilObjCourseReferenceGUI\loadPropertiesFromSettingsForm(), ilContainerReferenceGUI\loadPropertiesFromSettingsForm(), ilAdvancedMDSettingsGUI\loadRecordFormData(), ilEmployeeTalkAppointmentGUI\loadRecurrenceSettings(), ilAdvancedMDFieldDefinition\prepareDefinitionFormConfirmation(), ilExAssignmentEditorGUI\processForm(), ilExAssignmentEditorGUI\processPeerReviewForm(), ilConsultationHoursGUI\rewriteBookingIdsForAppointments(), ilMailOptionsFormGUI\save(), ilCalendarCategoryGUI\save(), ilCourseObjectivesGUI\save(), ilPCMediaObjectGUI\saveAliasProperties(), ilCertificateGUI\saveCertificate(), ilObjCourseAdministrationGUI\saveChildSettings(), assOrderingHorizontalGUI\saveCorrectionsFormProperties(), assFileUploadGUI\saveCorrectionsFormProperties(), assNumericGUI\saveCorrectionsFormProperties(), assErrorTextGUI\saveCorrectionsFormProperties(), assLongMenuGUI\saveCorrectionsFormProperties(), assOrderingQuestionGUI\saveCorrectionsFormProperties(), assKprimChoiceGUI\saveCorrectionsFormProperties(), ilMemberAgreementGUI\saveCourseDefinedFields(), ilConsultationHourCron\saveCustomSettings(), ilCleanCOPageHistoryCronjob\saveCustomSettings(), ilSCCronTrash\saveCustomSettings(), ilLoggerCronCleanErrorFiles\saveCustomSettings(), ilCronOerHarvester\saveCustomSettings(), ilMailCronOrphanedMails\saveCustomSettings(), ilForumCronNotification\saveCustomSettings(), ILIAS\ILIASObject\Properties\AdditionalProperties\Icon\ConfigurationGUI\saveForm(), ILIAS\Survey\Settings\SettingsFormGUI\saveForm(), ilObjAdvancedEditingGUI\saveGeneralPageSettingsObject(), ilAssQuestionFeedback\saveGenericFormProperties(), ILIAS\LegalDocuments\ConsumerToolbox\ConsumerSlots\SelfRegistration\saveLegacyForm(), ilObjLinkResourceGUI\saveLinkList(), ilContainerGUI\saveListPresentation(), ilMediaPoolPageGUI\saveMediaPoolPage(), ilObjContentObjectGUI\saveMenuEntry(), ilObjContentObjectGUI\saveMenuProperties(), assClozeTestGUI\saveNumericGapCorrectionFormProperty(), ilBiblLibraryFormGUI\saveObject(), ilAccessibilityDocumentFormGUI\saveObject(), ilContainerReferenceGUI\saveObject(), ilObjEmployeeTalkSeriesGUI\saveObject(), ilObjGlossaryGUI\saveObject(), ilObjStyleSheetGUI\saveObject(), ilHelpGUI\savePersonalSettingFromLegacyForm(), ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\Extract\Video\GUIService\savePreviewInput(), ilObjContentObjectGUI\saveProperties(), ilCourseObjectivesGUI\saveRandom(), ilCmiXapiRegistrationGUI\saveRegistration(), ilLTIProviderObjectSettingGUI\saveRoleSelection(), ILIAS\LearningModule\ReadingTime\SettingsGUI\saveSettingFromForm(), ILIAS\Blog\ReadingTime\BlogSettingsGUI\saveSettingFromForm(), ilMembershipAdministrationGUI\saveSettings(), ilCmiXapiSettingsGUI\saveSettings(), ilContainerGUI\saveSortingSettings(), ilAssConfigurableMultiOptionQuestionFeedback\saveSpecificFormProperties(), ilAssMultiOptionQuestionFeedback\saveSpecificFormProperties(), ilRTESettingsGUI\saveTags(), ilStyleCharacteristicGUI\saveTagStyle(), ilObjMediaPoolGUI\saveTitlesAndDescriptions(), ilDclTextRecordFieldModel\setValueFromForm(), ilDclCopyRecordFieldModel\setValueFromForm(), ilDclBaseRecordFieldModel\setValueFromForm(), ILIAS\Survey\Mode\SelfEvaluation\UIModifier\setValuesFromForm(), ILIAS\Survey\Mode\Standard\UIModifier\setValuesFromForm(), ILIAS\Survey\Mode\IndividualFeedback\UIModifier\setValuesFromForm(), ILIAS\Survey\Mode\Feedback360\UIModifier\setValuesFromForm(), ilPCSectionGUI\setValuesFromForm(), ilDclBaseFieldModel\storePropertiesFromForm(), ilPCLearningHistoryGUI\update(), ilCalendarCategoryGUI\update(), ilObjTalkTemplateGUI\updateCustom(), ilObjPollGUI\updateCustom(), ilObjPortfolioBaseGUI\updateCustom(), ilObjPortfolioTemplateGUI\updateCustom(), ilObjItemGroupGUI\updateCustom(), ilObjPortfolioGUI\updateCustom(), ilObjExerciseGUI\updateCustom(), ilObjContentPageGUI\updateCustom(), ilForumSettingsGUI\updateCustomValues(), ilAdvancedMDFieldTranslations\updateFromForm(), ilObjCourseGUI\updateInfoObject(), ilObjLinkResourceGUI\updateLink(), ilMediaPoolPageGUI\updateMediaPoolPage(), ilObjContentObjectGUI\updateMenuEntry(), ilObjStudyProgrammeReferenceGUI\updateObject(), ilObjEmployeeTalkGUI\updateObject(), ilObjGroupGUI\updateObject(), ilObjCourseGUI\updateObject(), ilObjCategoryGUI\updateObject(), ilPageLayoutGUI\updateProperties(), ilObjectServiceSettingsGUI\updateServiceSettingsForm(), ilConsultationHoursGUI\updateSettings(), ilAdvancedMDSettingsGUI\updateSubstitutions(), ilMailTemplateGUI\updateTemplate(), ilBlogPostingGUI\updateTitle(), ilObjOrgUnitSettingsFormGUI\updateTranslation(), ilCalendarCategoryGUI\uploadAppointments(), ilObjEmployeeTalkGUI\validateCustom(), ilObjPollGUI\validateCustom(), SurveyMultipleChoiceQuestionGUI\validateEditForm(), ilCourseLPBadgeGUI\validateForm(), ilCustomUserFieldsGUI\validateForm(), and assLongMenuGUI\writeQuestionSpecificPostData().

452  {
453  // this check ensures, that checkInput has been called (incl. stripSlashes())
454  if (!$this->check_input_called && $ensureValidation) {
455  throw new LogicException('Error: ilPropertyFormGUI->getInput() called without calling checkInput() first.');
456  }
457 
458  $item = $this->getItemByPostVar($a_post_var);
459  if (is_object($item) && method_exists($item, "getInput")) {
460  return $item->getInput();
461  }
462 
463  $post = $this->http->request()->getParsedBody();
464  return $post[$a_post_var] ?? '';
465  }
getItemByPostVar(string $a_post_var)
static http()
Fetches the global http state from ILIAS.
$post
Definition: ltitoken.php:46
+ 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 280 of file class.ilPropertyFormGUI.php.

Referenced by ilTestSettingsChangeConfirmationGUI\populateParametersFromPropertyForm().

280  : array
281  {
282  $inputItems = array();
283 
284  foreach ($this->items as $item) {
285  if ($item->getType() == 'section_header') {
286  continue;
287  }
288 
289  $inputItems[] = $item;
290 
291  if ($item instanceof ilSubEnabledFormPropertyGUI) {
292  $inputItems = array_merge($inputItems, $item->getSubInputItemsRecursive());
293  }
294  }
295 
296  return $inputItems;
297  }
This class represents a property that may include a sub form.
+ Here is the caller graph for this function:

◆ getItemByPostVar()

ilPropertyFormGUI::getItemByPostVar ( string  $a_post_var)

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

References null.

Referenced by assMultipleChoiceGUI\addBasicQuestionFormProperties(), ilCronDeleteInactiveUserAccounts\addCustomSettingsToForm(), appendOnloadCode(), ilTestRandomQuestionSetPoolDefinitionFormGUI\applySubmit(), ILIAS\Survey\Settings\SettingsFormGUI\checkForm(), ilPCSectionGUI\checkInput(), checkInput(), ilDclBaseFieldModel\checkUniqueProp(), ilPCTabsGUI\checkWidthHeight(), ilObjUserFolderGUI\confirmaccessRestrictObject(), ilEmployeeTalkAppointmentGUI\deleteTalks(), assMultipleChoiceGUI\editQuestion(), executeCommand(), ilExcCriteriaText\exportCustomForm(), ilExcCriteriaCatalogueGUI\exportForm(), ilExcCriteriaGUI\exportForm(), assOrderingQuestionGUI\fetchSolutionListFromSubmittedForm(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\fillForm(), ilStudyProgrammeTypeCustomIconsFormGUI\fillForm(), ilDclBaseRecordRepresentation\fillFormInput(), ilDclTextRecordRepresentation\fillFormInput(), ilAccessibilityCriterionFormGUI\fillObject(), ilDclBaseRecordModel\fillStandardFieldFormInput(), ILIAS\Test\Settings\TestSettingsGUI\formPropertyExists(), ilBookingScheduleGUI\formToObject(), ilExAssignmentEditorGUI\getAssignmentValues(), ilLTIConsumeProviderFormGUI\getDynRegRequest(), ilWebDAVMountInstructionsDocumentFormGUI\getFileUploadResult(), getInput(), ilAssOrderingQuestionAuthoringFormGUI\getOrderingElementInputField(), ilWebDAVMountInstructionsDocumentFormGUI\getRawMountInstructionsFromFileUpload(), ilStyleCharacteristicGUI\getValues(), ilNewsItemGUI\getValuesNewsItem(), ilExAssignmentEditorGUI\handleDisabledFields(), ilExAssignmentEditorGUI\handleDisabledPeerFields(), ilUserProfileBadgeGUI\importConfigToForm(), ilCourseLPBadgeGUI\importConfigToForm(), ilAdvancedMDFieldDefinition\importDefinitionFormPostValues(), ilObjContentPageGUI\initEditCustomForm(), ilAssClozeTestFeedback\initFbPropsForNumericGap(), ilAssClozeTestFeedback\initFbPropsForSelectGap(), ilAssClozeTestFeedback\initFbPropsForTextGap(), ilAssClozeTestFeedback\initFeedbackFieldsPerGapQuestion(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilAssQuestionFeedback\initGenericFormProperties(), ilLTIConsumeProviderFormGUI\initProvider(), ilAssConfigurableMultiOptionQuestionFeedback\initSpecificFormProperties(), ilAssMultiOptionQuestionFeedback\initSpecificFormProperties(), ilAssClozeTestFeedback\initSpecificFormProperties(), ilMailTemplateGUI\insertTemplate(), assMatchingQuestionGUI\isValidTermAndDefinitionAmount(), ilObjCourseReferenceGUI\loadPropertiesFromSettingsForm(), ilContainerReferenceGUI\loadPropertiesFromSettingsForm(), ilEmployeeTalkAppointmentGUI\loadRecurrenceSettings(), ilAdvancedMDFieldDefinitionSelect\prepareCustomDefinitionFormConfirmation(), ilAdvancedMDFieldDefinition\prepareDefinitionFormConfirmation(), assOrderingQuestionGUI\prepareReprintableCorrectionsForm(), ilExAssignmentEditorGUI\processForm(), ilExAssignmentEditorGUI\processPeerReviewForm(), ilAssOrderingQuestionAuthoringFormGUI\renewOrderingElementInput(), ilMailOptionsFormGUI\save(), ilTestRandomQuestionSetGeneralConfigFormGUI\save(), assTextSubsetGUI\saveCorrectionsFormProperties(), assSingleChoiceGUI\saveCorrectionsFormProperties(), assImagemapQuestionGUI\saveCorrectionsFormProperties(), assKprimChoiceGUI\saveCorrectionsFormProperties(), assMultipleChoiceGUI\saveCorrectionsFormProperties(), ilCronDeleteNeverLoggedInUserAccounts\saveCustomSettings(), ilCronDeleteInactiveUserAccounts\saveCustomSettings(), ilAssClozeTestFeedback\saveFbPropsForNumericGap(), ilAssClozeTestFeedback\saveFbPropsForSelectGap(), ilAssClozeTestFeedback\saveFbPropsForTextGap(), ilAssClozeTestFeedback\saveFeedbackFieldsPerGapQuestion(), ILIAS\ILIASObject\Properties\AdditionalProperties\Icon\ConfigurationGUI\saveForm(), ILIAS\Survey\Settings\SettingsFormGUI\saveForm(), assClozeTestGUI\saveGapCombinationCorrectionFormProperties(), ilObjAdvancedEditingGUI\saveGeneralPageSettingsObject(), ILIAS\LegalDocuments\ConsumerToolbox\ConsumerSlots\SelfRegistration\saveLegacyForm(), ilObjUserFolderGUI\saveNewAccountMailObject(), ilAccessibilityDocumentFormGUI\saveObject(), ilAccessibilityCriterionFormGUI\saveObject(), ilObjEmployeeTalkSeriesGUI\saveObject(), ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\Extract\Video\GUIService\savePreviewInput(), ilAssClozeTestFeedback\saveSpecificFormProperties(), ilStyleCharacteristicGUI\saveTagStyle(), assClozeTestGUI\saveTextOrSelectGapCorrectionFormProperty(), ilBadgeManagementGUI\setBadgeFormValues(), ilMemberAgreementGUI\setCourseDefinedFieldValues(), ilExAssignmentEditorGUI\setDisabledFieldValues(), ilExAssignmentEditorGUI\setDisabledPeerReviewFieldValues(), ilSessionMembershipRegistrationSettingsGUI\setFormValues(), ilObjBadgeAdministrationGUI\setImageTemplateFormValues(), ilDclBaseRecordModel\setStandardFieldFromForm(), ilDclFileRecordFieldModel\setValueFromForm(), ilPCSectionGUI\setValuesFromForm(), ilExtIdGUI\update(), ilPCLearningHistoryGUI\update(), ilObjPollGUI\updateCustom(), ilObjPortfolioTemplateGUI\updateCustom(), ilBlogPostingGUI\updateDate(), ilObjCourseGUI\updateInfoObject(), ilObjGroupGUI\updateObject(), ilObjCourseGUI\updateObject(), ilConsultationHoursGUI\updateSettings(), ilMailTemplateGUI\updateTemplate(), ilObjPollGUI\validateCustom(), SurveyMultipleChoiceQuestionGUI\validateEditForm(), ilCourseLPBadgeGUI\validateForm(), ilCustomUserFieldsGUI\validateForm(), assImagemapQuestionGUI\writeAnswerSpecificPostData(), assKprimChoiceGUI\writeAnswerSpecificPostData(), assKprimChoiceGUI\writeQuestionSpecificPostData(), and assMultipleChoiceGUI\writeQuestionSpecificPostData().

252  {
253  foreach ($this->items as $item) {
254  if ($item->getType() != "section_header") {
255  //if ($item->getPostVar() == $a_post_var)
256  $ret = $item->getItemByPostVar($a_post_var);
257  if (is_object($ret)) {
258  return $ret;
259  }
260  }
261  }
262 
263  return null;
264  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the caller graph for this function:

◆ getItems()

ilPropertyFormGUI::getItems ( )

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

References $items.

Referenced by ilUserFormSettings\exportToForm(), ilUserFormSettings\importFromForm(), and ilAssQuestionAuthoringFormGUI\replaceFormItemByPostVar().

271  : array
272  {
273  return $this->items;
274  }
+ Here is the caller graph for this function:

◆ getMode()

ilPropertyFormGUI::getMode ( )

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

References $mode.

Referenced by checkForRequiredField(), getContent(), and insertItem().

146  : string
147  {
148  return $this->mode;
149  }
+ Here is the caller graph for this function:

◆ getRequestedPostVar()

ilPropertyFormGUI::getRequestedPostVar ( )
protected

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

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

Referenced by executeCommand().

117  : ?string
118  {
119  $t = $this->refinery->kindlyTo()->string();
120  $w = $this->http->wrapper();
121  if ($w->post()->has("postvar")) {
122  return $w->post()->retrieve("postvar", $t);
123  }
124  if ($w->query()->has("postvar")) {
125  return $w->query()->retrieve("postvar", $t);
126  }
127  return null;
128  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static http()
Fetches the global http state from ILIAS.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getShowTopButtons()

ilPropertyFormGUI::getShowTopButtons ( )

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

References $show_top_buttons.

Referenced by getContent().

196  : bool
197  {
199  }
+ Here is the caller graph for this function:

◆ getTableWidth()

ilPropertyFormGUI::getTableWidth ( )
final

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

References $tbl_width.

Referenced by getContent().

135  : string
136  {
137  return $this->tbl_width;
138  }
+ Here is the caller graph for this function:

◆ getTitle()

ilPropertyFormGUI::getTitle ( )

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

References $title.

Referenced by ilObjFileGUI\addLegacyFormToAccordion(), getContent(), and ilObjLTIConsumerGUI\getCreationFormsHTML().

156  : string
157  {
158  return $this->title;
159  }
+ Here is the caller graph for this function:

◆ getTitleIcon()

ilPropertyFormGUI::getTitleIcon ( )

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

References $titleicon.

Referenced by getContent().

166  : string
167  {
168  return $this->titleicon;
169  }
+ Here is the caller graph for this function:

◆ getTopAnchor()

ilPropertyFormGUI::getTopAnchor ( )

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

References $top_anchor.

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

◆ hasFileUpload()

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

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

References $data, and getFileUpload().

967  : bool {
968  $data = $this->getFileUpload($a_field, $a_index, $a_sub_index);
969  return (bool) ($data["tmp_name"] ?? false);
970  }
getFileUpload(string $a_field, ?string $a_index=null, ?string $a_sub_index=null)
Get file upload data.
+ Here is the call graph for this function:

◆ hideRequired()

ilPropertyFormGUI::hideRequired ( string  $a_type)
protected

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

Referenced by checkForRequiredField(), and insertItem().

627  : bool
628  {
629  // #15818
630  return $a_type == "non_editable_value";
631  }
+ Here is the caller graph for this function:

◆ insertItem()

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

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

References $DIC, $lng, addAsyncOnloadCode(), addItem(), getHideLabels(), ilUtil\getImagePath(), getMode(), hideRequired(), null, ilTemplate\setCurrentBlock(), ilFormGUI\setMultipart(), ilHiddenInputGUI\setValue(), and ilLanguage\txt().

Referenced by getContent().

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

◆ 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 983 of file class.ilPropertyFormGUI.php.

References $data, getFileUpload(), ilFileUtils\moveUploadedFile(), and ilFileUtils\rename().

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

◆ rebuildUploadedFiles()

ilPropertyFormGUI::rebuildUploadedFiles ( )
protected

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

References ilFormGUI\$name, ilFileUtils\getDataDir(), and getFileHash().

Referenced by __construct().

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

References null.

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

223  : void {
224  foreach ($this->items as $key => $item) {
225  if (method_exists($item, "getPostVar") && $item->getPostVar() == $a_post_var) {
226  unset($this->items[$key]);
227  }
228  }
229 
230  // remove section headers if they do not contain any items anymore
231  if ($a_remove_unused_headers) {
232  $unset_keys = array();
233  $last_item = null;
234  $last_key = null;
235  foreach ($this->items as $key => $item) {
236  if ($item instanceof ilFormSectionHeaderGUI && $last_item instanceof ilFormSectionHeaderGUI) {
237  $unset_keys[] = $last_key;
238  }
239  $last_item = $item;
240  $last_key = $key;
241  }
242  if ($last_item instanceof ilFormSectionHeaderGUI) {
243  $unset_keys[] = $last_key;
244  }
245  foreach ($unset_keys as $key) {
246  unset($this->items[$key]);
247  }
248  }
249  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the caller graph for this function:

◆ setDescription()

ilPropertyFormGUI::setDescription ( string  $a_val)

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

Referenced by ilAdvancedMDSettingsGUI\initFieldForm(), and ilObjUserFolderGUI\initNewAccountMailForm().

171  : void
172  {
173  $this->description = $a_val;
174  }
+ Here is the caller graph for this function:

◆ setDisableStandardMessage()

ilPropertyFormGUI::setDisableStandardMessage ( bool  $a_val)

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

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

◆ setForceTopButtons()

ilPropertyFormGUI::setForceTopButtons ( bool  $a_val)

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

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

◆ setHideLabels()

ilPropertyFormGUI::setHideLabels ( bool  $a_value = true)

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

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

◆ setItems()

ilPropertyFormGUI::setItems ( array  $a_items)

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

Referenced by ilAssQuestionAuthoringFormGUI\replaceFormItemByPostVar().

266  : void
267  {
268  $this->items = $a_items;
269  }
+ Here is the caller graph for this function:

◆ setMode()

ilPropertyFormGUI::setMode ( string  $a_mode)

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

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

◆ setShowTopButtons()

ilPropertyFormGUI::setShowTopButtons ( bool  $a_val)

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

Referenced by ilPCDataTableGUI\initCellPropertiesForm(), ilPCDataTableGUI\initCreationForm(), ilPCDataTableGUI\initEditingForm(), and ilPCDataTableGUI\initImportForm().

191  : void
192  {
193  $this->show_top_buttons = $a_val;
194  }
+ Here is the caller graph for this function:

◆ setTableWidth()

ilPropertyFormGUI::setTableWidth ( string  $a_width)
final

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

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

130  : void
131  {
132  $this->tbl_width = $a_width;
133  }
+ Here is the caller graph for this function:

◆ setTitle()

ilPropertyFormGUI::setTitle ( string  $a_title)

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

Referenced by FormMailCodesGUI\__construct(), ilObjFileGUI\addLegacyFormToAccordion(), ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilAssQuestionSkillAssignmentPropertyFormGUI\build(), assMultipleChoiceGUI\buildEditForm(), ilPCTableGUI\editCellAlignment(), ilPCTableGUI\editCellStyle(), ilObjGroupGUI\editMapSettingsObject(), ilObjCourseGUI\editMapSettingsObject(), ilPCMediaObjectGUI\editStyle(), ilForumThreadFormGUI\generateInputItems(), ilObjStyleSheetGUI\getCloneForm(), getContent(), ilLTIConsumeProviderFormGUI\getContentSelectionFrame(), ilObjStyleSheetGUI\getCreateForm(), ilForumSettingsGUI\getCustomForm(), ilLTIConsumeProviderFormGUI\getDynRegError(), ilObjStyleSheetGUI\getImportForm(), ilMailTemplateGUI\getTemplateForm(), ilMailOptionsFormGUI\init(), ilObjUserFolderGUI\initAccessRestrictionForm(), ilWikiPageGUI\initAdvancedMetaDataForm(), ILIAS\components\OrgUnit\ARHelper\BaseForm\initButtons(), ilOrgUnitPositionFormGUI\initButtons(), ilPCDataTableGUI\initCellPropertiesForm(), ilAdvancedMDSettingsGUI\initComplexOptionForm(), ilObjEmployeeTalkSeriesGUI\initCreateForm(), ilObjSAHSLearningModuleGUI\initCreateForm(), ilObjGlossaryGUI\initCreateForm(), ilPCDataTableGUI\initCreationForm(), ilBlogPostingGUI\initDateForm(), ilLTIConsumeProviderFormGUI\initDynRegForm(), ilObjFolderGUI\initEditForm(), ilObjRootFolderGUI\initEditForm(), ilObjCategoryGUI\initEditForm(), ilObjCourseGUI\initEditForm(), ilContainerGUI\initEditForm(), ilPCDataTableGUI\initEditingForm(), ilAdvancedMDSettingsGUI\initFieldForm(), ilWebDAVMountInstructionsDocumentFormGUI\initForm(), ilLTIConsumerSettingsFormGUI\initForm(), ilBiblFieldFilterFormGUI\initForm(), ilBiblLibraryFormGUI\initForm(), ilLTIConsumeProviderFormGUI\initForm(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilAccessibilityDocumentFormGUI\initForm(), ilStudyProgrammeTypeCustomIconsFormGUI\initForm(), ilRegistrationSettingsGUI\initForm(), ilContainerReferenceGUI\initForm(), ilObjGroupGUI\initForm(), ilCourseObjectivesGUI\initFormRandom(), ilMembershipAdministrationGUI\initFormSettings(), ilObjAdvancedEditingGUI\initGeneralPageSettingsForm(), ilPCDataTableGUI\initImportForm(), ilCalendarCategoryGUI\initImportForm(), ilObjCourseGUI\initInfoEditor(), ilObjGroupGUI\initInfoEditor(), ilSkillRootGUI\initInputForm(), ilECSSettingsGUI\initMappingsForm(), ilMediaPoolPageGUI\initMediaPoolPageForm(), ilObjectCustomUserFieldsGUI\initMemberForm(), ilObjContentObjectGUI\initMenuEntryForm(), ilObjContentObjectGUI\initMenuForm(), ilObjUserFolderGUI\initNewAccountMailForm(), ilPageObjectGUI\initOpenedContentForm(), ilConsultationHoursGUI\initSettingsForm(), ilBlogPostingGUI\initTitleForm(), ilLTIConsumeProviderFormGUI\initToolConfigForm(), ilObjSCORMLearningModuleGUI\initTrackingImportForm(), ilObjExerciseGUI\listAssignmentsObject(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\saveObject(), ilObjOrgUnitSettingsFormGUI\saveObject(), ilObjContentObjectGUI\saveProperties(), ilObjMediaObjectGUI\savePropertiesObject(), ilObjEmployeeTalkGUI\sendUpdateNotification(), and ilAccessibilityCriterionFormGUI\setCheckInputCalled().

151  : void
152  {
153  $this->title = $a_title;
154  }
+ Here is the caller graph for this function:

◆ setTitleIcon()

ilPropertyFormGUI::setTitleIcon ( string  $a_titleicon)

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

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

161  : void
162  {
163  $this->titleicon = $a_titleicon;
164  }
+ Here is the caller graph for this function:

◆ setTopAnchor()

ilPropertyFormGUI::setTopAnchor ( string  $a_val)

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

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

◆ setValuesByArray()

◆ setValuesByPost()

ilPropertyFormGUI::setValuesByPost ( )

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

References $DIC, and null.

Referenced by ilDidacticTemplateSettingsGUI\checkInput(), ilBiblLibraryGUI\create(), ilStudyProgrammeTypeCustomIconsFormGUI\fillForm(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\fillObject(), ilObjOrgUnitSettingsFormGUI\fillObject(), ilDidacticTemplateSettingsGUI\handleUpdateFailure(), ilSkillRootGUI\importSkills(), ilObjSCORMLearningModuleGUI\importTracking(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilMailTemplateGUI\insertTemplate(), ilRegistrationGUI\join(), ilAuthShibbolethSettingsGUI\save(), ilCalendarCategoryGUI\save(), ilCourseObjectivesGUI\save(), ilCertificateGUI\saveCertificate(), ilAdvancedMDSettingsGUI\saveField(), ilObjAdvancedEditingGUI\saveGeneralPageSettingsObject(), ilObjLinkResourceGUI\saveLinkList(), ilMediaPoolPageGUI\saveMediaPoolPage(), ilObjectCustomUserFieldsGUI\saveMember(), ilObjContentObjectGUI\saveMenuEntry(), ilWebDAVMountInstructionsDocumentFormGUI\saveObject(), ilAccessibilityDocumentFormGUI\saveObject(), ilContainerReferenceGUI\saveObject(), ilAccessibilityCriterionFormGUI\saveObject(), ilObjEmployeeTalkSeriesGUI\saveObject(), ilObjGlossaryGUI\saveObject(), ilContainerGUI\savePasswordObject(), ilCourseObjectivesGUI\saveRandom(), ilMembershipAdministrationGUI\saveSettings(), ilMailOptionsGUI\showOptions(), ilExtIdGUI\update(), ilCalendarCategoryGUI\update(), ilBlogPostingGUI\updateDate(), ilAdvancedMDSettingsGUI\updateField(), ilObjCourseGUI\updateInfoObject(), ilObjLinkResourceGUI\updateLink(), ilMediaPoolPageGUI\updateMediaPoolPage(), ilObjContentObjectGUI\updateMenuEntry(), ilWebDAVMountInstructionsDocumentFormGUI\updateObject(), ilObjEmployeeTalkGUI\updateObject(), ilContainerReferenceGUI\updateObject(), ilObjGroupGUI\updateObject(), ilObjCourseGUI\updateObject(), ilObjCategoryGUI\updateObject(), ilPageLayoutGUI\updateProperties(), ilMailTemplateGUI\updateTemplate(), and ilBlogPostingGUI\updateTitle().

333  {
334  global $DIC;
335 
336  if (!isset($DIC["http"])) {
337  return null;
338  }
339 
340  foreach ($this->items as $item) {
341  $item->setValueByArray($DIC->http()->request()->getParsedBody());
342  }
343  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
global $DIC
Definition: shib_login.php:26
+ Here is the caller graph for this function:

Field Documentation

◆ $buttons

array ilPropertyFormGUI::$buttons = array()
private

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

Referenced by getCommandButtons().

◆ $check_input_called

bool ilPropertyFormGUI::$check_input_called = false
protected

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

◆ $ctrl

◆ $description

string ilPropertyFormGUI::$description = ""
protected

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

Referenced by getDescription().

◆ $disable_standard_message

bool ilPropertyFormGUI::$disable_standard_message = false
protected

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

Referenced by getDisableStandardMessage().

◆ $force_top_buttons

bool ilPropertyFormGUI::$force_top_buttons = false
protected

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

Referenced by getForceTopButtons().

◆ $global_tpl

ilGlobalTemplateInterface ilPropertyFormGUI::$global_tpl = null
protected

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

◆ $hide_labels

bool ilPropertyFormGUI::$hide_labels = false
protected

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

Referenced by getHideLabels().

◆ $http

HTTP Services ilPropertyFormGUI::$http
protected

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

◆ $items

array ilPropertyFormGUI::$items = array()
private

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

Referenced by getItems().

◆ $kept_uploads

array ilPropertyFormGUI::$kept_uploads = []
private

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

◆ $lng

◆ $mode

string ilPropertyFormGUI::$mode = "std"
protected

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

Referenced by getMode().

◆ $onload_code

ilPropertyFormGUI::$onload_code = []
protected

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

◆ $refinery

Refinery Factory ilPropertyFormGUI::$refinery = null
protected

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

◆ $required_text

bool ilPropertyFormGUI::$required_text = false
protected

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

◆ $settings

ilSetting ilPropertyFormGUI::$settings = null
protected

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

Referenced by FormMailCodesGUI\__construct(), and getContent().

◆ $show_top_buttons

bool ilPropertyFormGUI::$show_top_buttons = true
protected

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

Referenced by getShowTopButtons().

◆ $tbl_width

string ilPropertyFormGUI::$tbl_width = ""
protected

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

Referenced by getTableWidth().

◆ $title

◆ $titleicon

string ilPropertyFormGUI::$titleicon = ""
protected

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

Referenced by getTitleIcon().

◆ $top_anchor

string ilPropertyFormGUI::$top_anchor = "il_form_top"
protected

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

Referenced by getTopAnchor().

◆ $tpl

◆ $user


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