ILIAS  release_7 Revision v7.30-3-g800a261c036
ilPropertyFormGUI Class Reference

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

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

Public Member Functions

 __construct ()
 Constructor. More...
 
 executeCommand ()
 Execute command. More...
 
 setTableWidth ($a_width)
 Set table width. More...
 
 getTableWidth ()
 get table width More...
 
 setMode ($a_mode)
 Set Mode ('std', 'subform'). More...
 
 getMode ()
 Get Mode ('std', 'subform'). More...
 
 setTitle ($a_title)
 Set Title. More...
 
 getTitle ()
 Get Title. More...
 
 setTitleIcon ($a_titleicon)
 Set TitleIcon. More...
 
 getTitleIcon ()
 Get TitleIcon. More...
 
 setDescription ($a_val)
 Set description. More...
 
 getDescription ()
 Get description. More...
 
 setTopAnchor ($a_val)
 Set top anchor. More...
 
 getTopAnchor ()
 Get top anchor. More...
 
 setShowTopButtons ($a_val)
 Get show top buttons. More...
 
 getShowTopButtons ()
 Set show top buttons. More...
 
 setForceTopButtons ($a_val)
 Set force top buttons. More...
 
 getForceTopButtons ()
 Get force top buttons. More...
 
 addItem ($a_item)
 Add Item (Property, SectionHeader). More...
 
 removeItemByPostVar ($a_post_var, $a_remove_unused_headers=false)
 Remove Item. More...
 
 getItemByPostVar ($a_post_var)
 Get Item by POST variable. More...
 
 setItems ($a_items)
 Set Items. More...
 
 getItems ()
 Get Items. More...
 
 getInputItemsRecursive ()
 returns a flat array of all input items including the possibly existing subitems recursively More...
 
 setDisableStandardMessage ($a_val)
 Set disable standard message. More...
 
 getDisableStandardMessage ()
 Get disable standard message. More...
 
 getHideLabels ()
 Get a value indicating whether the labels should be hidden or not. More...
 
 setHideLabels ($a_value=true)
 Set a value indicating whether the labels should be hidden or not. More...
 
 setValuesByArray ($a_values, $a_restrict_to_value_keys=false)
 Set form values from an array. More...
 
 setValuesByPost ()
 Set form values from POST values. More...
 
 checkInput ()
 Check Post Input. More...
 
 getInput ($a_post_var, $ensureValidation=true)
 Returns the value of a HTTP-POST variable, identified by the passed id. More...
 
 addCustomProperty ( $a_title, $a_html, $a_info="", $a_alert="", $a_required=false)
 Add a custom property. More...
 
 addCommandButton ($a_cmd, $a_text, $a_id="")
 Add Command button. More...
 
 getCommandButtons ()
 Return all Command buttons. More...
 
 clearCommandButtons ()
 Remove all command buttons. More...
 
 getContent ()
 Get Content. More...
 
 insertItem ($item, $a_sub_item=false)
 
 getHTML ()
 Get HTML. More...
 
 getFileUpload ($a_field, $a_index=null, $a_sub_index=null)
 Get file upload data. More...
 
 hasFileUpload ($a_field, $a_index=null, $a_sub_index=null)
 Was any file uploaded? More...
 
 moveFileUpload ($a_target_directory, $a_field, $a_target_name=null, $a_index=null, $a_sub_index=null)
 Move upload to target directory. More...
 
- Public Member Functions inherited from ilFormGUI
 setFormAction ($a_formaction)
 Set FormAction. More...
 
 getFormAction ()
 Get FormAction. More...
 
 setTarget ($a_target)
 Set Target. More...
 
 getTarget ()
 Get Target. More...
 
 setMultipart ($a_multipart)
 Set Enctype Multipart/Formdata true/false. More...
 
 getMultipart ()
 Get Enctype Multipart/Formdata true/false. More...
 
 setId ($a_id)
 Set Id. More...
 
 getId ()
 Get Id. More...
 
 setName ($a_name)
 Set Name. More...
 
 getName ()
 Get Name. More...
 
 setKeepOpen ($a_keepopen)
 Set Keep Form Tag Open. More...
 
 getKeepOpen ()
 Get Keep Form Tag Open. More...
 
 setOpenTag ($a_open)
 Enable/Disable Open Form Tag. More...
 
 getOpenTag ()
 Get Open Form Tag Enabled. More...
 
 setCloseTag ($a_val)
 Set close tag. More...
 
 getCloseTag ()
 Get close tag. More...
 
 setPreventDoubleSubmission ($a_val)
 Set prevent double submission. More...
 
 getPreventDoubleSubmission ()
 Get prevent double submission. More...
 
 getHTML ()
 Get HTML. More...
 
 getContent ()
 Get Content. More...
 

Protected Member Functions

 hideRequired ($a_type)
 
 rebuildUploadedFiles ()
 try to rebuild files More...
 

Protected Attributes

 $lng
 
 $ctrl
 
 $tpl
 
 $user
 
 $settings
 
 $mode = "std"
 
 $check_input_called = false
 
 $disable_standard_message = false
 
 $top_anchor = "il_form_top"
 
 $titleicon = false
 
 $description = ""
 
 $tbl_width = false
 
 $show_top_buttons = true
 
 $hide_labels = false
 
 $force_top_buttons = false
 
- Protected Attributes inherited from ilFormGUI
 $formaction
 
 $multipart = false
 
 $keepopen = false
 
 $opentag = true
 
 $id
 
 $name
 
 $prevent_double_submission = false
 

Private Attributes

 $buttons = array()
 
 $items = array()
 

Detailed Description

This class represents a property form user interface.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$ @ilCtrl_Calls ilPropertyFormGUI: ilFormPropertyDispatchGUI

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

Constructor & Destructor Documentation

◆ __construct()

ilPropertyFormGUI::__construct ( )

Constructor.

Parameters

Reimplemented in ilAddAnswerModalFormGUI, ilAssOrderingQuestionAuthoringFormGUI, and ilAssQuestionAuthoringFormGUI.

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

94 {
95 global $DIC;
96
97 $this->lng = $DIC->language();
98 $this->ctrl = $DIC->ctrl();
99
100 $this->user = null;
101 if (isset($DIC["ilUser"])) {
102 $this->user = $DIC["ilUser"];
103 }
104
105 $this->settings = null;
106 if (isset($DIC["ilSetting"])) {
107 $this->settings = $DIC["ilSetting"];
108 }
109
110 $lng = $DIC->language();
111
112 $lng->loadLanguageModule("form");
113
114 // avoid double submission
115 $this->setPreventDoubleSubmission(true);
116
117 // do it as early as possible
118 $this->rebuildUploadedFiles();
119 }
user()
Definition: user.php:4
setPreventDoubleSubmission($a_val)
Set prevent double submission.
rebuildUploadedFiles()
try to rebuild files
global $DIC
Definition: goto.php:24
settings()
Definition: settings.php:2

References $DIC, $lng, rebuildUploadedFiles(), ilFormGUI\setPreventDoubleSubmission(), settings(), and user().

+ Here is the call graph for this function:

Member Function Documentation

◆ addCommandButton()

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

Add Command button.

Parameters
stringCommand
stringText

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

619 {
620 $this->buttons[] = array("cmd" => $a_cmd, "text" => $a_text, "id" => $a_id);
621 }

Referenced by FormMailCodesGUI\__construct(), ilChatroomFormFactory\addDefaultBehaviour(), ilAssQuestionAuthoringFormGUI\addGenericAssessmentQuestionCommandButtons(), ilAssOrderingQuestionAuthoringFormGUI\addSpecificOrderingQuestionCommandButtons(), ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilAddAnswerModalFormGUI\build(), ilAssQuestionSkillAssignmentPropertyFormGUI\build(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilAsyncPropertyFormGUI\cloneForm(), ilSamlSettingsGUI\getIdpForm(), ilSamlSettingsGUI\getIdpSettingsForm(), ILIAS\COPage\Editor\Server\UIWrapper\getRenderedForm(), ilSamlSettingsGUI\getSettingsForm(), ilMailOptionsFormGUI\init(), ilBiblFieldFilterFormGUI\initButtons(), ILIAS\Modules\OrgUnit\ARHelper\BaseForm\initButtons(), ilOrgUnitDefaultPermissionFormGUI\initButtons(), ilMemcacheServerFormGUI\initButtons(), arEditGUI\initCommandButtons(), ilLTIConsumeProviderFormGUI\initForm(), ilLTIConsumerSettingsFormGUI\initForm(), ilBiblLibraryFormGUI\initForm(), ilDclTableViewEditFormGUI\initForm(), ilFileVersionFormGUI\initForm(), ilForumThreadFormGUI\initForm(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilOrgUnitTypeFormGUI\initForm(), ilStudyProgrammeTypeCustomIconsFormGUI\initForm(), ilAccessibilityDocumentFormGUI\initForm(), ilTermsOfServiceSettingsFormGUI\initForm(), ilTermsOfServiceDocumentFormGUI\initForm(), and ilWebDAVMountInstructionsDocumentFormGUI\initForm().

+ Here is the caller graph for this function:

◆ addCustomProperty()

ilPropertyFormGUI::addCustomProperty (   $a_title,
  $a_html,
  $a_info = "",
  $a_alert = "",
  $a_required = false 
)

Add a custom property.

Parameters
stringTitle
stringHTML.
stringInfo text.
stringAlert text.
booleanRequired field. (Default false)

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

605 {
606 $this->properties[] = array("type" => "custom",
607 "title" => $a_title,
608 "html" => $a_html,
609 "info" => $a_info);
610 }

◆ addItem()

ilPropertyFormGUI::addItem (   $a_item)

Add Item (Property, SectionHeader).

Parameters
object$a_propertyItem object

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

312 {
313 $a_item->setParentForm($this);
314 return $this->items[] = $a_item;
315 }

Referenced by FormMailCodesGUI\__construct(), ilObjTestSettingsGeneralGUI\addAvailabilityProperties(), ilObjLearningSequenceSettingsGUI\addCommonFieldsToForm(), ilIndividualAssessmentCommonSettingsGUI\addCommonFieldsToForm(), ilTCPDFRenderer\addConfigElementsToForm(), ilObjRemoteCourseGUI\addCustomEditForm(), ilObjRemoteGlossaryGUI\addCustomEditForm(), ilObjRemoteGroupGUI\addCustomEditForm(), ilObjRemoteLearningModuleGUI\addCustomEditForm(), ilObjRemoteTestGUI\addCustomEditForm(), ilObjRemoteWikiGUI\addCustomEditForm(), ilAdvancedMDFieldDefinitionFloat\addCustomFieldToDefinitionForm(), ilAdvancedMDFieldDefinitionGroupBased\addCustomFieldToDefinitionForm(), ilAdvancedMDFieldDefinitionInteger\addCustomFieldToDefinitionForm(), ilAdvancedMDFieldDefinitionSelect\addCustomFieldToDefinitionForm(), ilAdvancedMDFieldDefinitionText\addCustomFieldToDefinitionForm(), ilAdvancedMDFieldDefinitionSelect\addCustomFieldToDefinitionFormInTranslationMode(), ilCronDeleteNeverLoggedInUserAccounts\addCustomSettingsToForm(), ilForumCronNotification\addCustomSettingsToForm(), ilConsultationHourCron\addCustomSettingsToForm(), ilLoggerCronCleanErrorFiles\addCustomSettingsToForm(), ilMailCronNotification\addCustomSettingsToForm(), ilMailCronOrphanedMails\addCustomSettingsToForm(), ilCronOerHarvester\addCustomSettingsToForm(), ilCronDeleteInactivatedUserAccounts\addCustomSettingsToForm(), ilCronDeleteInactiveUserAccounts\addCustomSettingsToForm(), ilSCCronTrash\addCustomSettingsToForm(), ilExAssTypePortfolioGUI\addEditFormCustomProperties(), ilExAssTypeTextGUI\addEditFormCustomProperties(), ilExAssTypeWikiTeamGUI\addEditFormCustomProperties(), SurveyMatrixQuestionGUI\addFieldsToEditForm(), SurveyMetricQuestionGUI\addFieldsToEditForm(), SurveyMultipleChoiceQuestionGUI\addFieldsToEditForm(), SurveySingleChoiceQuestionGUI\addFieldsToEditForm(), SurveyTextQuestionGUI\addFieldsToEditForm(), arEditGUI\addFormField(), ilCharSelectorGUI\addFormProperties(), ilObjTestSettingsGeneralGUI\addGeneralProperties(), ilPersonalProfileGUI\addLocationToForm(), ilMembershipRegistrationSettingsGUI\addMembershipFormElements(), ilSamlSettingsGUI\addMetadataElement(), ilObjTestSettingsScoringResultsGUI\addMiscSettingsFormSection(), ilObjTestSettingsGeneralGUI\addPresentationProperties(), ilObjTestSettingsGeneralGUI\addQuestionBehaviourProperties(), ilObjTestSettingsScoringResultsGUI\addResultDetailsSettingsFormSection(), ilObjTestSettingsScoringResultsGUI\addResultSummarySettingsFormSection(), ilObjTestSettingsScoringResultsGUI\addScoringSettingsFormSection(), ilECSObjectSettings\addSettingsToForm(), ilSkillTreeNodeGUI\addStatusInput(), ilObjTestSettingsGeneralGUI\addTestAccessProperties(), ilObjTestSettingsGeneralGUI\addTestFinishProperties(), ilObjTestSettingsGeneralGUI\addTestIntroProperties(), ilObjTestSettingsGeneralGUI\addTestRunProperties(), ilObjTestSettingsGeneralGUI\addTestSequenceProperties(), ilAdvancedMDFieldDefinition\addToFieldDefinitionForm(), ilTaxMDGUI\addToMDForm(), ilOrgUnitTypeFormGUI\addTranslationInputs(), ilWkhtmlToPdfConfigFormGUI\appendOutputOptionsForm(), ilWkhtmlToPdfConfigFormGUI\appendPageSettingsForm(), ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilAddAnswerModalFormGUI\build(), ilAssQuestionSkillAssignmentPropertyFormGUI\build(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilAsyncPropertyFormGUI\cloneForm(), ilAssQuestionFeedback\completeGenericFormProperties(), ilAssClozeTestFeedback\completeSpecificFormProperties(), ilAssConfigurableMultiOptionQuestionFeedback\completeSpecificFormProperties(), ilAssMultiOptionQuestionFeedback\completeSpecificFormProperties(), getContent(), ilSamlSettingsGUI\getIdpSettingsForm(), ilSamlSettingsGUI\getSettingsForm(), ilExAssignmentEditorGUI\handleDisabledPeerFields(), ilMailOptionsFormGUI\init(), ilCourseLPBadgeGUI\initConfigForm(), ilUserProfileBadgeGUI\initConfigForm(), ilObjPortfolioGUI\initCopyPageFormOptions(), ilObjPortfolioTemplateGUI\initCopyPageFormOptions(), ilExcCriteriaText\initCustomForm(), ilObjPortfolioTemplateGUI\initDidacticTemplate(), ilObjectGUI\initDidacticTemplate(), ilObjBibliographicGUI\initEditCustomForm(), ilObjBlogGUI\initEditCustomForm(), ilObjBookingPoolGUI\initEditCustomForm(), ilObjContentPageGUI\initEditCustomForm(), ilObjExerciseGUI\initEditCustomForm(), ilObjItemGroupGUI\initEditCustomForm(), ilObjMediaPoolGUI\initEditCustomForm(), ilObjPollGUI\initEditCustomForm(), ilObjPortfolioBaseGUI\initEditCustomForm(), ilObjPortfolioTemplateGUI\initEditCustomForm(), ilLTIConsumeProviderFormGUI\initForm(), ilLTIConsumerSettingsFormGUI\initForm(), ilBiblLibraryFormGUI\initForm(), ilBiblFieldFilterFormGUI\initForm(), ilDclTableViewEditFormGUI\initForm(), ilFileVersionFormGUI\initForm(), ilForumThreadFormGUI\initForm(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilOrgUnitTypeFormGUI\initForm(), ilStudyProgrammeTypeCustomIconsFormGUI\initForm(), ilAccessibilityDocumentFormGUI\initForm(), ilMemcacheServerFormGUI\initForm(), ilTermsOfServiceSettingsFormGUI\initForm(), ilTermsOfServiceDocumentFormGUI\initForm(), ilWebDAVMountInstructionsDocumentFormGUI\initForm(), ilOrgUnitAuthorityFormGUI\initFormElements(), ilOrgUnitPositionFormGUI\initFormElements(), ilOrgUnitDefaultPermissionFormGUI\initFormElements(), ilContainerGUI\initListPresentationForm(), ilAdvancedMDFieldDefinitionGroupBased\initOptionForm(), ilObjectServiceSettingsGUI\initServiceSettingsForm(), ilContainerGUI\initSortingForm(), insertItem(), ilMDEditorGUI\listQuickEditCopyright(), ilAdministrationSettingsFormHandler\parseFieldDefinition(), assMatchingQuestionGUI\populateAnswerSpecificFormPart(), assMultipleChoiceGUI\populateAnswerSpecificFormPart(), assNumericGUI\populateAnswerSpecificFormPart(), assSingleChoiceGUI\populateAnswerSpecificFormPart(), assTextQuestionGUI\populateAnswerSpecificFormPart(), assTextSubsetGUI\populateAnswerSpecificFormPart(), assClozeTestGUI\populateAnswerSpecificFormPart(), assErrorTextGUI\populateAnswerSpecificFormPart(), assKprimChoiceGUI\populateAnswerSpecificFormPart(), assOrderingQuestionGUI\populateAnswerSpecificFormPart(), assErrorTextGUI\populateCorrectionsFormProperties(), assFileUploadGUI\populateCorrectionsFormProperties(), assImagemapQuestionGUI\populateCorrectionsFormProperties(), assKprimChoiceGUI\populateCorrectionsFormProperties(), assLongMenuGUI\populateCorrectionsFormProperties(), assMatchingQuestionGUI\populateCorrectionsFormProperties(), assMultipleChoiceGUI\populateCorrectionsFormProperties(), assNumericGUI\populateCorrectionsFormProperties(), assOrderingHorizontalGUI\populateCorrectionsFormProperties(), assOrderingQuestionGUI\populateCorrectionsFormProperties(), assSingleChoiceGUI\populateCorrectionsFormProperties(), assTextSubsetGUI\populateCorrectionsFormProperties(), ilAssQuestionSkillAssignmentPropertyFormGUI\populateFullProperties(), assClozeTestGUI\populateGapCombinationCorrectionFormProperty(), ilAssQuestionSkillAssignmentPropertyFormGUI\populateLimitedProperties(), assImagemapQuestionGUI\populateQuestionSpecificFormPart(), assJavaAppletGUI\populateQuestionSpecificFormPart(), assMatchingQuestionGUI\populateQuestionSpecificFormPart(), assMultipleChoiceGUI\populateQuestionSpecificFormPart(), assNumericGUI\populateQuestionSpecificFormPart(), assOrderingHorizontalGUI\populateQuestionSpecificFormPart(), assOrderingQuestionGUI\populateQuestionSpecificFormPart(), assSingleChoiceGUI\populateQuestionSpecificFormPart(), assTextQuestionGUI\populateQuestionSpecificFormPart(), assTextSubsetGUI\populateQuestionSpecificFormPart(), assClozeTestGUI\populateQuestionSpecificFormPart(), assErrorTextGUI\populateQuestionSpecificFormPart(), assFileUploadGUI\populateQuestionSpecificFormPart(), assFlashQuestionGUI\populateQuestionSpecificFormPart(), assKprimChoiceGUI\populateQuestionSpecificFormPart(), assLongMenuGUI\populateQuestionSpecificFormPart(), assQuestionGUI\populateTaxonomyFormSection(), ilAdvancedMDFieldDefinitionSelect\prepareCustomDefinitionFormConfirmation(), ilAdvancedMDFieldDefinition\prepareDefinitionFormConfirmation(), ilBiblEntryDetailPresentationGUI\renderAttributes(), and ilBiblEntryDetailPresentationGUI\renderLibraries().

+ Here is the caller graph for this function:

◆ checkInput()

ilPropertyFormGUI::checkInput ( )

Check Post Input.

This method also strips slashes and html from input and sets the alert texts for the items, if the input was not ok.

Returns
boolean ok true/false

Reimplemented in ilAsyncPropertyFormGUI.

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

489 {
490 global $DIC;
491
492 if ($this->check_input_called) {
493 die("Error: ilPropertyFormGUI->checkInput() called twice.");
494 }
495
496 $ok = true;
497 foreach ($this->items as $item) {
498 $item_ok = $item->checkInput();
499 if (!$item_ok) {
500 $ok = false;
501 }
502 }
503
504 // check if POST is missint completely (if post_max_size exceeded)
505 if (count($this->items) > 0 && !is_array($_POST)) {
506 $ok = false;
507 }
508
509 $this->check_input_called = true;
510
511
512
513 // try to keep uploads for another try
514 if (!$ok && $_POST["ilfilehash"] && sizeof($_FILES)) {
515 $hash = $_POST["ilfilehash"];
516
517 foreach ($_FILES as $field => $data) {
518 // only try to keep files that are ok
519 // see 25484: Wrong error handling when uploading icon instead of tile
520 $item = $this->getItemByPostVar($field);
521 if (is_bool($item) || !$item->checkInput()) {
522 continue;
523 }
524 // we support up to 2 nesting levels (see test/assesment)
525 if (is_array($data["tmp_name"])) {
526 foreach ($data["tmp_name"] as $idx => $upload) {
527 if (is_array($upload)) {
528 foreach ($upload as $idx2 => $file) {
529 if ($file && is_uploaded_file($file)) {
530 $file_name = $data["name"][$idx][$idx2];
531 $file_type = $data["type"][$idx][$idx2];
532 $this->keepFileUpload($hash, $field, $file, $file_name, $file_type, $idx, $idx2);
533 }
534 }
535 } elseif ($upload && is_uploaded_file($upload)) {
536 $file_name = $data["name"][$idx];
537 $file_type = $data["type"][$idx];
538 $this->keepFileUpload($hash, $field, $upload, $file_name, $file_type, $idx);
539 }
540 }
541 } else {
542 $this->keepFileUpload($hash, $field, $data["tmp_name"], $data["name"], $data["type"]);
543 }
544 }
545 }
546 $http = $DIC->http();
547 $txt = $DIC->language()->txt("form_input_not_valid");
548 switch ($http->request()->getHeaderLine('Accept')) {
549 // When JS asks for a valid JSON-Response, we send the success and message as JSON
550 case 'application/json':
551 $stream = \ILIAS\Filesystem\Stream\Streams::ofString(json_encode([
552 'success' => $ok,
553 'message' => $txt,
554 ]));
555 $http->saveResponse($http->response()->withBody($stream));
556
557 return $ok;
558
559 // Otherwise we send it using ilUtil and it will be rendered in the Template
560 default:
561
562 if (!$ok && !$this->getDisableStandardMessage()) {
564 }
565
566 return $ok;
567 }
568 }
$_POST["username"]
static ofString($string)
Creates a new stream with an initial value.
Definition: Streams.php:25
getDisableStandardMessage()
Get disable standard message.
getItemByPostVar($a_post_var)
Get Item by POST variable.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
$txt
Definition: error.php:13
$http
Definition: raiseError.php:7
$data
Definition: storeScorm.php:23

References $_POST, $data, $DIC, $http, $ok, $txt, getDisableStandardMessage(), getItemByPostVar(), ILIAS\Filesystem\Stream\Streams\ofString(), and ilUtil\sendFailure().

Referenced by ilBiblFieldFilterFormGUI\fillObject(), ilOrgUnitAuthorityFormGUI\fillObject(), ilOrgUnitDefaultPermissionFormGUI\fillObject(), ilObjOrgUnitSettingsFormGUI\fillObject(), ilOrgUnitTypeAdvancedMetaDataFormGUI\fillObject(), ilOrgUnitTypeFormGUI\fillObject(), ilAccessibilityCriterionFormGUI\fillObject(), ilMemcacheServerFormGUI\fillObject(), ilTermsOfServiceSettingsFormGUI\fillObject(), ilTermsOfServiceCriterionFormGUI\fillObject(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\fillObject(), ilExAssignmentEditorGUI\processForm(), ilExAssignmentEditorGUI\processPeerReviewForm(), ilMailOptionsFormGUI\save(), ilObjectCustomIconConfigurationGUI\saveForm(), ilSamlSettingsGUI\saveIdpSettings(), ilSamlSettingsGUI\saveNewIdp(), ilBiblLibraryFormGUI\saveObject(), ilSamlSettingsGUI\saveSettings(), ilSamlSettingsGUI\saveUserAttributeMapping(), and arEditGUI\setArFieldsAfterSubmit().

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

◆ clearCommandButtons()

ilPropertyFormGUI::clearCommandButtons ( )

Remove all command buttons.

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

638 {
639 $this->buttons = array();
640 }

Referenced by ILIAS\COPage\Editor\Server\UIWrapper\getRenderedForm(), and ilAssOrderingQuestionAuthoringFormGUI\renewOrderingCommandButtons().

+ Here is the caller graph for this function:

◆ executeCommand()

ilPropertyFormGUI::executeCommand ( )

Execute command.

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

125 {
126 $ilCtrl = $this->ctrl;
127
128 $next_class = $ilCtrl->getNextClass($this);
129 $cmd = $ilCtrl->getCmd();
130
131 switch ($next_class) {
132 case 'ilformpropertydispatchgui':
133 $ilCtrl->saveParameter($this, 'postvar');
134 include_once './Services/Form/classes/class.ilFormPropertyDispatchGUI.php';
135 $form_prop_dispatch = new ilFormPropertyDispatchGUI();
136 $item = $this->getItemByPostVar($_REQUEST["postvar"]);
137 $form_prop_dispatch->setItem($item);
138 return $ilCtrl->forwardCommand($form_prop_dispatch);
139 break;
140
141 }
142 return false;
143 }

References $ctrl, and getItemByPostVar().

+ Here is the call graph for this function:

◆ getCommandButtons()

ilPropertyFormGUI::getCommandButtons ( )

Return all Command buttons.

Returns
array

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

630 {
631 return $this->buttons;
632 }

References $buttons.

Referenced by ilAsyncPropertyFormGUI\cloneForm().

+ Here is the caller graph for this function:

◆ getContent()

ilPropertyFormGUI::getContent ( )

Get Content.

Reimplemented from ilFormGUI.

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

646 {
647 global $DIC;
649 $tpl = $DIC["tpl"];
651
652 include_once("./Services/YUI/classes/class.ilYuiUtil.php");
656
657 $tpl->addJavaScript("./Services/JavaScript/js/Basic.js");
658 $tpl->addJavaScript("Services/Form/js/Form.js");
659
660 $this->tpl = new ilTemplate("tpl.property_form.html", true, true, "Services/Form");
661
662 // check if form has not title and first item is a section header
663 // -> use section header for title and remove section header
664 // -> command buttons are presented on top
665 $fi = $this->items[0];
666 if ($this->getMode() == "std" &&
667 $this->getTitle() == "" &&
668 is_object($fi) && $fi->getType() == "section_header"
669 ) {
670 $this->setTitle($fi->getTitle());
671 unset($this->items[0]);
672 }
673
674
675 // title icon
676 if ($this->getTitleIcon() != "" && @is_file($this->getTitleIcon())) {
677 $this->tpl->setCurrentBlock("title_icon");
678 $this->tpl->setVariable("IMG_ICON", $this->getTitleIcon());
679 $this->tpl->parseCurrentBlock();
680 }
681
682 // title
683 if ($this->getTitle() != "") {
684 // commands on top
685 if (count($this->buttons) > 0 && $this->getShowTopButtons() && (count($this->items) > 2 || $this->force_top_buttons)) {
686 // command buttons
687 foreach ($this->buttons as $button) {
688 $this->tpl->setCurrentBlock("cmd2");
689 $this->tpl->setVariable("CMD", $button["cmd"]);
690 $this->tpl->setVariable("CMD_TXT", $button["text"]);
691 if ($button["id"] != "") {
692 $this->tpl->setVariable("CMD2_ID", " id='" . $button["id"] . "_top'");
693 }
694 $this->tpl->parseCurrentBlock();
695 }
696 $this->tpl->setCurrentBlock("commands2");
697 $this->tpl->parseCurrentBlock();
698 }
699
700 if (is_object($ilSetting)) {
701 if ($ilSetting->get('char_selector_availability') > 0) {
702 require_once 'Services/UIComponent/CharSelector/classes/class.ilCharSelectorGUI.php';
704 $char_selector = ilCharSelectorGUI::_getCurrentGUI();
705 if ($char_selector->getConfig()->getAvailability() == ilCharSelectorConfig::ENABLED) {
706 $char_selector->addToPage();
707 $this->tpl->TouchBlock('char_selector');
708 }
709 }
710 }
711 }
712
713 $this->tpl->setCurrentBlock("header");
714 $this->tpl->setVariable("TXT_TITLE", $this->getTitle());
715 //$this->tpl->setVariable("LABEL", $this->getTopAnchor());
716 $this->tpl->setVariable("TXT_DESCRIPTION", $this->getDescription());
717 $this->tpl->parseCurrentBlock();
718 }
719 $this->tpl->touchBlock("item");
720
721 // properties
722 $this->required_text = false;
723 foreach ($this->items as $item) {
724 if ($item->getType() != "hidden") {
725 $this->insertItem($item);
726 }
727 }
728
729 // required
730 if ($this->required_text && $this->getMode() == "std") {
731 $this->tpl->setCurrentBlock("required_text");
732 $this->tpl->setVariable("TXT_REQUIRED", $lng->txt("required_field"));
733 $this->tpl->parseCurrentBlock();
734 }
735
736 // command buttons
737 foreach ($this->buttons as $button) {
738 $this->tpl->setCurrentBlock("cmd");
739 $this->tpl->setVariable("CMD", $button["cmd"]);
740 $this->tpl->setVariable("CMD_TXT", $button["text"]);
741
742 if ($button["id"] != "") {
743 $this->tpl->setVariable("CMD_ID", " id='" . $button["id"] . "'");
744 }
745
746 $this->tpl->parseCurrentBlock();
747 }
748
749 // #18808
750 if ($this->getMode() != "subform") {
751 // try to keep uploads even if checking input fails
752 if ($this->getMultipart()) {
753 $hash = $_POST["ilfilehash"];
754 if (!$hash) {
755 $hash = md5(uniqid(mt_rand(), true));
756 }
757 $fhash = new ilHiddenInputGUI("ilfilehash");
758 $fhash->setValue($hash);
759 $this->addItem($fhash);
760 }
761 }
762
763 // hidden properties
764 $hidden_fields = false;
765 foreach ($this->items as $item) {
766 if ($item->getType() == "hidden") {
767 $item->insert($this->tpl);
768 $hidden_fields = true;
769 }
770 }
771
772 if ($this->required_text || count($this->buttons) > 0 || $hidden_fields) {
773 $this->tpl->setCurrentBlock("commands");
774 $this->tpl->parseCurrentBlock();
775 }
776
777
778 if ($this->getMode() == "subform") {
779 $this->tpl->touchBlock("sub_table");
780 } else {
781 $this->tpl->touchBlock("std_table");
782 $this->tpl->setVariable('STD_TABLE_WIDTH', $this->getTableWidth());
783 }
784
785 return $this->tpl->get();
786 }
static _isAllowed()
Check if the CharSelector is allowed for the current GUI.
static _getCurrentGUI(ilObjTest $a_test_obj=null)
Get the GUI that is used for the currently available selector (other GUI instances may exist for conf...
getMultipart()
Get Enctype Multipart/Formdata true/false.
This class represents a hidden form property in a property form.
addItem($a_item)
Add Item (Property, SectionHeader).
getTableWidth()
get table width
getDescription()
Get description.
insertItem($item, $a_sub_item=false)
getMode()
Get Mode ('std', 'subform').
getShowTopButtons()
Set show top buttons.
setTitle($a_title)
Set Title.
special template class to simplify handling of ITX/PEAR
static initDom(ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Dom.
static initEvent(ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Event.
static initAnimation(ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Animation.
global $ilSetting
Definition: privfeed.php:17

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

+ Here is the call graph for this function:

◆ getDescription()

ilPropertyFormGUI::getDescription ( )

Get description.

Returns
string description

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

References $description.

Referenced by getContent().

+ Here is the caller graph for this function:

◆ getDisableStandardMessage()

ilPropertyFormGUI::getDisableStandardMessage ( )

Get disable standard message.

Returns
boolean disable standard message

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

References $disable_standard_message.

Referenced by checkInput().

+ Here is the caller graph for this function:

◆ getFileUpload()

ilPropertyFormGUI::getFileUpload (   $a_field,
  $a_index = null,
  $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 1028 of file class.ilPropertyFormGUI.php.

1029 {
1030 $res = array();
1031 if ($a_index) {
1032 if ($_FILES[$a_field]["tmp_name"][$a_index][$a_sub_index]) {
1033 $res = array(
1034 "tmp_name" => $_FILES[$a_field]["tmp_name"][$a_index][$a_sub_index],
1035 "name" => $_FILES[$a_field]["name"][$a_index][$a_sub_index],
1036 "type" => $_FILES[$a_field]["type"][$a_index][$a_sub_index],
1037 "error" => $_FILES[$a_field]["error"][$a_index][$a_sub_index],
1038 "size" => $_FILES[$a_field]["size"][$a_index][$a_sub_index],
1039 "is_upload" => $_FILES[$a_field]["is_upload"][$a_index][$a_sub_index] ?? true
1040 );
1041 }
1042 } elseif ($a_sub_index) {
1043 if ($_FILES[$a_field]["tmp_name"][$a_index]) {
1044 $res = array(
1045 "tmp_name" => $_FILES[$a_field]["tmp_name"][$a_index],
1046 "name" => $_FILES[$a_field]["name"][$a_index],
1047 "type" => $_FILES[$a_field]["type"][$a_index],
1048 "error" => $_FILES[$a_field]["error"][$a_index],
1049 "size" => $_FILES[$a_field]["size"][$a_index],
1050 "is_upload" => $_FILES[$a_field]["is_upload"][$a_index] ?? true
1051 );
1052 }
1053 } else {
1054 if ($_FILES[$a_field]["tmp_name"]) {
1055 $res = array(
1056 "tmp_name" => $_FILES[$a_field]["tmp_name"],
1057 "name" => $_FILES[$a_field]["name"],
1058 "type" => $_FILES[$a_field]["type"],
1059 "error" => $_FILES[$a_field]["error"],
1060 "size" => $_FILES[$a_field]["size"],
1061 "is_upload" => $_FILES[$a_field]["is_upload"] ?? true
1062 );
1063 }
1064 }
1065 return $res;
1066 }
foreach($_POST as $key=> $value) $res

References $res.

Referenced by hasFileUpload(), and moveFileUpload().

+ Here is the caller graph for this function:

◆ getForceTopButtons()

ilPropertyFormGUI::getForceTopButtons ( )

Get force top buttons.

Returns
bool force top buttons

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

References $force_top_buttons.

◆ getHideLabels()

ilPropertyFormGUI::getHideLabels ( )

Get a value indicating whether the labels should be hidden or not.

Returns
boolean true, to hide the labels; otherwise, false.

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

References $hide_labels.

Referenced by insertItem().

+ Here is the caller graph for this function:

◆ getHTML()

ilPropertyFormGUI::getHTML ( )

Get HTML.

Reimplemented from ilFormGUI.

Reimplemented in ilLTIConsumerProviderSelectionFormTableGUI, and ilAsyncPropertyFormGUI.

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

957 {
958 $html = parent::getHTML();
959
960 // #13531 - get content that has to reside outside of the parent form tag, e.g. panels/layers
961 foreach ($this->items as $item) {
962 // #13536 - ilFormSectionHeaderGUI does NOT extend ilFormPropertyGUI ?!
963 if (method_exists($item, "getContentOutsideFormTag")) {
964 $outside = $item->getContentOutsideFormTag();
965 if ($outside) {
966 $html .= $outside;
967 }
968 }
969 }
970
971 return $html;
972 }

Referenced by ilChatroomAdminViewGUI\createSettingTemplate(), ILIAS\COPage\Editor\Server\UIWrapper\getRenderedForm(), arGUI\save(), ilCertificateGUI\setTemplateContent(), ilSamlSettingsGUI\showIdpSettings(), ilSamlSettingsGUI\showNewIdpForm(), ilSamlSettingsGUI\showSettings(), and ilSamlSettingsGUI\showUserAttributeMappingForm().

+ Here is the caller graph for this function:

◆ getInput()

ilPropertyFormGUI::getInput (   $a_post_var,
  $ensureValidation = true 
)

Returns the value of a HTTP-POST variable, identified by the passed id.

Parameters
stringThe key used for value determination
booleanA flag whether the form input has to be validated before calling this method
Returns
string The value of a HTTP-POST variable, identified by the passed id @access public

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

581 {
582 // this check ensures, that checkInput has been called (incl. stripSlashes())
583 if (!$this->check_input_called && $ensureValidation) {
584 die("Error: ilPropertyFormGUI->getInput() called without calling checkInput() first.");
585 }
586
587 return $_POST[$a_post_var];
588 }

References $_POST.

Referenced by ilAdvancedMDFieldDefinitionSelect\buildConfirmedObjects(), ilDclTextFieldModel\checkFieldCreationInput(), ilDclBaseFieldModel\checkValidityFromForm(), ilDclTextFieldModel\checkValidityFromForm(), ilPCTabsGUI\checkWidthHeight(), ilDclTableViewEditFormGUI\createTableView(), ilCmiXapiLP\fetchModeOption(), ilBiblFieldFilterFormGUI\fillObject(), ilOrgUnitAuthorityFormGUI\fillObject(), ilOrgUnitDefaultPermissionFormGUI\fillObject(), ilObjOrgUnitSettingsFormGUI\fillObject(), ilOrgUnitTypeAdvancedMetaDataFormGUI\fillObject(), ilOrgUnitTypeFormGUI\fillObject(), ilAccessibilityCriterionFormGUI\fillObject(), ilMemcacheServerFormGUI\fillObject(), ilTermsOfServiceCriterionFormGUI\fillObject(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\fillObject(), ilAccessibilityUserHasLanguageCriterionGUI\getConfigByForm(), ilTermsOfServiceUserHasCountryCriterionGUI\getConfigByForm(), ilTermsOfServiceUserHasGlobalRoleCriterionGUI\getConfigByForm(), ilTermsOfServiceUserHasLanguageCriterionGUI\getConfigByForm(), ilCourseLPBadgeGUI\getConfigFromForm(), ilDclBaseFieldModel\getConfirmationGUI(), ilDclSelectionFieldModel\getConfirmationGUI(), ilCharSelectorGUI\getFormValues(), ilAdvancedMDFieldDefinitionFloat\importCustomDefinitionFormPostValues(), ilAdvancedMDFieldDefinitionGroupBased\importCustomDefinitionFormPostValues(), ilAdvancedMDFieldDefinitionInteger\importCustomDefinitionFormPostValues(), ilAdvancedMDFieldDefinitionText\importCustomDefinitionFormPostValues(), ilExcCriteriaText\importCustomForm(), ilAdvancedMDFieldDefinition\importDefinitionFormPostValues(), SurveyMatrixQuestionGUI\importEditFormValues(), SurveyMetricQuestionGUI\importEditFormValues(), SurveyMultipleChoiceQuestionGUI\importEditFormValues(), SurveySingleChoiceQuestionGUI\importEditFormValues(), SurveyTextQuestionGUI\importEditFormValues(), ilExAssTypeTextGUI\importFormToAssignment(), ilExAssTypePortfolioGUI\importFormToAssignment(), ilExAssTypeWikiTeamGUI\importFormToAssignment(), ilAdvancedMDFieldDefinitionSelect\importTranslatedFormPostValues(), ilLTIConsumerSettingsFormGUI\initObject(), ilLTIConsumeProviderFormGUI\initProvider(), ilDclSelectionFieldModel\isConfirmationRequired(), ilObjTestSettingsGeneralGUI\isSkillServiceSettingToBeAdjusted(), ilContainerReferenceGUI\loadPropertiesFromSettingsForm(), ilObjCourseReferenceGUI\loadPropertiesFromSettingsForm(), ilObjTestSettingsGeneralGUI\performSaveForm(), ilAdvancedMDFieldDefinitionSelect\prepareCustomDefinitionFormConfirmation(), ilAdvancedMDFieldDefinition\prepareDefinitionFormConfirmation(), ilExAssignmentEditorGUI\processForm(), ilExAssignmentEditorGUI\processPeerReviewForm(), ilConsultationHoursGUI\rewriteBookingIdsForAppointments(), ilMailOptionsFormGUI\save(), ilObjTestSettingsGeneralGUI\saveAvailabilityProperties(), assErrorTextGUI\saveCorrectionsFormProperties(), assFileUploadGUI\saveCorrectionsFormProperties(), assKprimChoiceGUI\saveCorrectionsFormProperties(), assLongMenuGUI\saveCorrectionsFormProperties(), assMultipleChoiceGUI\saveCorrectionsFormProperties(), assNumericGUI\saveCorrectionsFormProperties(), assOrderingHorizontalGUI\saveCorrectionsFormProperties(), assOrderingQuestionGUI\saveCorrectionsFormProperties(), assSingleChoiceGUI\saveCorrectionsFormProperties(), assTextSubsetGUI\saveCorrectionsFormProperties(), ilMemberAgreementGUI\saveCourseDefinedFields(), ilForumCronNotification\saveCustomSettings(), ilConsultationHourCron\saveCustomSettings(), ilLoggerCronCleanErrorFiles\saveCustomSettings(), ilMailCronOrphanedMails\saveCustomSettings(), ilCronOerHarvester\saveCustomSettings(), ilSCCronTrash\saveCustomSettings(), ilObjTestSettingsGeneralGUI\saveGeneralProperties(), ilAssQuestionFeedback\saveGenericFormProperties(), ilSamlSettingsGUI\saveIdpSettings(), ilContainerGUI\saveListPresentation(), ilSamlSettingsGUI\saveNewIdp(), assClozeTestGUI\saveNumericGapCorrectionFormProperty(), ilBiblLibraryFormGUI\saveObject(), ilTermsOfServiceSettingsFormGUI\saveObject(), ilObjTestSettingsGeneralGUI\saveQuestionBehaviourProperties(), ilCmiXapiRegistrationGUI\saveRegistration(), ilLTIProviderObjectSettingGUI\saveRoleSelection(), ilSamlSettingsGUI\saveSettings(), ilCmiXapiSettingsGUI\saveSettings(), ilContainerGUI\saveSortingSettings(), ilAssConfigurableMultiOptionQuestionFeedback\saveSpecificFormProperties(), ilAssMultiOptionQuestionFeedback\saveSpecificFormProperties(), ilObjTestSettingsGeneralGUI\saveTestAccessProperties(), ilObjTestSettingsGeneralGUI\saveTestFinishProperties(), ilObjTestSettingsGeneralGUI\saveTestIntroProperties(), ilObjTestSettingsGeneralGUI\saveTestRunProperties(), ilObjTestSettingsGeneralGUI\saveTestSequenceSettings(), ilSamlSettingsGUI\saveUserAttributeMapping(), arEditGUI\setDateTimeRecordField(), ilBookingScheduleGUI\setDefinitionFromPost(), arEditGUI\setNumericRecordField(), arEditGUI\setTextRecordField(), ilDclBaseFieldModel\storePropertiesFromForm(), ilDclSelectionFieldModel\storePropertiesFromForm(), ilObjBibliographicGUI\updateCustom(), ilObjBlogGUI\updateCustom(), ilObjBookingPoolGUI\updateCustom(), ilObjDataCollectionGUI\updateCustom(), ilObjExerciseGUI\updateCustom(), ilObjItemGroupGUI\updateCustom(), ilObjMediaPoolGUI\updateCustom(), ilObjPollGUI\updateCustom(), ilObjPortfolioBaseGUI\updateCustom(), ilObjPortfolioGUI\updateCustom(), ilObjPortfolioTemplateGUI\updateCustom(), ilForumSettingsGUI\updateCustomValues(), ilAdvancedMDFieldTranslations\updateFromForm(), ilObjectServiceSettingsGUI\updateServiceSettingsForm(), ilDclTableViewEditFormGUI\updateTableView(), ilObjOrgUnitSettingsFormGUI\updateTranslation(), ilObjPollGUI\validateCustom(), SurveyMultipleChoiceQuestionGUI\validateEditForm(), and ilCourseLPBadgeGUI\validateForm().

+ 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

Returns
array

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

398 {
399 $inputItems = array();
400
401 foreach ($this->items as $item) {
402 if ($item->getType() == 'section_header') {
403 continue;
404 }
405
406 $inputItems[] = $item;
407
408 if ($item instanceof ilSubEnabledFormPropertyGUI) {
409 $inputItems = array_merge($inputItems, $item->getSubInputItemsRecursive());
410 }
411 }
412
413 return $inputItems;
414 }
This class represents a property that may include a sub form.

Referenced by ilTestSettingsChangeConfirmationGUI\populateParametersFromPropertyForm(), and ilObjTestSettingsScoringResultsGUI\showConfirmation().

+ Here is the caller graph for this function:

◆ getItemByPostVar()

ilPropertyFormGUI::getItemByPostVar (   $a_post_var)

Get Item by POST variable.

Parameters
string$a_postvarPost Var

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

357 {
358 foreach ($this->items as $key => $item) {
359 if ($item->getType() != "section_header") {
360 //if ($item->getPostVar() == $a_post_var)
361 $ret = $item->getItemByPostVar($a_post_var);
362 if (is_object($ret)) {
363 return $ret;
364 }
365 }
366 }
367
368 return false;
369 }
$ret
Definition: parser.php:6

References $ret.

Referenced by ilCronDeleteInactiveUserAccounts\addCustomSettingsToForm(), ilTestRandomQuestionSetPoolDefinitionFormGUI\applySubmit(), ilDclTextFieldModel\checkFieldCreationInput(), checkInput(), ilPCTabsGUI\checkWidthHeight(), executeCommand(), ilExcCriteriaText\exportCustomForm(), ilExcCriteriaGUI\exportForm(), ilExcCriteriaCatalogueGUI\exportForm(), assOrderingQuestionGUI\fetchSolutionListFromSubmittedForm(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\fillForm(), ilStudyProgrammeTypeCustomIconsFormGUI\fillForm(), ilAccessibilityCriterionFormGUI\fillObject(), ilTermsOfServiceCriterionFormGUI\fillObject(), ilTestSettingsGUI\formPropertyExists(), ilObjQuestionPoolSettingsGeneralGUI\formPropertyExists(), ilExAssignmentEditorGUI\getAssignmentValues(), ilTCPDFRenderer\getConfigFromForm(), ilWkhtmlToPdfConfigFormGUI\getConfigFromForm(), ilAssOrderingQuestionAuthoringFormGUI\getOrderingElementInputField(), ilWebDAVMountInstructionsDocumentFormGUI\getRawMountInstructionsFromFileUpload(), ilNewsItemGUI\getValuesNewsItem(), ilExAssignmentEditorGUI\handleDisabledFields(), ilExAssignmentEditorGUI\handleDisabledPeerFields(), ilObjTestSettingsScoringResultsGUI\hasScoringSettingsChanged(), ilCourseLPBadgeGUI\importConfigToForm(), ilUserProfileBadgeGUI\importConfigToForm(), ilAdvancedMDFieldDefinition\importDefinitionFormPostValues(), ilObjContentPageGUI\initEditCustomForm(), ilObjPortfolioTemplateGUI\initEditCustomForm(), ilAssClozeTestFeedback\initFbPropsForNumericGap(), ilAssClozeTestFeedback\initFbPropsForSelectGap(), ilAssClozeTestFeedback\initFbPropsForTextGap(), ilAssClozeTestFeedback\initFeedbackFieldsPerGapQuestion(), ilAssQuestionFeedback\initGenericFormProperties(), ilLTIConsumeProviderFormGUI\initProvider(), ilAssClozeTestFeedback\initSpecificFormProperties(), ilAssConfigurableMultiOptionQuestionFeedback\initSpecificFormProperties(), ilAssMultiOptionQuestionFeedback\initSpecificFormProperties(), ilObjTestSettingsGeneralGUI\isSkillServiceSettingToBeAdjusted(), assMatchingQuestionGUI\isValidTermAndDefinitionAmount(), ilObjTestDynamicQuestionSetConfigGUI\performSaveForm(), ilObjTestSettingsGeneralGUI\performSaveForm(), ilObjQuestionPoolSettingsGeneralGUI\performSaveForm(), ilTCPDFRenderer\populateConfigElementsInForm(), ilAdvancedMDFieldDefinitionSelect\prepareCustomDefinitionFormConfirmation(), ilAdvancedMDFieldDefinition\prepareDefinitionFormConfirmation(), assOrderingQuestionGUI\prepareReprintableCorrectionsForm(), ilExAssignmentEditorGUI\processForm(), ilExAssignmentEditorGUI\processPeerReviewForm(), ilAssOrderingQuestionAuthoringFormGUI\renewOrderingElementInput(), ilTestRandomQuestionSetGeneralConfigFormGUI\save(), ilObjTestSettingsGeneralGUI\saveAvailabilityProperties(), assErrorTextGUI\saveCorrectionsFormProperties(), assImagemapQuestionGUI\saveCorrectionsFormProperties(), assKprimChoiceGUI\saveCorrectionsFormProperties(), assMatchingQuestionGUI\saveCorrectionsFormProperties(), ilCronDeleteNeverLoggedInUserAccounts\saveCustomSettings(), ilCronDeleteInactiveUserAccounts\saveCustomSettings(), ilAssClozeTestFeedback\saveFbPropsForNumericGap(), ilAssClozeTestFeedback\saveFbPropsForSelectGap(), ilAssClozeTestFeedback\saveFbPropsForTextGap(), ilAssClozeTestFeedback\saveFeedbackFieldsPerGapQuestion(), assClozeTestGUI\saveGapCombinationCorrectionFormProperties(), ilObjTestSettingsGeneralGUI\saveGeneralProperties(), ilAccessibilityCriterionFormGUI\saveObject(), ilTermsOfServiceSettingsFormGUI\saveObject(), ilTermsOfServiceCriterionFormGUI\saveObject(), ilObjTestSettingsGeneralGUI\saveQuestionBehaviourProperties(), ilObjTestSettingsScoringResultsGUI\saveResultDetailsSettings(), ilObjTestSettingsScoringResultsGUI\saveResultMiscOptionsSettings(), ilObjTestSettingsScoringResultsGUI\saveResultSummarySettings(), ilObjTestSettingsScoringResultsGUI\saveScoringSettingsFormSection(), ilAssClozeTestFeedback\saveSpecificFormProperties(), ilObjTestSettingsGeneralGUI\saveTestIntroProperties(), ilObjTestSettingsGeneralGUI\saveTestRunProperties(), assClozeTestGUI\saveTextOrSelectGapCorrectionFormProperty(), ilBadgeManagementGUI\setBadgeFormValues(), ilMemberAgreementGUI\setCourseDefinedFieldValues(), ilBookingScheduleGUI\setDefinitionFromPost(), ilExAssignmentEditorGUI\setDisabledFieldValues(), ilExAssignmentEditorGUI\setDisabledPeerReviewFieldValues(), ilCharSelectorGUI\setFormValues(), ilSessionMembershipRegistrationSettingsGUI\setFormValues(), ilObjBadgeAdministrationGUI\setImageTemplateFormValues(), ilAddAnswerModalFormGUI\setValuesByArray(), ilObjBlogGUI\updateCustom(), ilObjBookingPoolGUI\updateCustom(), ilObjPollGUI\updateCustom(), ilObjPortfolioBaseGUI\updateCustom(), ilObjPortfolioTemplateGUI\updateCustom(), ilObjPollGUI\validateCustom(), SurveyMultipleChoiceQuestionGUI\validateEditForm(), ilCourseLPBadgeGUI\validateForm(), assImagemapQuestionGUI\writeAnswerSpecificPostData(), assKprimChoiceGUI\writeAnswerSpecificPostData(), assKprimChoiceGUI\writeQuestionSpecificPostData(), and assMultipleChoiceGUI\writeQuestionSpecificPostData().

+ Here is the caller graph for this function:

◆ getItems()

◆ getMode()

ilPropertyFormGUI::getMode ( )

Get Mode ('std', 'subform').

Returns
string Mode ('std', 'subform')

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

184 {
185 return $this->mode;
186 }

References $mode.

Referenced by getContent(), and insertItem().

+ Here is the caller graph for this function:

◆ getShowTopButtons()

ilPropertyFormGUI::getShowTopButtons ( )

Set show top buttons.

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

References $show_top_buttons.

Referenced by getContent().

+ Here is the caller graph for this function:

◆ getTableWidth()

ilPropertyFormGUI::getTableWidth ( )
final

get table width

@access public

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

References $tbl_width.

Referenced by getContent().

+ Here is the caller graph for this function:

◆ getTitle()

ilPropertyFormGUI::getTitle ( )

Get Title.

Returns
string Title

Reimplemented in ilLTIConsumerProviderSelectionFormTableGUI.

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

204 {
205 return $this->title;
206 }

Referenced by getContent().

+ Here is the caller graph for this function:

◆ getTitleIcon()

ilPropertyFormGUI::getTitleIcon ( )

Get TitleIcon.

Returns
string TitleIcon

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

References $titleicon.

Referenced by getContent().

+ Here is the caller graph for this function:

◆ getTopAnchor()

ilPropertyFormGUI::getTopAnchor ( )

Get top anchor.

Returns
string top anchor

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

References $top_anchor.

◆ hasFileUpload()

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

Was any file uploaded?

Parameters
string$a_fieldform field
mixed$a_indexform field index (if array)
mixed$a_sub_indexform field subindex (if array)
Returns
bool

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

1077 {
1078 $data = $this->getFileUpload($a_field, $a_index, $a_sub_index);
1079 return (bool) $data["tmp_name"];
1080 }
getFileUpload($a_field, $a_index=null, $a_sub_index=null)
Get file upload data.

References $data, and getFileUpload().

+ Here is the call graph for this function:

◆ hideRequired()

ilPropertyFormGUI::hideRequired (   $a_type)
protected

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

789 {
790 // #15818
791 return in_array($a_type, array("non_editable_value"));
792 }

Referenced by insertItem().

+ Here is the caller graph for this function:

◆ insertItem()

ilPropertyFormGUI::insertItem (   $item,
  $a_sub_item = false 
)

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

795 {
796 global $DIC;
797 $tpl = $DIC["tpl"];
798 ;
800
801
802 $cfg = array();
803
804 //if(method_exists($item, "getMulti") && $item->getMulti())
805 if ($item instanceof ilMultiValuesItem && $item->getMulti()) {
806 $tpl->addJavascript("./Services/Form/js/ServiceFormMulti.js");
807
808 $this->tpl->setCurrentBlock("multi_in");
809 $this->tpl->setVariable("ID", $item->getFieldId());
810 $this->tpl->parseCurrentBlock();
811
812 $this->tpl->touchBlock("multi_out");
813
814
815 // add hidden item to enable preset multi items
816 // not used yet, should replace hidden field stuff
817 $multi_values = $item->getMultiValues();
818 if (is_array($multi_values) && sizeof($multi_values) > 1) {
819 $multi_value = new ilHiddenInputGUI("ilMultiValues~" . $item->getPostVar());
820 $multi_value->setValue(implode("~", $multi_values));
821 $this->addItem($multi_value);
822 }
823 $cfg["multi_values"] = $multi_values;
824 }
825
826 $item->insert($this->tpl);
827
828 if ($item->getType() == "file" || $item->getType() == "image_file") {
829 $this->setMultipart(true);
830 }
831
832 if ($item->getType() != "section_header") {
833 $cfg["id"] = $item->getFieldId();
834
835 // info text
836 if ($item->getInfo() != "") {
837 $this->tpl->setCurrentBlock("description");
838 $this->tpl->setVariable(
839 "PROPERTY_DESCRIPTION",
840 $item->getInfo()
841 );
842 $this->tpl->parseCurrentBlock();
843 }
844
845 if ($this->getMode() == "subform") {
846 // required
847 if (!$this->hideRequired($item->getType())) {
848 if ($item->getRequired()) {
849 $this->tpl->touchBlock("sub_required");
850 $this->required_text = true;
851 }
852 }
853
854 // hidden title (for accessibility, e.g. file upload)
855 if ($item->getHiddenTitle() != "") {
856 $this->tpl->setCurrentBlock("sub_hid_title");
857 $this->tpl->setVariable(
858 "SPHID_TITLE",
859 $item->getHiddenTitle()
860 );
861 $this->tpl->parseCurrentBlock();
862 }
863
864 $this->tpl->setCurrentBlock("sub_prop_start");
865 $this->tpl->setVariable("PROPERTY_TITLE", $item->getTitle());
866 $this->tpl->setVariable("PROPERTY_CLASS", "il_" . $item->getType());
867 if ($item->getType() != "non_editable_value" && $item->getFormLabelFor() != "") {
868 $this->tpl->setVariable("FOR_ID", ' for="' . $item->getFormLabelFor() . '" ');
869 }
870 $this->tpl->setVariable("LAB_ID", $item->getFieldId());
871 $this->tpl->parseCurrentBlock();
872 } else {
873 // required
874 if (!$this->hideRequired($item->getType())) {
875 if ($item->getRequired()) {
876 $this->tpl->touchBlock("required");
877 $this->required_text = true;
878 }
879 }
880
881 // hidden title (for accessibility, e.g. file upload)
882 if ($item->getHiddenTitle() != "") {
883 $this->tpl->setCurrentBlock("std_hid_title");
884 $this->tpl->setVariable(
885 "PHID_TITLE",
886 $item->getHiddenTitle()
887 );
888 $this->tpl->parseCurrentBlock();
889 }
890
891 $this->tpl->setCurrentBlock("std_prop_start");
892 $this->tpl->setVariable("PROPERTY_TITLE", $item->getTitle());
893 if ($item->getType() != "non_editable_value" && $item->getFormLabelFor() != "") {
894 $this->tpl->setVariable("FOR_ID", ' for="' . $item->getFormLabelFor() . '" ');
895 }
896 $this->tpl->setVariable("LAB_ID", $item->getFieldId());
897 if ($this->getHideLabels()) {
898 $this->tpl->setVariable("HIDE_LABELS_STYLE", " ilFormOptionHidden");
899 }
900 $this->tpl->parseCurrentBlock();
901 }
902
903 // alert
904 if ($item->getType() != "non_editable_value" && $item->getAlert() != "") {
905 $this->tpl->setCurrentBlock("alert");
906 $this->tpl->setVariable(
907 "IMG_ALERT",
908 ilUtil::getImagePath("icon_alert.svg")
909 );
910 $this->tpl->setVariable(
911 "ALT_ALERT",
912 $lng->txt("alert")
913 );
914 $this->tpl->setVariable(
915 "TXT_ALERT",
916 $item->getAlert()
917 );
918 $this->tpl->parseCurrentBlock();
919 }
920
921 // subitems
922 $sf = null;
923 if ($item->getType() != "non_editable_value" or 1) {
924 $sf = $item->getSubForm();
925 if ($item->hideSubForm() && is_object($sf)) {
926 $this->tpl->setCurrentBlock("sub_form_hide");
927 $this->tpl->setVariable("DSFID", $item->getFieldId());
928 $this->tpl->parseCurrentBlock();
929 }
930 }
931
932
933 $sf_content = "";
934 if (is_object($sf)) {
935 $sf_content = $sf->getContent();
936 if ($sf->getMultipart()) {
937 $this->setMultipart(true);
938 }
939 $this->tpl->setCurrentBlock("sub_form");
940 $this->tpl->setVariable("PROP_SUB_FORM", $sf_content);
941 $this->tpl->setVariable("SFID", $item->getFieldId());
942 $this->tpl->parseCurrentBlock();
943 }
944
945 $this->tpl->setCurrentBlock("prop");
946 /* not used yet
947 $this->tpl->setVariable("ID", $item->getFieldId());
948 $this->tpl->setVariable("CFG", ilJsonUtil::encode($cfg));*/
949 $this->tpl->parseCurrentBlock();
950 }
951
952
953 $this->tpl->touchBlock("item");
954 }
setMultipart($a_multipart)
Set Enctype Multipart/Formdata true/false.
getHideLabels()
Get a value indicating whether the labels should be hidden or not.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
Interface for multi values support.

References $DIC, $lng, $tpl, addItem(), getHideLabels(), ilUtil\getImagePath(), getMode(), hideRequired(), and ilFormGUI\setMultipart().

Referenced by getContent().

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

◆ moveFileUpload()

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

Move upload to target directory.

Parameters
string$a_target_directorytarget directory (without filename!)
string$a_fieldform field
string$a_target_nametarget file name (if different from uploaded file)
mixed$a_indexform field index (if array)
mixed$a_sub_indexform field subindex (if array)
Returns
string target file name incl. path

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

1093 {
1094 if (!is_dir($a_target_directory)) {
1095 return;
1096 }
1097
1098 $data = $this->getFileUpload($a_field, $a_index, $a_sub_index);
1099 if ($data["tmp_name"] && file_exists($data["tmp_name"])) {
1100 if ($a_target_name) {
1101 $data["name"] = $a_target_name;
1102 }
1103
1104 $target_file = $a_target_directory . "/" . $data["name"];
1105 $target_file = str_replace("//", "/", $target_file);
1106
1107 if ($data["is_upload"]) {
1108 if (!ilUtil::moveUploadedFile($data["tmp_name"], $data["name"], $target_file)) {
1109 return;
1110 }
1111 } else {
1112 if (!rename($data["tmp_name"], $target_file)) {
1113 return;
1114 }
1115 }
1116
1117 return $target_file;
1118 }
1119 }
static moveUploadedFile($a_file, $a_name, $a_target, $a_raise_errors=true, $a_mode="move_uploaded")
move uploaded file

References $data, getFileUpload(), and ilUtil\moveUploadedFile().

+ Here is the call graph for this function:

◆ rebuildUploadedFiles()

ilPropertyFormGUI::rebuildUploadedFiles ( )
protected

try to rebuild files

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

1125 {
1126 if (isset($_POST["ilfilehash"]) && $_POST["ilfilehash"]) {
1127 $temp_path = ilUtil::getDataDir() . "/temp";
1128 if (is_dir($temp_path)) {
1129 $reload = array();
1130
1131 $temp_files = glob($temp_path . "/" . session_id() . "~~" . $_POST["ilfilehash"] . "~~*");
1132 if (is_array($temp_files)) {
1133 foreach ($temp_files as $full_file) {
1134 $file = explode("~~", basename($full_file));
1135 $field = $file[2];
1136 $idx = $file[3];
1137 $idx2 = $file[4];
1138 $type = $file[5] . "/" . $file[6];
1139 $name = $file[7];
1140
1141 if ($idx2 != "") {
1142 if (!$_FILES[$field]["tmp_name"][$idx][$idx2]) {
1143 $_FILES[$field]["tmp_name"][$idx][$idx2] = $full_file;
1144 $_FILES[$field]["name"][$idx][$idx2] = $name;
1145 $_FILES[$field]["type"][$idx][$idx2] = $type;
1146 $_FILES[$field]["error"][$idx][$idx2] = 0;
1147 $_FILES[$field]["size"][$idx][$idx2] = filesize($full_file);
1148 $_FILES[$field]["is_upload"][$idx][$idx2] = false;
1149 }
1150 } elseif ($idx != "") {
1151 if (!$_FILES[$field]["tmp_name"][$idx]) {
1152 $_FILES[$field]["tmp_name"][$idx] = $full_file;
1153 $_FILES[$field]["name"][$idx] = $name;
1154 $_FILES[$field]["type"][$idx] = $type;
1155 $_FILES[$field]["error"][$idx] = 0;
1156 $_FILES[$field]["size"][$idx] = filesize($full_file);
1157 $_FILES[$field]["is_upload"][$idx] = false;
1158 }
1159 } else {
1160 if (!$_FILES[$field]["tmp_name"]) {
1161 $_FILES[$field]["tmp_name"] = $full_file;
1162 $_FILES[$field]["name"] = $name;
1163 $_FILES[$field]["type"] = $type;
1164 $_FILES[$field]["error"] = 0;
1165 $_FILES[$field]["size"] = filesize($full_file);
1166 $_FILES[$field]["is_upload"] = false;
1167 }
1168 }
1169 }
1170 }
1171 }
1172 }
1173 }
static getDataDir()
get data directory (outside webspace)
$type

References $_POST, ilFormGUI\$name, $type, and ilUtil\getDataDir().

Referenced by __construct().

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

◆ removeItemByPostVar()

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

Remove Item.

Parameters
string$a_postvarPost Var

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

323 {
324 foreach ($this->items as $key => $item) {
325 if (method_exists($item, "getPostVar") && $item->getPostVar() == $a_post_var) {
326 unset($this->items[$key]);
327 }
328 }
329
330 // remove section headers if they do not contain any items anymore
331 if ($a_remove_unused_headers) {
332 $unset_keys = array();
333 $last_item = null;
334 $last_key = null;
335 foreach ($this->items as $key => $item) {
336 if ($item instanceof ilFormSectionHeaderGUI && $last_item instanceof ilFormSectionHeaderGUI) {
337 $unset_keys[] = $last_key;
338 }
339 $last_item = $item;
340 $last_key = $key;
341 }
342 if ($last_item instanceof ilFormSectionHeaderGUI) {
343 $unset_keys[] = $last_key;
344 }
345 foreach ($unset_keys as $key) {
346 unset($this->items[$key]);
347 }
348 }
349 }
This class represents a section header in a property form.

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

+ Here is the caller graph for this function:

◆ setDescription()

ilPropertyFormGUI::setDescription (   $a_val)

Set description.

Parameters
stringdescription

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

234 {
235 $this->description = $a_val;
236 }

◆ setDisableStandardMessage()

ilPropertyFormGUI::setDisableStandardMessage (   $a_val)

Set disable standard message.

Parameters
booleandisable standard message

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

422 {
423 $this->disable_standard_message = $a_val;
424 }

◆ setForceTopButtons()

ilPropertyFormGUI::setForceTopButtons (   $a_val)

Set force top buttons.

Parameters
bool$a_valforce top buttons

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

291 {
292 $this->force_top_buttons = $a_val;
293 }

◆ setHideLabels()

ilPropertyFormGUI::setHideLabels (   $a_value = true)

Set a value indicating whether the labels should be hidden or not.

Parameters
boolean$a_valueIndicates whether the labels should be hidden.

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

452 {
453 $this->hide_labels = $a_value;
454 }

◆ setItems()

ilPropertyFormGUI::setItems (   $a_items)

Set Items.

Parameters
array$a_itemsarray of item objects

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

377 {
378 $this->items = $a_items;
379 }

Referenced by ilAssQuestionAuthoringFormGUI\replaceFormItemByPostVar().

+ Here is the caller graph for this function:

◆ setMode()

ilPropertyFormGUI::setMode (   $a_mode)

Set Mode ('std', 'subform').

Parameters
string$a_modeMode ('std', 'subform')

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

174 {
175 $this->mode = $a_mode;
176 }

◆ setShowTopButtons()

ilPropertyFormGUI::setShowTopButtons (   $a_val)

Get show top buttons.

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

273 {
274 $this->show_top_buttons = $a_val;
275 }

◆ setTableWidth()

ilPropertyFormGUI::setTableWidth (   $a_width)
final

Set table width.

@access public

Parameters
stringtable width

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

153 {
154 $this->tbl_width = $a_width;
155 }

Referenced by ilForumThreadFormGUI\initForm().

+ Here is the caller graph for this function:

◆ setTitle()

◆ setTitleIcon()

ilPropertyFormGUI::setTitleIcon (   $a_titleicon)

Set TitleIcon.

Parameters
string$a_titleiconTitleIcon

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

214 {
215 $this->titleicon = $a_titleicon;
216 }

Referenced by ilForumThreadFormGUI\initForm().

+ Here is the caller graph for this function:

◆ setTopAnchor()

ilPropertyFormGUI::setTopAnchor (   $a_val)

Set top anchor.

Parameters
stringtop anchor
Deprecated:

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

255 {
256 $this->top_anchor = $a_val;
257 }

◆ setValuesByArray()

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

Set form values from an array.

Parameters
array$a_valuesValue array (key is post variable name, value is value)

Reimplemented in ilAddAnswerModalFormGUI.

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

462 {
463 foreach ($this->items as $item) {
464 if (!($a_restrict_to_value_keys) ||
465 in_array($item->getPostVar(), array_keys($a_values))) {
466 $item->setValueByArray($a_values);
467 }
468 }
469 }

Referenced by ilChatroomFormFactory\applyValues(), ilBiblLibraryFormGUI\fillForm(), ilBiblFieldFilterFormGUI\fillForm(), ilFileVersionFormGUI\fillForm(), ilOrgUnitAuthorityFormGUI\fillForm(), ilOrgUnitPositionFormGUI\fillForm(), ilOrgUnitDefaultPermissionFormGUI\fillForm(), ilMemcacheServerFormGUI\fillForm(), ilObjLearningSequenceSettingsGUI\fillForm(), ilDclBaseFieldModel\fillPropertiesForm(), ilDclSelectionFieldModel\fillPropertiesForm(), ilExAssignmentEditorGUI\getAssignmentValues(), ilSystemStyleIconsGUI\getByColorValues(), ilSystemStyleIconsGUI\getByIconValues(), ilNewsItemGUI\getValuesNewsItem(), ilSystemStyleLessGUI\getVariablesValues(), ilMailOptionsFormGUI\populate(), ilMarkSchemaGUI\populateEctsForm(), ilObjMailGUI\populateExternalSettingsForm(), ilObjForumAdministrationGUI\populateForm(), ilObjMailGUI\populateGeneralSettingsForm(), ilObjWikiSettingsGUI\populateWithCurrentSettings(), ilCertificateGUI\setTemplateContent(), ilSamlSettingsGUI\showIdpSettings(), ilSamlSettingsGUI\showSettings(), and ilSamlSettingsGUI\showUserAttributeMappingForm().

+ Here is the caller graph for this function:

◆ setValuesByPost()

Field Documentation

◆ $buttons

ilPropertyFormGUI::$buttons = array()
private

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

Referenced by getCommandButtons().

◆ $check_input_called

ilPropertyFormGUI::$check_input_called = false
protected

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

◆ $ctrl

◆ $description

ilPropertyFormGUI::$description = ""
protected

◆ $disable_standard_message

ilPropertyFormGUI::$disable_standard_message = false
protected

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

Referenced by getDisableStandardMessage().

◆ $force_top_buttons

ilPropertyFormGUI::$force_top_buttons = false
protected

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

Referenced by getForceTopButtons().

◆ $hide_labels

ilPropertyFormGUI::$hide_labels = false
protected

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

Referenced by getHideLabels().

◆ $items

ilPropertyFormGUI::$items = array()
private

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

Referenced by getItems().

◆ $lng

◆ $mode

ilPropertyFormGUI::$mode = "std"
protected

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

Referenced by ilFileVersionFormGUI\__construct(), and getMode().

◆ $settings

ilPropertyFormGUI::$settings
protected

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

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

◆ $show_top_buttons

ilPropertyFormGUI::$show_top_buttons = true
protected

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

Referenced by getShowTopButtons().

◆ $tbl_width

ilPropertyFormGUI::$tbl_width = false
protected

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

Referenced by getTableWidth().

◆ $titleicon

ilPropertyFormGUI::$titleicon = false
protected

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

Referenced by getTitleIcon().

◆ $top_anchor

ilPropertyFormGUI::$top_anchor = "il_form_top"
protected

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

Referenced by getTopAnchor().

◆ $tpl

◆ $user

ilPropertyFormGUI::$user
protected

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