ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables 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 ()
 

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(), 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.
global $DIC
Definition: feed.php:28
static http()
Fetches the global http state from ILIAS.
setPreventDoubleSubmission(bool $a_val)
+ Here is the call graph for this function:

Member Function Documentation

◆ addAsyncOnloadCode()

ilPropertyFormGUI::addAsyncOnloadCode ( string  $code)

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

Referenced by insertItem().

807  : void
808  {
809  $this->onload_code[] = $code;
810  }
+ 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(), ilChatroomFormFactory\addDefaultBehaviour(), ilAssQuestionAuthoringFormGUI\addGenericAssessmentQuestionCommandButtons(), ilTestExpressPageObjectGUI\addQuestion(), assQuestionGUI\addQuestionFormCommandButtons(), ilAssOrderingQuestionAuthoringFormGUI\addSpecificOrderingQuestionCommandButtons(), ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilAssQuestionSkillAssignmentPropertyFormGUI\build(), ilObjEmployeeTalkGUI\cancelDeleteObject(), ilPCMediaObjectGUI\changeObjectReference(), ilAsyncPropertyFormGUI\cloneForm(), ilPCTableGUI\editCellAlignment(), ilPCTableGUI\editCellStyle(), ilObjGroupGUI\editMapSettingsObject(), ilObjCourseGUI\editMapSettingsObject(), ilPCMediaObjectGUI\editStyle(), ilForumThreadFormGUI\generateDefaultForm(), ilForumThreadFormGUI\generateMinimalForm(), ilObjAuthSettingsGUI\getApacheAuthSettingsForm(), 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(), ilOrgUnitDefaultPermissionFormGUI\initButtons(), ILIAS\Modules\OrgUnit\ARHelper\BaseForm\initButtons(), ilBiblFieldFilterFormGUI\initButtons(), ilObjAdvancedEditingGUI\initCharSelectorSettingsForm(), ilAdvancedMDSettingsGUI\initComplexOptionForm(), ilObjEmployeeTalkSeriesGUI\initCreateForm(), ilObjGlossaryGUI\initCreateForm(), ilBlogPostingGUI\initDateForm(), ilLTIConsumeProviderFormGUI\initDynRegForm(), ilObjTalkTemplateGUI\initEditForm(), ilObjFolderGUI\initEditForm(), ilObjRootFolderGUI\initEditForm(), ilObjCategoryGUI\initEditForm(), ilObjCourseGUI\initEditForm(), ilContainerGUI\initEditForm(), ilAdvancedMDSettingsGUI\initFieldForm(), ilDclTableViewEditFormGUI\initForm(), ilTermsOfServiceSettingsFormGUI\initForm(), ilLTIConsumerSettingsFormGUI\initForm(), ilBiblLibraryFormGUI\initForm(), ilLTIConsumeProviderFormGUI\initForm(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilOrgUnitTypeFormGUI\initForm(), ilWebDAVMountInstructionsDocumentFormGUI\initForm(), ilAccessibilityDocumentFormGUI\initForm(), ilTermsOfServiceDocumentFormGUI\initForm(), ilExtIdGUI\initForm(), ilStudyProgrammeTypeCustomIconsFormGUI\initForm(), ilRegistrationSettingsGUI\initForm(), ilContainerReferenceGUI\initForm(), ilObjGroupGUI\initForm(), ilCalendarAppointmentGUI\initFormConfirmBooking(), ilCourseObjectivesGUI\initFormRandom(), ilMembershipAdministrationGUI\initFormSettings(), ilObjAdvancedEditingGUI\initGeneralPageSettingsForm(), ilObjMDSettingsGUI\initGeneralSettingsForm(), ilConsultationHoursGUI\initGroupForm(), ilObjSCORMLearningModuleGUI\initImportForm(), ilCalendarCategoryGUI\initImportForm(), ilObjCourseGUI\initInfoEditor(), ilObjGroupGUI\initInfoEditor(), ilSkillRootGUI\initInputForm(), ilECSSettingsGUI\initMappingsForm(), ilMediaPoolPageGUI\initMediaPoolPageForm(), ilObjectCustomUserFieldsGUI\initMemberForm(), ilObjContentObjectGUI\initMenuEntryForm(), ilObjContentObjectGUI\initMenuForm(), ilObjUserFolderGUI\initNewAccountMailForm(), ilPageObjectGUI\initOpenedContentForm(), ilObjMDSettingsGUI\initSettingsForm(), ilConsultationHoursGUI\initSettingsForm(), ilObjAdvancedEditingGUI\initTagsForm(), ilBlogPostingGUI\initTitleForm(), ilLTIConsumeProviderFormGUI\initToolConfigForm(), ilPCMediaObjectGUI\insert(), ilWikiPageGUI\insertWikiLink(), ilOrgUnitTypeAdvancedMetaDataFormGUI\saveObject(), ilObjOrgUnitSettingsFormGUI\saveObject(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\saveObject(), ilAccessibilityCriterionFormGUI\setCheckInputCalled(), and ilTermsOfServiceCriterionFormGUI\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(), ilObjTestSettingsGeneralGUI\addAvailabilityProperties(), ilForumSettingsGUI\addAvailabilitySection(), ilObjContentPageGUI\addAvailabilitySection(), assClozeTestGUI\addBasicQuestionFormProperties(), assQuestionGUI\addBasicQuestionFormProperties(), ilObjCourseAdministrationGUI\addChildContentsTo(), ilIndividualAssessmentCommonSettingsGUI\addCommonFieldsToForm(), ilObjLearningSequenceSettingsGUI\addCommonFieldsToForm(), ilTCPDFRenderer\addConfigElementsToForm(), ilWkhtmlToPdfConfigFormGUI\addConfigForm(), ilAdvancedMDFieldDefinitionSelect\addCreateOptionsFieldsToDefinitionForm(), ilObjRemoteGlossaryGUI\addCustomEditForm(), ilObjRemoteLearningModuleGUI\addCustomEditForm(), ilObjRemoteWikiGUI\addCustomEditForm(), ilObjRemoteCourseGUI\addCustomEditForm(), ilObjRemoteGroupGUI\addCustomEditForm(), ilObjRemoteTestGUI\addCustomEditForm(), ilMemberAgreementGUI\addCustomFields(), ilAdvancedMDFieldDefinitionGroupBased\addCustomFieldToDefinitionForm(), ilAdvancedMDFieldDefinitionFloat\addCustomFieldToDefinitionForm(), ilAdvancedMDFieldDefinitionText\addCustomFieldToDefinitionForm(), ilAdvancedMDFieldDefinitionInteger\addCustomFieldToDefinitionForm(), ilAdvancedMDFieldDefinitionSelect\addCustomFieldToDefinitionFormInTranslationMode(), ilCronOerHarvester\addCustomSettingsToForm(), ilSCCronTrash\addCustomSettingsToForm(), ilMailCronNotification\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(), ilForumThreadFormGUI\addFileUploadInput(), ilCharSelectorGUI\addFormProperties(), ilObjTestSettingsGeneralGUI\addGeneralProperties(), ilPersonalProfileGUI\addLocationToForm(), ilMembershipRegistrationSettingsGUI\addMembershipFormElements(), ilForumThreadFormGUI\addMessageInput(), ilSamlSettingsGUI\addMetadataElement(), assQuestionGUI\addNumberOfTriesToFormIfNecessary(), ilObjTestSettingsGeneralGUI\addPresentationProperties(), ilTestExpressPageObjectGUI\addQuestion(), ilObjTestSettingsGeneralGUI\addQuestionBehaviourProperties(), ilECSObjectSettings\addSettingsToForm(), ILIAS\LearningModule\ReadingTime\SettingsGUI\addSettingToForm(), ILIAS\Blog\ReadingTime\BlogSettingsGUI\addSettingToForm(), ilUserProfile\addStandardFieldsToForm(), ilSkillTreeNodeGUI\addStatusInput(), ilForumThreadFormGUI\addSubjectInput(), ilObjTestSettingsGeneralGUI\addTestAccessProperties(), ilObjTestSettingsGeneralGUI\addTestFinishProperties(), ilObjTestSettingsGeneralGUI\addTestIntroProperties(), ilObjTestSettingsGeneralGUI\addTestRunProperties(), ilObjTestSettingsGeneralGUI\addTestSequenceProperties(), ilAdvancedMDFieldDefinition\addToFieldDefinitionForm(), ilTaxMDGUI\addToMDForm(), ilOrgUnitTypeFormGUI\addTranslationInputs(), ilWkhtmlToPdfConfigFormGUI\appendOutputOptionsForm(), ilWkhtmlToPdfConfigFormGUI\appendPageSettingsForm(), ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilAssQuestionSkillAssignmentPropertyFormGUI\build(), ilObjEmployeeTalkGUI\cancelDeleteObject(), ilAsyncPropertyFormGUI\cloneForm(), ilAssQuestionFeedback\completeGenericFormProperties(), ilAssConfigurableMultiOptionQuestionFeedback\completeSpecificFormProperties(), ilAssMultiOptionQuestionFeedback\completeSpecificFormProperties(), ilAssClozeTestFeedback\completeSpecificFormProperties(), ilPCTableGUI\editCellAlignment(), ilPCTableGUI\editCellStyle(), ilObjGroupGUI\editMapSettingsObject(), ilObjCourseGUI\editMapSettingsObject(), ilPCMediaObjectGUI\editStyle(), ilObjAuthSettingsGUI\getApacheAuthSettingsForm(), ilObjStyleSheetGUI\getCloneForm(), getContent(), ilObjStyleSheetGUI\getCreateForm(), ilSearchBaseGUI\getCreationDateForm(), ilForumSettingsGUI\getCustomForm(), ilObjectCustomIconConfigurationGUI\getForm(), ilObjStyleSheetGUI\getImportForm(), ilObjCategoryGUI\getObjectMetadataGUI(), ilSearchBaseGUI\getSearchAreaForm(), ilMailTemplateGUI\getTemplateForm(), ilObjAdvancedEditingGUI\getTinyForm(), ilExAssignmentEditorGUI\handleDisabledPeerFields(), ilMailOptionsFormGUI\init(), ilObjUserFolderGUI\initAccessRestrictionForm(), ilUserProfileBadgeGUI\initConfigForm(), ilCourseLPBadgeGUI\initConfigForm(), ilObjPortfolioTemplateGUI\initCopyPageFormOptions(), ilObjPortfolioGUI\initCopyPageFormOptions(), ilObjEmployeeTalkSeriesGUI\initCreateForm(), ilObjGlossaryGUI\initCreateForm(), ilExcCriteriaText\initCustomForm(), ilBlogPostingGUI\initDateForm(), ilObjPortfolioTemplateGUI\initDidacticTemplate(), ilObjectGUI\initDidacticTemplate(), ilLTIConsumeProviderFormGUI\initDynRegForm(), ilObjPollGUI\initEditCustomForm(), ilObjTalkTemplateGUI\initEditCustomForm(), ilObjItemGroupGUI\initEditCustomForm(), ilObjBlogGUI\initEditCustomForm(), ilObjPortfolioBaseGUI\initEditCustomForm(), ilObjPortfolioTemplateGUI\initEditCustomForm(), ilObjBookingPoolGUI\initEditCustomForm(), ilObjBibliographicGUI\initEditCustomForm(), ilObjMediaPoolGUI\initEditCustomForm(), ilObjContentPageGUI\initEditCustomForm(), ilObjFolderGUI\initEditForm(), ilObjCategoryGUI\initEditForm(), ilObjCourseGUI\initEditForm(), ilContainerGUI\initEditForm(), ilAdvancedMDSettingsGUI\initFieldForm(), ilDclTableViewEditFormGUI\initForm(), ilLTIConsumerSettingsFormGUI\initForm(), ilTermsOfServiceSettingsFormGUI\initForm(), ilBiblLibraryFormGUI\initForm(), ilBiblFieldFilterFormGUI\initForm(), ilLTIConsumeProviderFormGUI\initForm(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilOrgUnitTypeFormGUI\initForm(), ilWebDAVMountInstructionsDocumentFormGUI\initForm(), ilAccessibilityDocumentFormGUI\initForm(), ilTermsOfServiceDocumentFormGUI\initForm(), ilStudyProgrammeTypeCustomIconsFormGUI\initForm(), ilExtIdGUI\initForm(), ilObjCourseReferenceGUI\initForm(), ilRegistrationSettingsGUI\initForm(), ilContainerReferenceGUI\initForm(), ilObjGroupGUI\initForm(), ilCalendarAppointmentGUI\initFormConfirmBooking(), ilOrgUnitAuthorityFormGUI\initFormElements(), ilOrgUnitPositionFormGUI\initFormElements(), ilOrgUnitDefaultPermissionFormGUI\initFormElements(), ilCourseObjectivesGUI\initFormRandom(), ilMembershipAdministrationGUI\initFormSettings(), ilObjAdvancedEditingGUI\initGeneralPageSettingsForm(), ilObjMDSettingsGUI\initGeneralSettingsForm(), ilConsultationHoursGUI\initGroupForm(), ilObjContentObjectGUI\initImportForm(), ilObjSCORMLearningModuleGUI\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(), ilObjMDSettingsGUI\initSettingsForm(), ilConsultationHoursGUI\initSettingsForm(), ilContainerGUI\initSortingForm(), ilObjAdvancedEditingGUI\initTagsForm(), ilBlogPostingGUI\initTitleForm(), ilLTIConsumeProviderFormGUI\initToolConfigForm(), insertItem(), ilWikiPageGUI\insertWikiLink(), ilObjExerciseGUI\listAssignmentsObject(), ilMDEditorGUI\listQuickEditCopyright(), ilAdministrationSettingsFormHandler\parseFieldValue(), assErrorTextGUI\populateAnswerSpecificFormPart(), assOrderingQuestionGUI\populateAnswerSpecificFormPart(), assKprimChoiceGUI\populateAnswerSpecificFormPart(), assMatchingQuestionGUI\populateAnswerSpecificFormPart(), assNumericGUI\populateAnswerSpecificFormPart(), assTextSubsetGUI\populateAnswerSpecificFormPart(), assClozeTestGUI\populateAnswerSpecificFormPart(), assTextQuestionGUI\populateAnswerSpecificFormPart(), assSingleChoiceGUI\populateAnswerSpecificFormPart(), assMultipleChoiceGUI\populateAnswerSpecificFormPart(), assNumericGUI\populateCorrectionsFormProperties(), assOrderingHorizontalGUI\populateCorrectionsFormProperties(), assTextSubsetGUI\populateCorrectionsFormProperties(), assFileUploadGUI\populateCorrectionsFormProperties(), assErrorTextGUI\populateCorrectionsFormProperties(), assLongMenuGUI\populateCorrectionsFormProperties(), assSingleChoiceGUI\populateCorrectionsFormProperties(), assOrderingQuestionGUI\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(), assTextSubsetGUI\populateQuestionSpecificFormPart(), assNumericGUI\populateQuestionSpecificFormPart(), assOrderingHorizontalGUI\populateQuestionSpecificFormPart(), assMatchingQuestionGUI\populateQuestionSpecificFormPart(), assClozeTestGUI\populateQuestionSpecificFormPart(), assSingleChoiceGUI\populateQuestionSpecificFormPart(), assTextQuestionGUI\populateQuestionSpecificFormPart(), assMultipleChoiceGUI\populateQuestionSpecificFormPart(), assQuestionGUI\populateTaxonomyFormSection(), ilAdvancedMDFieldDefinitionSelect\prepareCustomDefinitionFormConfirmation(), ilAdvancedMDFieldDefinition\prepareDefinitionFormConfirmation(), ilOrgUnitTypeAdvancedMetaDataFormGUI\saveObject(), ilObjOrgUnitSettingsFormGUI\saveObject(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\saveObject(), ilAccessibilityCriterionFormGUI\setCheckInputCalled(), ilTermsOfServiceCriterionFormGUI\setCheckInputCalled(), ilChatroomHistoryGUI\showMessages(), 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 841 of file class.ilPropertyFormGUI.php.

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

Referenced by getHTML(), and getHTMLAsync().

841  : string
842  {
843  if (count($this->onload_code) > 0) {
844  $html .= "<script>";
845  foreach ($this->onload_code as $code) {
846  $html .= $code . "\n";
847  }
848  $html .= "</script>";
849  }
850  return $html;
851  }
+ 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(), ilObjUserFolderGUI\confirmaccessRestrictObject(), ilObjStyleSheetGUI\copyStyleObject(), ilWebDAVMountInstructionsDocumentFormGUI\createFilledObject(), ilOrgUnitPositionFormGUI\fillForm(), ilStudyProgrammeTypeCustomIconsFormGUI\fillForm(), ilOrgUnitAuthorityFormGUI\fillObject(), ilOrgUnitTypeAdvancedMetaDataFormGUI\fillObject(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\fillObject(), ilOrgUnitTypeFormGUI\fillObject(), ilObjOrgUnitSettingsFormGUI\fillObject(), ilOrgUnitDefaultPermissionFormGUI\fillObject(), ilTermsOfServiceSettingsFormGUI\fillObject(), ilBiblFieldFilterFormGUI\fillObject(), ilTermsOfServiceCriterionFormGUI\fillObject(), ilAccessibilityCriterionFormGUI\fillObject(), ilCertificateGUI\getEditorForm(), ilObjSCORMLearningModuleGUI\import(), ilSkillRootGUI\importSkills(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilMailTemplateGUI\insertTemplate(), ilRegistrationGUI\join(), ilSearchBaseGUI\loadCreationFilter(), ilExAssignmentEditorGUI\processForm(), ilExAssignmentEditorGUI\processPeerReviewForm(), ilMailOptionsFormGUI\save(), ilCalendarCategoryGUI\save(), ilStructureObjectGUI\save(), ilCourseObjectivesGUI\save(), ilObjLinkResourceGUI\saveAddLink(), ilPCMediaObjectGUI\saveAliasProperties(), ilObjAuthSettingsGUI\saveApacheSettingsObject(), ilObjAdvancedEditingGUI\saveCharSelectorSettingsObject(), ilObjMDSettingsGUI\saveCopyrightSettings(), ilAdvancedMDSettingsGUI\saveField(), ilObjectCustomIconConfigurationGUI\saveForm(), ilObjAdvancedEditingGUI\saveGeneralPageSettingsObject(), ilObjMDSettingsGUI\saveGeneralSettings(), ilConsultationHoursGUI\saveGroup(), ilObjLinkResourceGUI\saveLinkList(), ilMediaPoolPageGUI\saveMediaPoolPage(), ilObjectCustomUserFieldsGUI\saveMember(), ilObjContentObjectGUI\saveMenuEntry(), ilObjContentObjectGUI\saveMenuProperties(), ilBiblLibraryFormGUI\saveObject(), ilAccessibilityDocumentFormGUI\saveObject(), ilTermsOfServiceDocumentFormGUI\saveObject(), ilObjEmployeeTalkSeriesGUI\saveObject(), ilObjGlossaryGUI\saveObject(), ilObjStyleSheetGUI\saveObject(), ilContainerGUI\savePasswordObject(), ilObjContentObjectGUI\saveProperties(), ilCourseObjectivesGUI\saveRandom(), ilMembershipAdministrationGUI\saveSettings(), ilObjLinkResourceGUI\saveSettings(), ilObjAdvancedEditingGUI\saveSettingsObject(), ilObjAdvancedEditingGUI\saveTags(), ilObjMediaPoolGUI\saveTitlesAndDescriptions(), ilExtIdGUI\update(), ilCalendarCategoryGUI\update(), ilWikiPageGUI\updateAdvancedMetaData(), ilObjStudyProgrammeGUI\updateAdvancedSettings(), ilObjOrgUnitGUI\updateAdvancedSettings(), ilAdvancedMDSettingsGUI\updateComplexOption(), ilBlogPostingGUI\updateDate(), ilAdvancedMDSettingsGUI\updateField(), ilConsultationHoursGUI\updateGroup(), ilObjCourseGUI\updateInfoObject(), ilObjLinkResourceGUI\updateLink(), ilMediaPoolPageGUI\updateMediaPoolPage(), ilObjContentObjectGUI\updateMenuEntry(), ilObjEmployeeTalkGUI\updateObject(), ilContainerReferenceGUI\updateObject(), ilObjGroupGUI\updateObject(), ilObjCourseGUI\updateObject(), ilObjCategoryGUI\updateObject(), ilPageLayoutGUI\updateProperties(), ilMDEditorGUI\updateQuickEdit(), 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)
saveResponse(ResponseInterface $response)
Definition: Services.php:119
global $DIC
Definition: feed.php:28
static http()
Fetches the global http state from ILIAS.
$txt
Definition: error.php:13
static ofString(string $string)
Creates a new stream with an initial value.
Definition: Streams.php:43
$post
Definition: ltitoken.php:49
+ 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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

◆ getCommandButtons()

ilPropertyFormGUI::getCommandButtons ( )

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

References $buttons.

Referenced by ilAsyncPropertyFormGUI\cloneForm().

475  : array
476  {
477  return $this->buttons;
478  }
+ Here is the caller graph for this function:

◆ getContent()

ilPropertyFormGUI::getContent ( )

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

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

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

References $res.

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

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

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

Referenced by ilCalendarCategoryGUI\add(), ilCalendarAppointmentGUI\add(), ilConsultationHoursGUI\addGroup(), ilObjFileGUI\addLegacyFormToAccordion(), ilObjLinkResourceGUI\addLink(), ilObjContentObjectGUI\addMenuEntry(), ilCalendarAppointmentGUI\addMilestone(), SurveyQuestionGUI\addPhrase(), ilTestExpressPageObjectGUI\addQuestion(), ilObjAdvancedEditingGUI\assessmentObject(), ilObjSessionGUI\attendanceListObject(), ilCalendarAppointmentGUI\book(), ilPCMediaObjectGUI\changeObjectReference(), ilCourseObjectivesGUI\create(), ilMediaPoolPageGUI\createMediaPoolPage(), ilContainerReferenceGUI\createObject(), ilChatroomAdminViewGUI\createSettingTemplate(), ilExtIdGUI\edit(), ilCalendarCategoryGUI\edit(), ilCourseObjectivesGUI\edit(), ilObjMediaPoolGUI\edit(), ilCalendarAppointmentGUI\edit(), ilObjStudyProgrammeGUI\editAdvancedSettings(), ilObjOrgUnitGUI\editAdvancedSettings(), ilPCTableGUI\editCellAlignment(), ilPCTableGUI\editCellStyle(), ilConsultationHoursGUI\editGroup(), 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(), ilObjAdvancedEditingGUI\excAssObject(), ilObjTalkTemplateGUI\executeCommand(), ilECSSettingsGUI\exportMappings(), ilObjAdvancedEditingGUI\frmPostObject(), ilLTIConsumeProviderFormGUI\getContentSelectionFrame(), ilLTIConsumeProviderFormGUI\getDynRegError(), ilLTIConsumeProviderFormGUI\getDynRegRequest(), ilCertificateGUI\getEditorForm(), getHTMLAsync(), ilCalendarCategoryGUI\importAppointments(), ilObjContentObjectGUI\importFileObject(), ilObjSCORMLearningModuleGUI\importForm(), ilECSSettingsGUI\importMappings(), ilSkillRootGUI\importSkills(), ilPageObjectGUI\initialOpenedContent(), ilPCMediaObjectGUI\insert(), ilWikiPageGUI\insertWikiLink(), ilMDEditorGUI\listQuickEdit(), ilObjUserFolderGUI\newAccountMailObject(), ilStyleCharacteristicGUI\outputTagStyleEditScreen(), assQuestionGUI\renderEditForm(), ilObjLinkResourceGUI\saveAddLink(), ilObjAdvancedEditingGUI\saveAssessmentSettingsObject(), ilObjAdvancedEditingGUI\saveCharSelectorSettingsObject(), ilObjAdvancedEditingGUI\saveExcAssSettingsObject(), ilObjAdvancedEditingGUI\saveFrmPostSettingsObject(), ilObjAdvancedEditingGUI\saveGeneralPageSettingsObject(), ilObjEmployeeTalkSeriesGUI\saveObject(), ilObjGlossaryGUI\saveObject(), ilObjLinkResourceGUI\saveSettings(), ilObjAdvancedEditingGUI\saveSurveySettingsObject(), ilCertificateGUI\setTemplateContent(), ilObjLinkResourceGUI\settings(), ilConsultationHoursGUI\settings(), ilObjAdvancedEditingGUI\settingsObject(), ilObjAdvancedEditingGUI\showCharSelectorSettingsObject(), ilObjMDSettingsGUI\showCopyrightSettings(), ilMailTemplateGUI\showEditTemplateForm(), ilObjAdvancedEditingGUI\showGeneralPageEditorSettingsObject(), ilObjMDSettingsGUI\showGeneralSettings(), ilMailTemplateGUI\showInsertTemplateForm(), ilChatroomHistoryGUI\showMessages(), ilMailOptionsGUI\showOptions(), ilCourseObjectivesGUI\showRandomTestAssignment(), ilObjAdvancedEditingGUI\surveyObject(), ilExtIdGUI\update(), ilObjStudyProgrammeGUI\updateAdvancedSettings(), ilObjOrgUnitGUI\updateAdvancedSettings(), ilObjLinkResourceGUI\updateLink(), ilObjCategoryGUI\updateObject(), ilObjOrgUnitGUI\updateSettings(), and ilConsultationHoursGUI\updateSettings().

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

◆ getHTMLAsync()

ilPropertyFormGUI::getHTMLAsync ( )

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

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

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

832  : string
833  {
834  $html = $this->getHTML();
835  if (!$this->ctrl->isAsynch()) {
836  $html = $this->appendOnloadCode($html);
837  }
838  return $html;
839  }
+ 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 ilSurveyRaterGUI\addExternalRater(), ilSurveyRaterGUI\addRater(), ilSamlIdp\bindDbRecord(), ilCalendarAppointmentGUI\bookconfirmed(), ilAdvancedMDFieldDefinitionSelect\buildConfirmedObjects(), ilObjEmployeeTalkGUI\cancelDeleteObject(), ilDclSelectionFieldModel\checkFieldCreationInput(), ilDclTextFieldModel\checkFieldCreationInput(), ILIAS\Survey\Settings\SettingsFormGUI\checkForm(), ilDclTextFieldModel\checkValidityFromForm(), ilDclBaseFieldModel\checkValidityFromForm(), ilPCTabsGUI\checkWidthHeight(), ilObjStyleSheetGUI\copyStyleObject(), ilWebDAVMountInstructionsDocumentFormGUI\createFilledObject(), ilDclTableViewEditFormGUI\createTableView(), ilEmployeeTalkAppointmentGUI\deleteTalks(), ilCmiXapiLP\fetchModeOption(), ilOrgUnitPositionFormGUI\fillForm(), ilStudyProgrammeTypeCustomIconsFormGUI\fillForm(), ilOrgUnitAuthorityFormGUI\fillObject(), ilOrgUnitTypeAdvancedMetaDataFormGUI\fillObject(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\fillObject(), ilOrgUnitTypeFormGUI\fillObject(), ilObjOrgUnitSettingsFormGUI\fillObject(), ilOrgUnitDefaultPermissionFormGUI\fillObject(), ilBiblFieldFilterFormGUI\fillObject(), ilTermsOfServiceCriterionFormGUI\fillObject(), ilAccessibilityCriterionFormGUI\fillObject(), ilBookingScheduleGUI\formToObject(), ilTermsOfServiceUserHasLanguageCriterionGUI\getConfigByForm(), ilTermsOfServiceUserHasGlobalRoleCriterionGUI\getConfigByForm(), ilTermsOfServiceUserHasCountryCriterionGUI\getConfigByForm(), ilAccessibilityUserHasLanguageCriterionGUI\getConfigByForm(), ilCourseLPBadgeGUI\getConfigFromForm(), ilWkhtmlToPdfConfigFormGUI\getConfigFromForm(), ilDclSelectionFieldModel\getConfirmationGUI(), ilDclBaseFieldModel\getConfirmationGUI(), ilLTIConsumeProviderFormGUI\getDynRegRequest(), ilCertificateGUI\getEditorForm(), ilCharSelectorGUI\getFormValues(), ilObjCategoryGUI\getObjectMetadataGUI(), ilTermsOfServiceSettingsFormGUI\getTranslatedError(), ILIAS\Survey\Settings\SettingsFormGUI\getTutorIdsFromForm(), ILIAS\Survey\Settings\SettingsFormGUI\getTutorResIdsFromForm(), ilObjSCORMLearningModuleGUI\import(), ilAdvancedMDFieldDefinitionGroupBased\importCustomDefinitionFormPostValues(), ilAdvancedMDFieldDefinitionFloat\importCustomDefinitionFormPostValues(), ilAdvancedMDFieldDefinitionText\importCustomDefinitionFormPostValues(), ilAdvancedMDFieldDefinitionInteger\importCustomDefinitionFormPostValues(), ilExcCriteriaText\importCustomForm(), ilAdvancedMDFieldDefinition\importDefinitionFormPostValues(), SurveySingleChoiceQuestionGUI\importEditFormValues(), SurveyTextQuestionGUI\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(), ilObjTestSettingsGeneralGUI\isSkillServiceSettingToBeAdjusted(), ilCalendarAppointmentGUI\load(), ilSearchBaseGUI\loadCreationFilter(), ilCalendarAppointmentGUI\loadNotificationRecipients(), ilObjCourseReferenceGUI\loadPropertiesFromSettingsForm(), ilContainerReferenceGUI\loadPropertiesFromSettingsForm(), ilAdvancedMDSettingsGUI\loadRecordFormData(), ilEmployeeTalkAppointmentGUI\loadRecurrenceSettings(), ilObjRoleGUI\loadRoleProperties(), ilObjTestSettingsGeneralGUI\performSaveForm(), ilAdvancedMDFieldDefinition\prepareDefinitionFormConfirmation(), ilExAssignmentEditorGUI\processForm(), ilExAssignmentEditorGUI\processPeerReviewForm(), ilConsultationHoursGUI\rewriteBookingIdsForAppointments(), ilMailOptionsFormGUI\save(), ilCalendarCategoryGUI\save(), ilStructureObjectGUI\save(), ilCourseObjectivesGUI\save(), ilCalendarAppointmentGUI\save(), ilPCMediaObjectGUI\saveAliasProperties(), ilObjAuthSettingsGUI\saveApacheSettingsObject(), ilObjTestSettingsGeneralGUI\saveAvailabilityProperties(), ilObjCourseAdministrationGUI\saveChildSettings(), ilObjMDSettingsGUI\saveCopyrightSettings(), assOrderingHorizontalGUI\saveCorrectionsFormProperties(), assNumericGUI\saveCorrectionsFormProperties(), assFileUploadGUI\saveCorrectionsFormProperties(), assErrorTextGUI\saveCorrectionsFormProperties(), assLongMenuGUI\saveCorrectionsFormProperties(), assOrderingQuestionGUI\saveCorrectionsFormProperties(), assKprimChoiceGUI\saveCorrectionsFormProperties(), ilMemberAgreementGUI\saveCourseDefinedFields(), ilCronOerHarvester\saveCustomSettings(), ilConsultationHourCron\saveCustomSettings(), ilCleanCOPageHistoryCronjob\saveCustomSettings(), ilSCCronTrash\saveCustomSettings(), ilLoggerCronCleanErrorFiles\saveCustomSettings(), ilMailCronOrphanedMails\saveCustomSettings(), ilForumCronNotification\saveCustomSettings(), ilObjectCustomIconConfigurationGUI\saveForm(), ILIAS\Survey\Settings\SettingsFormGUI\saveForm(), ilObjAdvancedEditingGUI\saveGeneralPageSettingsObject(), ilObjTestSettingsGeneralGUI\saveGeneralProperties(), ilObjMDSettingsGUI\saveGeneralSettings(), ilAssQuestionFeedback\saveGenericFormProperties(), ilConsultationHoursGUI\saveGroup(), ilObjLinkResourceGUI\saveLinkList(), ilContainerGUI\saveListPresentation(), ilMediaPoolPageGUI\saveMediaPoolPage(), ilObjContentObjectGUI\saveMenuEntry(), ilObjContentObjectGUI\saveMenuProperties(), ilForumLP\saveModeConfiguration(), assClozeTestGUI\saveNumericGapCorrectionFormProperty(), ilBiblLibraryFormGUI\saveObject(), ilAccessibilityDocumentFormGUI\saveObject(), ilTermsOfServiceDocumentFormGUI\saveObject(), ilObjEmployeeTalkSeriesGUI\saveObject(), ilObjGlossaryGUI\saveObject(), ilObjStyleSheetGUI\saveObject(), ilObjContentObjectGUI\saveProperties(), ilObjTestSettingsGeneralGUI\saveQuestionBehaviourProperties(), ilCourseObjectivesGUI\saveRandom(), ilCmiXapiRegistrationGUI\saveRegistration(), ilLTIProviderObjectSettingGUI\saveRoleSelection(), ILIAS\LearningModule\ReadingTime\SettingsGUI\saveSettingFromForm(), ILIAS\Blog\ReadingTime\BlogSettingsGUI\saveSettingFromForm(), ilMembershipAdministrationGUI\saveSettings(), ilObjLinkResourceGUI\saveSettings(), ilCmiXapiSettingsGUI\saveSettings(), ilObjAdvancedEditingGUI\saveSettingsObject(), ilContainerGUI\saveSortingSettings(), ilAssConfigurableMultiOptionQuestionFeedback\saveSpecificFormProperties(), ilAssMultiOptionQuestionFeedback\saveSpecificFormProperties(), ilObjAdvancedEditingGUI\saveTags(), ilStyleCharacteristicGUI\saveTagStyle(), ilObjTestSettingsGeneralGUI\saveTestAccessProperties(), ilObjTestSettingsGeneralGUI\saveTestFinishProperties(), ilObjTestSettingsGeneralGUI\saveTestIntroProperties(), ilObjTestSettingsGeneralGUI\saveTestRunProperties(), ilObjTestSettingsGeneralGUI\saveTestSequenceSettings(), ilObjMediaPoolGUI\saveTitlesAndDescriptions(), ilDclTextRecordFieldModel\setValueFromForm(), ilDclCopyRecordFieldModel\setValueFromForm(), ilDclFileuploadRecordFieldModel\setValueFromForm(), ilDclMobRecordFieldModel\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(), ilObjItemGroupGUI\updateCustom(), ilObjPortfolioTemplateGUI\updateCustom(), ilObjBlogGUI\updateCustom(), ilObjBookingPoolGUI\updateCustom(), ilObjExerciseGUI\updateCustom(), ilObjDataCollectionGUI\updateCustom(), ilObjPortfolioGUI\updateCustom(), ilObjMediaPoolGUI\updateCustom(), ilObjBibliographicGUI\updateCustom(), ilObjContentPageGUI\updateCustom(), ilForumSettingsGUI\updateCustomValues(), ilAdvancedMDFieldTranslations\updateFromForm(), ilConsultationHoursGUI\updateGroup(), ilObjCourseGUI\updateInfoObject(), ilObjLinkResourceGUI\updateLink(), ilMediaPoolPageGUI\updateMediaPoolPage(), ilObjContentObjectGUI\updateMenuEntry(), ilObjEmployeeTalkGUI\updateObject(), ilObjGroupGUI\updateObject(), ilObjCourseGUI\updateObject(), ilObjCategoryGUI\updateObject(), ilPageLayoutGUI\updateProperties(), ilMDEditorGUI\updateQuickEdit(), 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 ilSurveyPhrasesGUI\writePostData().

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:49
+ 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 ilObjEmployeeTalkGUI\cancelDeleteObject(), ilObjTalkTemplateGUI\executeCommand(), and 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 file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ 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 ilFormPropertyGUI\getItemByPostVar().

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(), executeCommand(), ilExcCriteriaText\exportCustomForm(), ilExcCriteriaCatalogueGUI\exportForm(), ilExcCriteriaGUI\exportForm(), assOrderingQuestionGUI\fetchSolutionListFromSubmittedForm(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\fillForm(), ilStudyProgrammeTypeCustomIconsFormGUI\fillForm(), ilDclBaseRecordRepresentation\fillFormInput(), ilDclTextRecordRepresentation\fillFormInput(), ilTermsOfServiceCriterionFormGUI\fillObject(), ilAccessibilityCriterionFormGUI\fillObject(), ilDclBaseRecordModel\fillStandardFieldFormInput(), ilTestSettingsGUI\formPropertyExists(), ilObjQuestionPoolSettingsGeneralGUI\formPropertyExists(), ilBookingScheduleGUI\formToObject(), ilExAssignmentEditorGUI\getAssignmentValues(), ilTCPDFRenderer\getConfigFromForm(), ilLTIConsumeProviderFormGUI\getDynRegRequest(), ilCertificateGUI\getEditorForm(), ilWebDAVMountInstructionsDocumentFormGUI\getFileUploadResult(), getInput(), ilAssOrderingQuestionAuthoringFormGUI\getOrderingElementInputField(), ilWebDAVMountInstructionsDocumentFormGUI\getRawMountInstructionsFromFileUpload(), ilTermsOfServiceSettingsFormGUI\getTranslatedError(), ilStyleCharacteristicGUI\getValues(), ilNewsItemGUI\getValuesNewsItem(), ilExAssignmentEditorGUI\handleDisabledFields(), ilExAssignmentEditorGUI\handleDisabledPeerFields(), ilUserProfileBadgeGUI\importConfigToForm(), ilCourseLPBadgeGUI\importConfigToForm(), ilAdvancedMDFieldDefinition\importDefinitionFormPostValues(), ilObjPortfolioTemplateGUI\initEditCustomForm(), ilObjContentPageGUI\initEditCustomForm(), ilAssClozeTestFeedback\initFbPropsForNumericGap(), ilAssClozeTestFeedback\initFbPropsForSelectGap(), ilAssClozeTestFeedback\initFbPropsForTextGap(), ilAssClozeTestFeedback\initFeedbackFieldsPerGapQuestion(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilAssQuestionFeedback\initGenericFormProperties(), ilLTIConsumeProviderFormGUI\initProvider(), ilAssConfigurableMultiOptionQuestionFeedback\initSpecificFormProperties(), ilAssMultiOptionQuestionFeedback\initSpecificFormProperties(), ilAssClozeTestFeedback\initSpecificFormProperties(), ilMailTemplateGUI\insertTemplate(), ilObjTestSettingsGeneralGUI\isSkillServiceSettingToBeAdjusted(), assMatchingQuestionGUI\isValidTermAndDefinitionAmount(), ilSearchBaseGUI\loadCreationFilter(), ilObjCourseReferenceGUI\loadPropertiesFromSettingsForm(), ilContainerReferenceGUI\loadPropertiesFromSettingsForm(), ilEmployeeTalkAppointmentGUI\loadRecurrenceSettings(), ilCalendarAppointmentGUI\loadRecurrenceSettings(), ilObjRoleGUI\loadRoleProperties(), ilObjQuestionPoolSettingsGeneralGUI\performSaveForm(), ilObjTestSettingsGeneralGUI\performSaveForm(), ilTCPDFRenderer\populateConfigElementsInForm(), ilWkhtmlToPdfConfigFormGUI\populateForm(), ilAdvancedMDFieldDefinitionSelect\prepareCustomDefinitionFormConfirmation(), ilAdvancedMDFieldDefinition\prepareDefinitionFormConfirmation(), assOrderingQuestionGUI\prepareReprintableCorrectionsForm(), ilExAssignmentEditorGUI\processForm(), ilExAssignmentEditorGUI\processPeerReviewForm(), ilAssOrderingQuestionAuthoringFormGUI\renewOrderingElementInput(), ilTestRandomQuestionSetGeneralConfigFormGUI\save(), ilObjTestSettingsGeneralGUI\saveAvailabilityProperties(), 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(), ilObjTestSettingsGeneralGUI\saveGeneralProperties(), ilTermsOfServiceCriterionFormGUI\saveObject(), ilAccessibilityDocumentFormGUI\saveObject(), ilTermsOfServiceDocumentFormGUI\saveObject(), ilAccessibilityCriterionFormGUI\saveObject(), ilObjEmployeeTalkSeriesGUI\saveObject(), ilObjTestSettingsGeneralGUI\saveQuestionBehaviourProperties(), ilAssClozeTestFeedback\saveSpecificFormProperties(), ilStyleCharacteristicGUI\saveTagStyle(), ilObjTestSettingsGeneralGUI\saveTestIntroProperties(), ilObjTestSettingsGeneralGUI\saveTestRunProperties(), assClozeTestGUI\saveTextOrSelectGapCorrectionFormProperty(), ilBadgeManagementGUI\setBadgeFormValues(), ilMemberAgreementGUI\setCourseDefinedFieldValues(), ilExAssignmentEditorGUI\setDisabledFieldValues(), ilExAssignmentEditorGUI\setDisabledPeerReviewFieldValues(), ilSessionMembershipRegistrationSettingsGUI\setFormValues(), ilCharSelectorGUI\setFormValues(), ilObjBadgeAdministrationGUI\setImageTemplateFormValues(), ilDclBaseRecordModel\setStandardFieldFromForm(), ilDclFileuploadRecordFieldModel\setValueFromForm(), ilDclMobRecordFieldModel\setValueFromForm(), ilPCSectionGUI\setValuesFromForm(), ilSearchGUI\storeRoot(), ilLuceneSearchGUI\storeRoot(), ilExtIdGUI\update(), ilPCLearningHistoryGUI\update(), ilObjPollGUI\updateCustom(), ilObjPortfolioBaseGUI\updateCustom(), ilObjPortfolioTemplateGUI\updateCustom(), ilObjBlogGUI\updateCustom(), ilObjBookingPoolGUI\updateCustom(), ilBlogPostingGUI\updateDate(), ilObjCourseGUI\updateInfoObject(), ilObjGroupGUI\updateObject(), ilObjCourseGUI\updateObject(), ilConsultationHoursGUI\updateSettings(), ilMailTemplateGUI\updateTemplate(), ilObjPollGUI\validateCustom(), SurveyMultipleChoiceQuestionGUI\validateEditForm(), ilCourseLPBadgeGUI\validateForm(), ilWkhtmlToPdfConfigFormGUI\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  }
getItemByPostVar(string $a_post_var)
Get item by post var.
This class represents a property in a property form.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getItems()

ilPropertyFormGUI::getItems ( )

◆ getMode()

ilPropertyFormGUI::getMode ( )

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

References $mode.

Referenced by 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(), 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  }
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(), and getContent().

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

References $data, and getFileUpload().

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

◆ hideRequired()

ilPropertyFormGUI::hideRequired ( string  $a_type)
protected

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

Referenced by insertItem().

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

◆ insertItem()

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

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

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

Referenced by getContent().

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

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

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

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

Referenced by __construct().

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

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

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

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

◆ setTableWidth()

ilPropertyFormGUI::setTableWidth ( string  $a_width)
final

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

Referenced by 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(), ilTestExpressPageObjectGUI\addQuestion(), ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilAssQuestionSkillAssignmentPropertyFormGUI\build(), ilObjEmployeeTalkGUI\cancelDeleteObject(), ilPCTableGUI\editCellAlignment(), ilPCTableGUI\editCellStyle(), ilObjGroupGUI\editMapSettingsObject(), ilObjCourseGUI\editMapSettingsObject(), ilPCMediaObjectGUI\editStyle(), ilForumThreadFormGUI\generateInputItems(), ilObjAuthSettingsGUI\getApacheAuthSettingsForm(), ilObjStyleSheetGUI\getCloneForm(), getContent(), ilLTIConsumeProviderFormGUI\getContentSelectionFrame(), ilObjStyleSheetGUI\getCreateForm(), ilForumSettingsGUI\getCustomForm(), ilLTIConsumeProviderFormGUI\getDynRegError(), ilObjStyleSheetGUI\getImportForm(), ilMailTemplateGUI\getTemplateForm(), ilObjAdvancedEditingGUI\getTinyForm(), ilMailOptionsFormGUI\init(), ilObjUserFolderGUI\initAccessRestrictionForm(), ilWikiPageGUI\initAdvancedMetaDataForm(), ilOrgUnitDefaultPermissionFormGUI\initButtons(), ILIAS\Modules\OrgUnit\ARHelper\BaseForm\initButtons(), ilObjAdvancedEditingGUI\initCharSelectorSettingsForm(), ilAdvancedMDSettingsGUI\initComplexOptionForm(), ilObjEmployeeTalkSeriesGUI\initCreateForm(), ilObjGlossaryGUI\initCreateForm(), ilBlogPostingGUI\initDateForm(), ilLTIConsumeProviderFormGUI\initDynRegForm(), ilObjFolderGUI\initEditForm(), ilObjRootFolderGUI\initEditForm(), ilObjCategoryGUI\initEditForm(), ilObjCourseGUI\initEditForm(), ilContainerGUI\initEditForm(), ilAdvancedMDSettingsGUI\initFieldForm(), ilDclTableViewEditFormGUI\initForm(), ilTermsOfServiceSettingsFormGUI\initForm(), ilLTIConsumerSettingsFormGUI\initForm(), ilBiblLibraryFormGUI\initForm(), ilBiblFieldFilterFormGUI\initForm(), ilLTIConsumeProviderFormGUI\initForm(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilOrgUnitTypeFormGUI\initForm(), ilWebDAVMountInstructionsDocumentFormGUI\initForm(), ilAccessibilityDocumentFormGUI\initForm(), ilTermsOfServiceDocumentFormGUI\initForm(), ilStudyProgrammeTypeCustomIconsFormGUI\initForm(), ilRegistrationSettingsGUI\initForm(), ilContainerReferenceGUI\initForm(), ilObjGroupGUI\initForm(), ilCourseObjectivesGUI\initFormRandom(), ilMembershipAdministrationGUI\initFormSettings(), ilObjAdvancedEditingGUI\initGeneralPageSettingsForm(), ilObjMDSettingsGUI\initGeneralSettingsForm(), ilConsultationHoursGUI\initGroupForm(), ilObjSCORMLearningModuleGUI\initImportForm(), ilCalendarCategoryGUI\initImportForm(), ilObjCourseGUI\initInfoEditor(), ilObjGroupGUI\initInfoEditor(), ilSkillRootGUI\initInputForm(), ilECSSettingsGUI\initMappingsForm(), ilMediaPoolPageGUI\initMediaPoolPageForm(), ilObjectCustomUserFieldsGUI\initMemberForm(), ilObjContentObjectGUI\initMenuEntryForm(), ilObjContentObjectGUI\initMenuForm(), ilObjUserFolderGUI\initNewAccountMailForm(), ilPageObjectGUI\initOpenedContentForm(), ilObjMDSettingsGUI\initSettingsForm(), ilConsultationHoursGUI\initSettingsForm(), ilObjAdvancedEditingGUI\initTagsForm(), ilBlogPostingGUI\initTitleForm(), ilLTIConsumeProviderFormGUI\initToolConfigForm(), ilObjExerciseGUI\listAssignmentsObject(), ilOrgUnitTypeAdvancedMetaDataFormGUI\saveObject(), ilObjOrgUnitSettingsFormGUI\saveObject(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\saveObject(), ilObjMediaObjectGUI\savePropertiesObject(), ilAccessibilityCriterionFormGUI\setCheckInputCalled(), and ilTermsOfServiceCriterionFormGUI\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()

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

◆ setValuesByPost()

ilPropertyFormGUI::setValuesByPost ( )

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

References $DIC.

Referenced by ilBiblLibraryGUI\create(), ilStudyProgrammeTypeCustomIconsFormGUI\fillForm(), ilOrgUnitTypeAdvancedMetaDataFormGUI\fillObject(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\fillObject(), ilOrgUnitTypeFormGUI\fillObject(), ilObjOrgUnitSettingsFormGUI\fillObject(), ilCertificateGUI\getEditorForm(), ilTermsOfServiceSettingsFormGUI\getTranslatedError(), ilDidacticTemplateSettingsGUI\handleUpdateFailure(), ilObjSCORMLearningModuleGUI\import(), ilObjContentObjectGUI\importFileObject(), ilSkillRootGUI\importSkills(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilMailTemplateGUI\insertTemplate(), ilRegistrationGUI\join(), ilCalendarCategoryGUI\save(), ilObjStudyProgrammeGUI\save(), ilCourseObjectivesGUI\save(), ilObjAuthSettingsGUI\saveApacheSettingsObject(), ilObjAdvancedEditingGUI\saveAssessmentSettingsObject(), ilObjAdvancedEditingGUI\saveCharSelectorSettingsObject(), ilObjAdvancedEditingGUI\saveExcAssSettingsObject(), ilAdvancedMDSettingsGUI\saveField(), ilObjectCustomIconConfigurationGUI\saveForm(), ilObjAdvancedEditingGUI\saveFrmPostSettingsObject(), ilObjAdvancedEditingGUI\saveGeneralPageSettingsObject(), ilObjMDSettingsGUI\saveGeneralSettings(), ilObjLinkResourceGUI\saveLinkList(), ilMediaPoolPageGUI\saveMediaPoolPage(), ilObjectCustomUserFieldsGUI\saveMember(), ilObjContentObjectGUI\saveMenuEntry(), ilTermsOfServiceCriterionFormGUI\saveObject(), ilWebDAVMountInstructionsDocumentFormGUI\saveObject(), ilAccessibilityDocumentFormGUI\saveObject(), ilTermsOfServiceDocumentFormGUI\saveObject(), ilAccessibilityCriterionFormGUI\saveObject(), ilObjEmployeeTalkSeriesGUI\saveObject(), ilObjGlossaryGUI\saveObject(), ilContainerGUI\savePasswordObject(), ilCourseObjectivesGUI\saveRandom(), ilMembershipAdministrationGUI\saveSettings(), ilObjLinkResourceGUI\saveSettings(), ilObjAdvancedEditingGUI\saveSurveySettingsObject(), 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(), ilMDEditorGUI\updateQuickEdit(), 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  }
global $DIC
Definition: feed.php:28
+ 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 ilOrgUnitTypeFormGUI\fillObject(), and 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: