ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 ()
 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 ()
 
 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$ ilPropertyFormGUI: ilFormPropertyDispatchGUI

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

Constructor & Destructor Documentation

◆ __construct()

ilPropertyFormGUI::__construct ( )

Constructor.

Parameters

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

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

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  }
setPreventDoubleSubmission($a_val)
Set prevent double submission.
settings()
Definition: settings.php:2
user()
Definition: user.php:4
$DIC
Definition: xapitoken.php:46
rebuildUploadedFiles()
try to rebuild files
+ 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.

Referenced by FormMailCodesGUI\__construct(), ilChatroomFormFactory\addDefaultBehaviour(), ilAssQuestionAuthoringFormGUI\addGenericAssessmentQuestionCommandButtons(), ilAssOrderingQuestionAuthoringFormGUI\addSpecificOrderingQuestionCommandButtons(), ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilAssQuestionSkillAssignmentPropertyFormGUI\build(), ilAddAnswerModalFormGUI\build(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilAsyncPropertyFormGUI\cloneForm(), ilMailOptionsFormGUI\init(), ilOrgUnitDefaultPermissionFormGUI\initButtons(), ILIAS\Modules\OrgUnit\ARHelper\BaseForm\initButtons(), ilMemcacheServerFormGUI\initButtons(), ilBiblFieldFilterFormGUI\initButtons(), arEditGUI\initCommandButtons(), ilLTIConsumerSettingsFormGUI\initForm(), ilBiblLibraryFormGUI\initForm(), ilDclTableViewEditFormGUI\initForm(), ilTermsOfServiceSettingsFormGUI\initForm(), ilLTIConsumeProviderFormGUI\initForm(), ilForumThreadFormGUI\initForm(), ilFileVersionFormGUI\initForm(), ilOrgUnitTypeFormGUI\initForm(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilStudyProgrammeTypeCustomIconsFormGUI\initForm(), ilWebDAVMountInstructionsDocumentFormGUI\initForm(), ilAccessibilityDocumentFormGUI\initForm(), ilTermsOfServiceDocumentFormGUI\initForm(), ilOrgUnitTypeAdvancedMetaDataFormGUI\saveObject(), ilObjOrgUnitSettingsFormGUI\saveObject(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\saveObject(), ilAccessibilityCriterionFormGUI\setCheckInputCalled(), and ilTermsOfServiceCriterionFormGUI\setCheckInputCalled().

619  {
620  $this->buttons[] = array("cmd" => $a_cmd, "text" => $a_text, "id" => $a_id);
621  }
+ 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.

Referenced by FormMailCodesGUI\__construct(), ilSamlSettingsGUI\addAttributeRuleFieldToForm(), ilObjTestSettingsGeneralGUI\addAvailabilityProperties(), ilIndividualAssessmentCommonSettingsGUI\addCommonFieldsToForm(), ilObjLearningSequenceSettingsGUI\addCommonFieldsToForm(), ilTCPDFRenderer\addConfigElementsToForm(), ilPhantomJSRenderer\addConfigElementsToForm(), ilObjRemoteGlossaryGUI\addCustomEditForm(), ilObjRemoteLearningModuleGUI\addCustomEditForm(), ilObjRemoteWikiGUI\addCustomEditForm(), ilObjRemoteCourseGUI\addCustomEditForm(), ilObjRemoteGroupGUI\addCustomEditForm(), ilObjRemoteTestGUI\addCustomEditForm(), ilAdvancedMDFieldDefinitionGroupBased\addCustomFieldToDefinitionForm(), ilAdvancedMDFieldDefinitionSelect\addCustomFieldToDefinitionForm(), ilAdvancedMDFieldDefinitionFloat\addCustomFieldToDefinitionForm(), ilAdvancedMDFieldDefinitionText\addCustomFieldToDefinitionForm(), ilAdvancedMDFieldDefinitionInteger\addCustomFieldToDefinitionForm(), ilDAVCronDiskQuota\addCustomSettingsToForm(), ilSCCronTrash\addCustomSettingsToForm(), ilMailCronNotification\addCustomSettingsToForm(), ilConsultationHourCron\addCustomSettingsToForm(), ilCronOerHarvester\addCustomSettingsToForm(), ilCronDeleteInactivatedUserAccounts\addCustomSettingsToForm(), ilMailCronOrphanedMails\addCustomSettingsToForm(), ilLoggerCronCleanErrorFiles\addCustomSettingsToForm(), ilCronDeleteNeverLoggedInUserAccounts\addCustomSettingsToForm(), ilCronDeleteInactiveUserAccounts\addCustomSettingsToForm(), ilForumCronNotification\addCustomSettingsToForm(), ilExAssTypePortfolioGUI\addEditFormCustomProperties(), ilExAssTypeTextGUI\addEditFormCustomProperties(), ilExAssTypeWikiTeamGUI\addEditFormCustomProperties(), SurveyMultipleChoiceQuestionGUI\addFieldsToEditForm(), SurveyMetricQuestionGUI\addFieldsToEditForm(), SurveySingleChoiceQuestionGUI\addFieldsToEditForm(), SurveyTextQuestionGUI\addFieldsToEditForm(), SurveyMatrixQuestionGUI\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(), ilAssQuestionSkillAssignmentPropertyFormGUI\build(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilAddAnswerModalFormGUI\build(), ilAsyncPropertyFormGUI\cloneForm(), ilAssQuestionFeedback\completeGenericFormProperties(), ilAssConfigurableMultiOptionQuestionFeedback\completeSpecificFormProperties(), ilAssMultiOptionQuestionFeedback\completeSpecificFormProperties(), ilAssClozeTestFeedback\completeSpecificFormProperties(), getContent(), ilObjectCustomIconConfigurationGUI\getForm(), ilExAssignmentEditorGUI\handleDisabledPeerFields(), ilMailOptionsFormGUI\init(), ilUserProfileBadgeGUI\initConfigForm(), ilCourseLPBadgeGUI\initConfigForm(), ilObjPortfolioTemplateGUI\initCopyPageFormOptions(), ilObjPortfolioGUI\initCopyPageFormOptions(), ilExcCriteriaText\initCustomForm(), ilObjPortfolioTemplateGUI\initDidacticTemplate(), ilObjectGUI\initDidacticTemplate(), ilObjPollGUI\initEditCustomForm(), ilObjItemGroupGUI\initEditCustomForm(), ilObjPortfolioBaseGUI\initEditCustomForm(), ilObjBlogGUI\initEditCustomForm(), ilObjExerciseGUI\initEditCustomForm(), ilObjPortfolioTemplateGUI\initEditCustomForm(), ilObjBookingPoolGUI\initEditCustomForm(), ilObjMediaPoolGUI\initEditCustomForm(), ilObjBibliographicGUI\initEditCustomForm(), ilObjContentPageGUI\initEditCustomForm(), ilContainerGUI\initEditForm(), ilMemcacheServerFormGUI\initForm(), ilLTIConsumerSettingsFormGUI\initForm(), ilBiblLibraryFormGUI\initForm(), ilDclTableViewEditFormGUI\initForm(), ilBiblFieldFilterFormGUI\initForm(), ilTermsOfServiceSettingsFormGUI\initForm(), ilLTIConsumeProviderFormGUI\initForm(), ilForumThreadFormGUI\initForm(), ilFileVersionFormGUI\initForm(), ilOrgUnitTypeFormGUI\initForm(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilStudyProgrammeTypeCustomIconsFormGUI\initForm(), ilWebDAVMountInstructionsDocumentFormGUI\initForm(), ilAccessibilityDocumentFormGUI\initForm(), ilTermsOfServiceDocumentFormGUI\initForm(), ilOrgUnitAuthorityFormGUI\initFormElements(), ilOrgUnitPositionFormGUI\initFormElements(), ilOrgUnitDefaultPermissionFormGUI\initFormElements(), ilContainerGUI\initListPresentationForm(), ilAdvancedMDFieldDefinitionGroupBased\initOptionForm(), ilObjectServiceSettingsGUI\initServiceSettingsForm(), ilContainerGUI\initSortingForm(), insertItem(), ilMDEditorGUI\listQuickEditCopyright(), ilAdministrationSettingsFormHandler\parseFieldDefinition(), assErrorTextGUI\populateAnswerSpecificFormPart(), assKprimChoiceGUI\populateAnswerSpecificFormPart(), assOrderingQuestionGUI\populateAnswerSpecificFormPart(), assMatchingQuestionGUI\populateAnswerSpecificFormPart(), assNumericGUI\populateAnswerSpecificFormPart(), assTextSubsetGUI\populateAnswerSpecificFormPart(), assClozeTestGUI\populateAnswerSpecificFormPart(), assTextQuestionGUI\populateAnswerSpecificFormPart(), assSingleChoiceGUI\populateAnswerSpecificFormPart(), assMultipleChoiceGUI\populateAnswerSpecificFormPart(), assTextSubsetGUI\populateCorrectionsFormProperties(), assNumericGUI\populateCorrectionsFormProperties(), assFileUploadGUI\populateCorrectionsFormProperties(), assOrderingHorizontalGUI\populateCorrectionsFormProperties(), assErrorTextGUI\populateCorrectionsFormProperties(), assLongMenuGUI\populateCorrectionsFormProperties(), assSingleChoiceGUI\populateCorrectionsFormProperties(), assKprimChoiceGUI\populateCorrectionsFormProperties(), assOrderingQuestionGUI\populateCorrectionsFormProperties(), assImagemapQuestionGUI\populateCorrectionsFormProperties(), assMultipleChoiceGUI\populateCorrectionsFormProperties(), assMatchingQuestionGUI\populateCorrectionsFormProperties(), ilAssQuestionSkillAssignmentPropertyFormGUI\populateFullProperties(), assClozeTestGUI\populateGapCombinationCorrectionFormProperty(), ilAssQuestionSkillAssignmentPropertyFormGUI\populateLimitedProperties(), assFileUploadGUI\populateQuestionSpecificFormPart(), assLongMenuGUI\populateQuestionSpecificFormPart(), assJavaAppletGUI\populateQuestionSpecificFormPart(), assKprimChoiceGUI\populateQuestionSpecificFormPart(), assFlashQuestionGUI\populateQuestionSpecificFormPart(), assErrorTextGUI\populateQuestionSpecificFormPart(), assImagemapQuestionGUI\populateQuestionSpecificFormPart(), assOrderingQuestionGUI\populateQuestionSpecificFormPart(), assMatchingQuestionGUI\populateQuestionSpecificFormPart(), assClozeTestGUI\populateQuestionSpecificFormPart(), assTextSubsetGUI\populateQuestionSpecificFormPart(), assNumericGUI\populateQuestionSpecificFormPart(), assOrderingHorizontalGUI\populateQuestionSpecificFormPart(), assTextQuestionGUI\populateQuestionSpecificFormPart(), assSingleChoiceGUI\populateQuestionSpecificFormPart(), assMultipleChoiceGUI\populateQuestionSpecificFormPart(), assQuestionGUI\populateTaxonomyFormSection(), ilAdvancedMDFieldDefinitionSelect\prepareCustomDefinitionFormConfirmation(), ilAdvancedMDFieldDefinition\prepareDefinitionFormConfirmation(), ilBiblEntryDetailPresentationGUI\renderAttributes(), ilBiblEntryDetailPresentationGUI\renderLibraries(), ilOrgUnitTypeAdvancedMetaDataFormGUI\saveObject(), ilObjOrgUnitSettingsFormGUI\saveObject(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\saveObject(), ilAccessibilityCriterionFormGUI\setCheckInputCalled(), and ilTermsOfServiceCriterionFormGUI\setCheckInputCalled().

312  {
313  $a_item->setParentForm($this);
314  return $this->items[] = $a_item;
315  }
+ 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

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

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

Referenced by ilOrgUnitPositionFormGUI\fillForm(), ilStudyProgrammeTypeCustomIconsFormGUI\fillForm(), ilOrgUnitAuthorityFormGUI\fillObject(), ilMemcacheServerFormGUI\fillObject(), ilOrgUnitTypeAdvancedMetaDataFormGUI\fillObject(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\fillObject(), ilOrgUnitTypeFormGUI\fillObject(), ilOrgUnitDefaultPermissionFormGUI\fillObject(), ilObjOrgUnitSettingsFormGUI\fillObject(), ilBiblFieldFilterFormGUI\fillObject(), ilTermsOfServiceSettingsFormGUI\fillObject(), ilTermsOfServiceCriterionFormGUI\fillObject(), ilAccessibilityCriterionFormGUI\fillObject(), ilCertificateGUI\getEditorForm(), ilWebDAVMountInstructionsDocumentFormGUI\getTranslatedError(), ilFileVersionFormGUI\initForm(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilExAssignmentEditorGUI\processForm(), ilExAssignmentEditorGUI\processPeerReviewForm(), ilMailOptionsFormGUI\save(), ilObjectCustomIconConfigurationGUI\saveForm(), ilBiblLibraryFormGUI\saveObject(), ilAccessibilityDocumentFormGUI\saveObject(), ilTermsOfServiceDocumentFormGUI\saveObject(), and arEditGUI\setArFieldsAfterSubmit().

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  }
getDisableStandardMessage()
Get disable standard message.
$data
Definition: storeScorm.php:23
getItemByPostVar($a_post_var)
Get Item by POST variable.
static ofString($string)
Creates a new stream with an initial value.
Definition: Streams.php:30
$http
Definition: raiseError.php:7
$txt
Definition: error.php:13
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
$DIC
Definition: xapitoken.php:46
$_POST["username"]
+ 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.

Referenced by ilAssOrderingQuestionAuthoringFormGUI\renewOrderingCommandButtons().

638  {
639  $this->buttons = array();
640  }
+ Here is the caller graph for this function:

◆ executeCommand()

ilPropertyFormGUI::executeCommand ( )

Execute command.

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

References $ctrl, $ilCtrl, and getItemByPostVar().

125  {
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  }
getItemByPostVar($a_post_var)
Get Item by POST variable.
global $ilCtrl
Definition: ilias.php:18
+ 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.

References $buttons.

Referenced by ilAsyncPropertyFormGUI\cloneForm().

630  {
631  return $this->buttons;
632  }
+ Here is the caller graph for this function:

◆ getContent()

ilPropertyFormGUI::getContent ( )

Get Content.

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

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().

646  {
647  global $DIC;
648  $lng = $this->lng;
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.
getTableWidth()
get table width
getTitleIcon()
Get TitleIcon.
addItem($a_item)
Add Item (Property, SectionHeader).
getMode()
Get Mode ('std', 'subform').
getDescription()
Get description.
static initDom(ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Dom.
This class represents a hidden form property in a property form.
static initEvent(ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Event.
setTitle($a_title)
Set Title.
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...
getShowTopButtons()
Set show top buttons.
insertItem($item, $a_sub_item=false)
global $ilSetting
Definition: privfeed.php:17
$DIC
Definition: xapitoken.php:46
$_POST["username"]
static initAnimation(ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Animation.
getMultipart()
Get Enctype Multipart/Formdata true/false.
+ 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().

244  {
245  return $this->description;
246  }
+ 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.

References $res.

Referenced by hasFileUpload(), and moveFileUpload().

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" => 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" => 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" => true
1062  );
1063  }
1064  }
1065  return $res;
1066  }
foreach($_POST as $key=> $value) $res
+ 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.

301  {
303  }

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

442  {
443  return $this->hide_labels;
444  }
+ Here is the caller graph for this function:

◆ getHTML()

ilPropertyFormGUI::getHTML ( )

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

References $a_type, ilUtil\createDirectory(), ilUtil\getDataDir(), getItemByPostVar(), and ilUtil\moveUploadedFile().

Referenced by SurveyQuestionGUI\addPhrase(), ilChatroomAdminViewGUI\createSettingTemplate(), ilCertificateGUI\getEditorForm(), arGUI\save(), and ilCertificateGUI\setTemplateContent().

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

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

References $_POST.

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

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  }
$_POST["username"]
+ 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.

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

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.
+ 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.

References $ret.

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

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

◆ getItems()

ilPropertyFormGUI::getItems ( )

◆ getMode()

ilPropertyFormGUI::getMode ( )

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

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

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

References $mode.

Referenced by getContent(), and insertItem().

184  {
185  return $this->mode;
186  }
+ 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().

281  {
283  }
+ Here is the caller graph for this function:

◆ getTableWidth()

ilPropertyFormGUI::getTableWidth ( )
final

get table width

public

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

References $tbl_width.

Referenced by getContent().

164  {
165  return $this->tbl_width;
166  }
+ Here is the caller graph for this function:

◆ getTitle()

ilPropertyFormGUI::getTitle ( )

Get Title.

Returns
string Title

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

Referenced by getContent().

204  {
205  return $this->title;
206  }
+ 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().

224  {
225  return $this->titleicon;
226  }
+ 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.

265  {
266  return $this->top_anchor;
267  }

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

References $data, and getFileUpload().

1077  {
1078  $data = $this->getFileUpload($a_field, $a_index, $a_sub_index);
1079  return (bool) $data["tmp_name"];
1080  }
$data
Definition: storeScorm.php:23
getFileUpload($a_field, $a_index=null, $a_sub_index=null)
Get file upload data.
+ Here is the call graph for this function:

◆ hideRequired()

ilPropertyFormGUI::hideRequired (   $a_type)
protected

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

References $a_type.

Referenced by insertItem().

789  {
790  // #15818
791  return in_array($a_type, array("non_editable_value"));
792  }
$a_type
Definition: workflow.php:92
+ 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.

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

Referenced by getContent().

795  {
796  global $DIC;
797  $tpl = $DIC["tpl"];
798  ;
799  $lng = $this->lng;
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  }
addItem($a_item)
Add Item (Property, SectionHeader).
setValue($a_value)
Set Value.
getMode()
Get Mode ('std', 'subform').
setMultipart($a_multipart)
Set Enctype Multipart/Formdata true/false.
This class represents a hidden form property in a property form.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
Interface for multi values support.
getHideLabels()
Get a value indicating whether the labels should be hidden or not.
$DIC
Definition: xapitoken.php:46
+ 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.

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

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  }
$data
Definition: storeScorm.php:23
static moveUploadedFile($a_file, $a_name, $a_target, $a_raise_errors=true, $a_mode="move_uploaded")
move uploaded file
getFileUpload($a_field, $a_index=null, $a_sub_index=null)
Get file upload data.
+ 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.

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

Referenced by __construct().

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  }
1149  } elseif ($idx != "") {
1150  if (!$_FILES[$field]["tmp_name"][$idx]) {
1151  $_FILES[$field]["tmp_name"][$idx] = $full_file;
1152  $_FILES[$field]["name"][$idx] = $name;
1153  $_FILES[$field]["type"][$idx] = $type;
1154  $_FILES[$field]["error"][$idx] = 0;
1155  $_FILES[$field]["size"][$idx] = filesize($full_file);
1156  }
1157  } else {
1158  if (!$_FILES[$field]["tmp_name"]) {
1159  $_FILES[$field]["tmp_name"] = $full_file;
1160  $_FILES[$field]["name"] = $name;
1161  $_FILES[$field]["type"] = $type;
1162  $_FILES[$field]["error"] = 0;
1163  $_FILES[$field]["size"] = filesize($full_file);
1164  }
1165  }
1166  }
1167  }
1168  }
1169  }
1170  }
$type
static getDataDir()
get data directory (outside webspace)
$_POST["username"]
+ 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.

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

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.
+ 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.

Referenced by ilAssQuestionAuthoringFormGUI\replaceFormItemByPostVar().

377  {
378  $this->items = $a_items;
379  }
+ 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.

public

Parameters
stringtable width

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

Referenced by ilForumThreadFormGUI\initForm().

153  {
154  $this->tbl_width = $a_width;
155  }
+ Here is the caller graph for this function:

◆ setTitle()

ilPropertyFormGUI::setTitle (   $a_title)

◆ setTitleIcon()

ilPropertyFormGUI::setTitleIcon (   $a_titleicon)

Set TitleIcon.

Parameters
string$a_titleiconTitleIcon

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

Referenced by ilForumThreadFormGUI\initForm().

214  {
215  $this->titleicon = $a_titleicon;
216  }
+ 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 
)

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