ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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

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

Constructor & Destructor Documentation

◆ __construct()

ilPropertyFormGUI::__construct ( )

Definition at line 58 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().

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  }
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:22
+ Here is the call graph for this function:

Member Function Documentation

◆ addAsyncOnloadCode()

ilPropertyFormGUI::addAsyncOnloadCode ( string  $code)

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

Referenced by insertItem().

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

◆ addCommandButton()

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

Definition at line 466 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(), ilObjAdvancedEditingGUI\getTinyForm(), 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(), ilDclTableViewEditFormGUI\initForm(), ilWebDAVMountInstructionsDocumentFormGUI\initForm(), ilLTIConsumerSettingsFormGUI\initForm(), ilBiblLibraryFormGUI\initForm(), ilLTIConsumeProviderFormGUI\initForm(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilAccessibilityDocumentFormGUI\initForm(), ilExtIdGUI\initForm(), ilStudyProgrammeTypeCustomIconsFormGUI\initForm(), ilRegistrationSettingsGUI\initForm(), ilContainerReferenceGUI\initForm(), ilObjGroupGUI\initForm(), ilCalendarAppointmentGUI\initFormConfirmBooking(), 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(), ilObjAdvancedEditingGUI\initTagsForm(), ilBlogPostingGUI\initTitleForm(), ilLTIConsumeProviderFormGUI\initToolConfigForm(), ilObjSCORMLearningModuleGUI\initTrackingImportForm(), ilPCMediaObjectGUI\insert(), ilWikiPageGUI\insertWikiLink(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\saveObject(), ilObjOrgUnitSettingsFormGUI\saveObject(), ilObjEmployeeTalkGUI\sendUpdateNotification(), and ilAccessibilityCriterionFormGUI\setCheckInputCalled().

470  : void {
471  $this->buttons[] = array("cmd" => $a_cmd, "text" => $a_text, "id" => $a_id);
472  }
+ 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.

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(), ilObjRemoteGroupGUI\addCustomEditForm(), ilObjRemoteCourseGUI\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(), ilSamlSettingsGUI\addMetadataElement(), 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(), ilObjAdvancedEditingGUI\getTinyForm(), 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(), ilDclTableViewEditFormGUI\initForm(), 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(), ilCalendarAppointmentGUI\initFormConfirmBooking(), 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(), ilObjAdvancedEditingGUI\initTagsForm(), 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().

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

◆ appendOnloadCode()

ilPropertyFormGUI::appendOnloadCode ( string  $html)
protected

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

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

Referenced by getHTML(), and getHTMLAsync().

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

◆ checkForRequiredField()

ilPropertyFormGUI::checkForRequiredField ( )
protected

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

References getMode(), and hideRequired().

Referenced by getContent().

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

◆ checkInput()

ilPropertyFormGUI::checkInput ( )

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

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

Referenced by ilCalendarAppointmentGUI\bookconfirmed(), 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(), ilObjSCORMLearningModuleGUI\import(), ilSkillRootGUI\importSkills(), 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(), ilObjAdvancedEditingGUI\saveSettingsObject(), ilObjAdvancedEditingGUI\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(), 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().

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  }
getItemByPostVar(string $a_post_var)
static http()
Fetches the global http state from ILIAS.
global $DIC
Definition: shib_login.php:22
$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 99 of file class.ilPropertyFormGUI.php.

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

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  }
getItemByPostVar(string $a_post_var)
getNextClass($a_gui_class=null)
+ Here is the call graph for this function:

◆ getCommandButtons()

ilPropertyFormGUI::getCommandButtons ( )

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

References $buttons.

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

◆ getContent()

ilPropertyFormGUI::getContent ( )

Definition at line 485 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().

485  : string
486  {
487  global $DIC;
488  $lng = $this->lng;
489  $tpl = $DIC["tpl"];
491 
494 
495  $tpl->addJavaScript("assets/js/Basic.js");
496  $tpl->addJavaScript("assets/js/Form.js");
497 
498  $this->tpl = new ilTemplate("tpl.property_form.html", true, true, "components/ILIAS/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  // required top
539  $this->tpl->setCurrentBlock("header");
540  if ($this->checkForRequiredField()) {
541  $this->tpl->setCurrentBlock("required_text_top");
542  $this->tpl->setVariable("TXT_REQUIRED_TOP", $lng->txt("required_field"));
543  $this->tpl->parseCurrentBlock();
544  }
545 
546  $this->tpl->setVariable("TXT_TITLE", $this->getTitle());
547  //$this->tpl->setVariable("LABEL", $this->getTopAnchor());
548  $this->tpl->setVariable("TXT_DESCRIPTION", $this->getDescription());
549  $this->tpl->parseCurrentBlock();
550  } elseif (!$this->required_text && $this->getMode() == "std") {
551  $this->tpl->setCurrentBlock("header");
552  // required top
553  $this->tpl->setCurrentBlock("required_text_top");
554  $this->tpl->setVariable("TXT_REQUIRED_TOP", $lng->txt("required_field"));
555  $this->tpl->parseCurrentBlock();
556  }
557  $this->tpl->touchBlock("item");
558 
559  // properties
560  $this->required_text = false;
561  foreach ($this->items as $item) {
562  if ($item->getType() != "hidden") {
563  $this->insertItem($item);
564  }
565  }
566 
567  // required
568  if ($this->required_text && $this->getMode() == "std") {
569  $this->tpl->setCurrentBlock("required_text");
570  $this->tpl->setVariable("TXT_REQUIRED", $lng->txt("required_field"));
571  $this->tpl->parseCurrentBlock();
572  }
573 
574  // command buttons
575  foreach ($this->buttons as $button) {
576  $this->tpl->setCurrentBlock("cmd");
577  $this->tpl->setVariable("CMD", $button["cmd"]);
578  $this->tpl->setVariable("CMD_TXT", $button["text"]);
579 
580  if ($button["id"] != "") {
581  $this->tpl->setVariable("CMD_ID", " id='" . $button["id"] . "'");
582  }
583 
584  $this->tpl->parseCurrentBlock();
585  }
586 
587  // #18808
588  if ($this->getMode() != "subform") {
589  // try to keep uploads even if checking input fails
590  if ($this->getMultipart()) {
591  $hash = $this->getFileHash() ?? null;
592  if (!$hash) {
593  $hash = md5(uniqid((string) mt_rand(), true));
594  }
595  $fhash = new ilHiddenInputGUI("ilfilehash");
596  $fhash->setValue($hash);
597  $this->addItem($fhash);
598  }
599  }
600 
601  // hidden properties
602  $hidden_fields = false;
603  foreach ($this->items as $item) {
604  if ($item->getType() == "hidden") {
605  $item->insert($this->tpl);
606  $hidden_fields = true;
607  }
608  }
609 
610  if ($this->required_text || count($this->buttons) > 0 || $hidden_fields) {
611  $this->tpl->setCurrentBlock("commands");
612  $this->tpl->parseCurrentBlock();
613  }
614 
615 
616  if ($this->getMode() == "subform") {
617  $this->tpl->touchBlock("sub_table");
618  } else {
619  $this->tpl->touchBlock("std_table");
620  $this->tpl->setVariable('STD_TABLE_WIDTH', $this->getTableWidth());
621  }
622 
623  return $this->tpl->get();
624  }
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:22
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 175 of file class.ilPropertyFormGUI.php.

References $description.

Referenced by getContent().

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

◆ getDisableStandardMessage()

ilPropertyFormGUI::getDisableStandardMessage ( )

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

References $disable_standard_message.

Referenced by checkInput().

303  : bool
304  {
306  }
+ Here is the caller graph for this function:

◆ getFileHash()

ilPropertyFormGUI::getFileHash ( )
protected

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

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

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

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  }
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 919 of file class.ilPropertyFormGUI.php.

References $res.

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

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

◆ getForceTopButtons()

ilPropertyFormGUI::getForceTopButtons ( )

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

References $force_top_buttons.

205  : bool
206  {
208  }

◆ getHideLabels()

ilPropertyFormGUI::getHideLabels ( )

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

References $hide_labels.

Referenced by insertItem().

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

◆ getHTML()

ilPropertyFormGUI::getHTML ( )

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

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

Referenced by ilCalendarCategoryGUI\add(), ilCalendarAppointmentGUI\add(), ilObjFileGUI\addLegacyFormToAccordion(), ilObjLinkResourceGUI\addLink(), ilObjContentObjectGUI\addMenuEntry(), ilObjAdvancedEditingGUI\assessmentObject(), ilObjSessionGUI\attendanceListObject(), ilCalendarAppointmentGUI\book(), ilPCMediaObjectGUI\changeObjectReference(), ilCourseObjectivesGUI\create(), ilMediaPoolPageGUI\createMediaPoolPage(), ilContainerReferenceGUI\createObject(), ilChatroomAdminViewGUI\createSettingTemplate(), ilExtIdGUI\edit(), ilCalendarCategoryGUI\edit(), ilCourseObjectivesGUI\edit(), ilCalendarAppointmentGUI\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(), ilObjAdvancedEditingGUI\frmPostObject(), 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(), ilObjAdvancedEditingGUI\saveAssessmentSettingsObject(), ilCertificateGUI\saveCertificate(), ilObjAdvancedEditingGUI\saveFrmPostSettingsObject(), ilObjAdvancedEditingGUI\saveGeneralPageSettingsObject(), ilContainerReferenceGUI\saveObject(), ilObjEmployeeTalkSeriesGUI\saveObject(), ilObjGlossaryGUI\saveObject(), ilAuthShibbolethSettingsGUI\settings(), ilConsultationHoursGUI\settings(), ilObjAdvancedEditingGUI\settingsObject(), ilMailTemplateGUI\showEditTemplateForm(), ilObjAdvancedEditingGUI\showGeneralPageEditorSettingsObject(), ilMailTemplateGUI\showInsertTemplateForm(), ilChatroomHistoryGUI\showMessages(), ilMailOptionsGUI\showOptions(), ilCourseObjectivesGUI\showRandomTestAssignment(), ilExtIdGUI\update(), ilObjStudyProgrammeGUI\updateAdvancedSettings(), ilObjOrgUnitGUI\updateAdvancedSettings(), ilObjLinkResourceGUI\updateLink(), ilObjCategoryGUI\updateObject(), ilObjOrgUnitGUI\updateSettings(), and ilConsultationHoursGUI\updateSettings().

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

◆ getHTMLAsync()

ilPropertyFormGUI::getHTMLAsync ( )

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

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

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

833  : string
834  {
835  $html = $this->getHTML();
836  if (!$this->ctrl->isAsynch()) {
837  $html = $this->appendOnloadCode($html);
838  }
839  return $html;
840  }
+ 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 448 of file class.ilPropertyFormGUI.php.

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

Referenced by ilObjEmployeeTalkGUI\addChangeDateButtonsToToolbar(), ilSurveyRaterGUI\addExternalRater(), ilSurveyRaterGUI\addRater(), ilSamlIdp\bindDbRecord(), ilCalendarAppointmentGUI\bookconfirmed(), ilAdvancedMDFieldDefinitionSelect\buildConfirmedObjects(), ilDclSelectionFieldModel\checkFieldCreationInput(), ilDclTextFieldModel\checkFieldCreationInput(), ILIAS\Survey\Settings\SettingsFormGUI\checkForm(), ilDidacticTemplateSettingsGUI\checkInput(), ilAssQuestionSkillAssignmentsGUI\checkPointsAreInt(), ilDclTextFieldModel\checkValidityFromForm(), ilDclDatetimeFieldModel\checkValidityFromForm(), ilDclBooleanFieldModel\checkValidityFromForm(), ilDclBaseFieldModel\checkValidityFromForm(), ilPCTabsGUI\checkWidthHeight(), ilObjStyleSheetGUI\copyStyleObject(), ilWebDAVMountInstructionsDocumentFormGUI\createFilledObject(), ilDclTableViewEditFormGUI\createTableView(), ilEmployeeTalkAppointmentGUI\deleteTalks(), ilCmiXapiLP\fetchModeOption(), ilStudyProgrammeTypeCustomIconsFormGUI\fillForm(), ilOrgUnitPositionFormGUI\fillForm(), ilOrgUnitAuthorityFormGUI\fillObject(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\fillObject(), ilObjOrgUnitSettingsFormGUI\fillObject(), ilBiblFieldFilterFormGUI\fillObject(), ilAccessibilityCriterionFormGUI\fillObject(), ilBookingScheduleGUI\formToObject(), ilAccessibilityUserHasLanguageCriterionGUI\getConfigByForm(), ilCourseLPBadgeGUI\getConfigFromForm(), ilDclSelectionFieldModel\getConfirmationGUI(), ilDclBaseFieldModel\getConfirmationGUI(), ilLTIConsumeProviderFormGUI\getDynRegRequest(), ILIAS\Survey\Settings\SettingsFormGUI\getTutorIdsFromForm(), ILIAS\Survey\Settings\SettingsFormGUI\getTutorResIdsFromForm(), ilECSObjectSettings\handleSettingsUpdate(), ilObjSCORMLearningModuleGUI\import(), 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(), ilAdvancedMDFieldDefinitionSelect\importTranslatedFormPostValues(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilLTIConsumerSettingsFormGUI\initObject(), ilLTIConsumeProviderFormGUI\initProvider(), ilMailTemplateGUI\insertTemplate(), ilDclSelectionFieldModel\isConfirmationRequired(), ilCalendarAppointmentGUI\load(), ilCalendarAppointmentGUI\loadNotificationRecipients(), ilObjCourseReferenceGUI\loadPropertiesFromSettingsForm(), ilContainerReferenceGUI\loadPropertiesFromSettingsForm(), ilAdvancedMDSettingsGUI\loadRecordFormData(), ilEmployeeTalkAppointmentGUI\loadRecurrenceSettings(), ilAdvancedMDFieldDefinition\prepareDefinitionFormConfirmation(), ilExAssignmentEditorGUI\processForm(), ilExAssignmentEditorGUI\processPeerReviewForm(), ilConsultationHoursGUI\rewriteBookingIdsForAppointments(), ilMailOptionsFormGUI\save(), ilCalendarCategoryGUI\save(), ilCourseObjectivesGUI\save(), ilCalendarAppointmentGUI\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(), ilObjectCustomIconConfigurationGUI\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(), ilObjAdvancedEditingGUI\saveSettingsObject(), ilContainerGUI\saveSortingSettings(), ilAssConfigurableMultiOptionQuestionFeedback\saveSpecificFormProperties(), ilAssMultiOptionQuestionFeedback\saveSpecificFormProperties(), ilObjAdvancedEditingGUI\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(), ilDclSelectionFieldModel\storePropertiesFromForm(), ilDclBaseFieldModel\storePropertiesFromForm(), ilPCLearningHistoryGUI\update(), ilCalendarCategoryGUI\update(), ilCalendarAppointmentGUI\update(), ilObjTalkTemplateGUI\updateCustom(), ilObjPollGUI\updateCustom(), ilObjPortfolioBaseGUI\updateCustom(), ilObjPortfolioTemplateGUI\updateCustom(), ilObjItemGroupGUI\updateCustom(), ilObjPortfolioGUI\updateCustom(), ilObjExerciseGUI\updateCustom(), ilObjDataCollectionGUI\updateCustom(), ilObjContentPageGUI\updateCustom(), ilForumSettingsGUI\updateCustomValues(), ilAdvancedMDFieldTranslations\updateFromForm(), ilObjCourseGUI\updateInfoObject(), ilObjLinkResourceGUI\updateLink(), ilMediaPoolPageGUI\updateMediaPoolPage(), ilObjContentObjectGUI\updateMenuEntry(), ilObjEmployeeTalkGUI\updateObject(), ilObjGroupGUI\updateObject(), ilObjCourseGUI\updateObject(), ilObjCategoryGUI\updateObject(), ilPageLayoutGUI\updateProperties(), ilObjectServiceSettingsGUI\updateServiceSettingsForm(), ilConsultationHoursGUI\updateSettings(), ilAdvancedMDSettingsGUI\updateSubstitutions(), ilDclTableViewEditFormGUI\updateTableView(), ilMailTemplateGUI\updateTemplate(), ilBlogPostingGUI\updateTitle(), ilObjOrgUnitSettingsFormGUI\updateTranslation(), ilCalendarCategoryGUI\uploadAppointments(), ilObjEmployeeTalkGUI\validateCustom(), ilObjPollGUI\validateCustom(), SurveyMultipleChoiceQuestionGUI\validateEditForm(), ilCourseLPBadgeGUI\validateForm(), ilCustomUserFieldsGUI\validateForm(), and assLongMenuGUI\writeQuestionSpecificPostData().

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  }
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 279 of file class.ilPropertyFormGUI.php.

Referenced by ilTestSettingsChangeConfirmationGUI\populateParametersFromPropertyForm().

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

References null.

Referenced by assMultipleChoiceGUI\addBasicQuestionFormProperties(), ilCronDeleteInactiveUserAccounts\addCustomSettingsToForm(), appendOnloadCode(), ilTestRandomQuestionSetPoolDefinitionFormGUI\applySubmit(), ilSamlIdp\bindDbRecord(), ilCalendarAppointmentGUI\book(), ilDclSelectionFieldModel\checkFieldCreationInput(), ilDclTextFieldModel\checkFieldCreationInput(), ILIAS\Survey\Settings\SettingsFormGUI\checkForm(), ilPCSectionGUI\checkInput(), checkInput(), 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(), ilCalendarAppointmentGUI\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(), ilObjectCustomIconConfigurationGUI\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().

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  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the caller graph for this function:

◆ getItems()

ilPropertyFormGUI::getItems ( )

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

References $items.

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

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

◆ getMode()

ilPropertyFormGUI::getMode ( )

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

References $mode.

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

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

◆ getRequestedPostVar()

ilPropertyFormGUI::getRequestedPostVar ( )
protected

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

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

Referenced by executeCommand().

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  }
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 195 of file class.ilPropertyFormGUI.php.

References $show_top_buttons.

Referenced by getContent().

195  : bool
196  {
198  }
+ Here is the caller graph for this function:

◆ getTableWidth()

ilPropertyFormGUI::getTableWidth ( )
final

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

References $tbl_width.

Referenced by getContent().

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

◆ getTitle()

ilPropertyFormGUI::getTitle ( )

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

References $title.

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

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

◆ getTitleIcon()

ilPropertyFormGUI::getTitleIcon ( )

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

References $titleicon.

Referenced by getContent().

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

◆ getTopAnchor()

ilPropertyFormGUI::getTopAnchor ( )

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

References $top_anchor.

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

◆ hasFileUpload()

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

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

References $data, and getFileUpload().

966  : bool {
967  $data = $this->getFileUpload($a_field, $a_index, $a_sub_index);
968  return (bool) ($data["tmp_name"] ?? false);
969  }
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 626 of file class.ilPropertyFormGUI.php.

Referenced by checkForRequiredField(), and insertItem().

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

◆ insertItem()

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

Definition at line 635 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().

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

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

988  : string {
989  if (!is_dir($a_target_directory)) {
990  return "";
991  }
992 
993  $data = $this->getFileUpload($a_field, $a_index, $a_sub_index);
994  if ($data["tmp_name"] && file_exists($data["tmp_name"])) {
995  if ($a_target_name) {
996  $data["name"] = $a_target_name;
997  }
998 
999  $target_file = $a_target_directory . "/" . $data["name"];
1000  $target_file = str_replace("//", "/", $target_file);
1001 
1002  if ($data["is_upload"]) {
1003  if (!ilFileUtils::moveUploadedFile($data["tmp_name"], $data["name"], $target_file)) {
1004  return "";
1005  }
1006  } else {
1007  if (!ilFileUtils::rename($data["tmp_name"], $target_file)) {
1008  return "";
1009  }
1010  }
1011 
1012  return $target_file;
1013  }
1014  return "";
1015  }
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 1017 of file class.ilPropertyFormGUI.php.

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

Referenced by __construct().

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

References null.

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

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  }
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 170 of file class.ilPropertyFormGUI.php.

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

170  : void
171  {
172  $this->description = $a_val;
173  }
+ 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.

Referenced by ilAssQuestionAuthoringFormGUI\replaceFormItemByPostVar().

265  : void
266  {
267  $this->items = $a_items;
268  }
+ 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.

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

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

◆ setTableWidth()

ilPropertyFormGUI::setTableWidth ( string  $a_width)
final

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

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

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

◆ setTitle()

ilPropertyFormGUI::setTitle ( string  $a_title)

Definition at line 150 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(), ilObjAdvancedEditingGUI\getTinyForm(), 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(), ilDclTableViewEditFormGUI\initForm(), 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(), ilObjAdvancedEditingGUI\initTagsForm(), ilBlogPostingGUI\initTitleForm(), ilLTIConsumeProviderFormGUI\initToolConfigForm(), ilObjSCORMLearningModuleGUI\initTrackingImportForm(), ilObjExerciseGUI\listAssignmentsObject(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\saveObject(), ilObjOrgUnitSettingsFormGUI\saveObject(), ilObjMediaObjectGUI\savePropertiesObject(), ilObjEmployeeTalkGUI\sendUpdateNotification(), and ilAccessibilityCriterionFormGUI\setCheckInputCalled().

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

◆ setTitleIcon()

ilPropertyFormGUI::setTitleIcon ( string  $a_titleicon)

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

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

160  : void
161  {
162  $this->titleicon = $a_titleicon;
163  }
+ 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()

◆ setValuesByPost()

ilPropertyFormGUI::setValuesByPost ( )

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

References $DIC, and null.

Referenced by ilDidacticTemplateSettingsGUI\checkInput(), ilBiblLibraryGUI\create(), ilStudyProgrammeTypeCustomIconsFormGUI\fillForm(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\fillObject(), ilObjOrgUnitSettingsFormGUI\fillObject(), ilDidacticTemplateSettingsGUI\handleUpdateFailure(), ilObjSCORMLearningModuleGUI\import(), ilSkillRootGUI\importSkills(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilMailTemplateGUI\insertTemplate(), ilRegistrationGUI\join(), ilAuthShibbolethSettingsGUI\save(), ilCalendarCategoryGUI\save(), ilCourseObjectivesGUI\save(), ilObjAdvancedEditingGUI\saveAssessmentSettingsObject(), ilCertificateGUI\saveCertificate(), ilAdvancedMDSettingsGUI\saveField(), ilObjAdvancedEditingGUI\saveFrmPostSettingsObject(), 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().

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  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
global $DIC
Definition: shib_login.php:22
+ 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.

Referenced by getCommandButtons().

◆ $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 getDescription().

◆ $disable_standard_message

bool ilPropertyFormGUI::$disable_standard_message = false
protected

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

Referenced by getDisableStandardMessage().

◆ $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.

Referenced by getHideLabels().

◆ $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.

Referenced by getItems().

◆ $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(), and getContent().

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