ILIAS
Release_4_4_x_branch Revision 61816
|
This class represents a property form user interface. More...
Public Member Functions | |
ilPropertyFormGUI () | |
Constructor. | |
& | executeCommand () |
Execute command. | |
setTableWidth ($a_width) | |
Set table width. | |
getTableWidth () | |
get table width | |
setMode ($a_mode) | |
Set Mode ('std', 'subform'). | |
getMode () | |
Get Mode ('std', 'subform'). | |
setTitle ($a_title) | |
Set Title. | |
getTitle () | |
Get Title. | |
setTitleIcon ($a_titleicon) | |
Set TitleIcon. | |
getTitleIcon () | |
Get TitleIcon. | |
setDescription ($a_val) | |
Set description. | |
getDescription () | |
Get description. | |
setTopAnchor ($a_val) | |
Set top anchor. | |
getTopAnchor () | |
Get top anchor. | |
setShowTopButtons ($a_val) | |
Get show top buttons. | |
getShowTopButtons () | |
Set show top buttons. | |
addItem ($a_item) | |
Add Item (Property, SectionHeader). | |
removeItemByPostVar ($a_post_var) | |
Remove Item. | |
getItemByPostVar ($a_post_var) | |
Get Item by POST variable. | |
setItems ($a_items) | |
Set Items. | |
getItems () | |
Get Items. | |
getInputItemsRecursive () | |
returns a flat array of all input items including the possibly existing subitems recursively | |
setDisableStandardMessage ($a_val) | |
Set disable standard message. | |
getDisableStandardMessage () | |
Get disable standard message. | |
getHideLabels () | |
Get a value indicating whether the labels should be hidden or not. | |
setHideLabels ($a_value=true) | |
Set a value indicating whether the labels should be hidden or not. | |
setValuesByArray ($a_values) | |
Set form values from an array. | |
setValuesByPost () | |
Set form values from POST values. | |
checkInput () | |
Check Post Input. | |
getInput ($a_post_var, $ensureValidation=true) | |
Returns the value of a HTTP-POST variable, identified by the passed id. | |
addCustomProperty ($a_title, $a_html, $a_info="", $a_alert="", $a_required=false) | |
Add a custom property. | |
addCommandButton ($a_cmd, $a_text) | |
Add Command button. | |
clearCommandButtons () | |
Remove all command buttons. | |
getContent () | |
Get Content. | |
insertItem ($item, $a_sub_item=false) | |
getHTML () | |
Get HTML. | |
getFileUpload ($a_field, $a_index=null, $a_sub_index=null) | |
Get file upload data. | |
hasFileUpload ($a_field, $a_index=null, $a_sub_index=null) | |
Was any file uploaded? | |
moveFileUpload ($a_target_directory, $a_field, $a_target_name=null, $a_index=null, $a_sub_index=null) | |
Move upload to target directory. | |
Public Member Functions inherited from ilFormGUI | |
ilFormGUI () | |
Constructor. | |
setFormAction ($a_formaction) | |
Set FormAction. | |
getFormAction () | |
Get FormAction. | |
setTarget ($a_target) | |
Set Target. | |
getTarget () | |
Get Target. | |
setMultipart ($a_multipart) | |
Set Enctype Multipart/Formdata true/false. | |
getMultipart () | |
Get Enctype Multipart/Formdata true/false. | |
setId ($a_id) | |
Set Id. | |
getId () | |
Get Id. | |
setName ($a_name) | |
Set Name. | |
getName () | |
Get Name. | |
setKeepOpen ($a_keepopen) | |
Set Keep Form Tag Open. | |
getKeepOpen () | |
Get Keep Form Tag Open. | |
setOpenTag ($a_open) | |
Enable/Disable Open Form Tag. | |
getOpenTag () | |
Get Open Form Tag Enabled. | |
setCloseTag ($a_val) | |
Set close tag. | |
getCloseTag () | |
Get close tag. |
Protected Member Functions | |
keepFileUpload ($a_hash, $a_field, $a_tmp_name, $a_name, $a_type, $a_index=null, $a_sub_index=null) | |
Import upload into temp directory. | |
rebuildUploadedFiles () | |
try to rebuild files |
Protected Attributes | |
$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 | |
$reloaded_files | |
$hide_labels = false | |
Protected Attributes inherited from ilFormGUI | |
$formaction | |
$multipart = false | |
$keepopen = false | |
$opentag = true | |
$id | |
$name |
Private Attributes | |
$buttons = array() | |
$items = array() |
This class represents a property form user interface.
Definition at line 47 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::addCommandButton | ( | $a_cmd, | |
$a_text | |||
) |
Add Command button.
string | Command |
string | Text |
Definition at line 532 of file class.ilPropertyFormGUI.php.
Referenced by FormMailCodesGUI\__construct(), ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilObjForumAdministrationGUI\getSettingsForm(), and assOrderingQuestionGUI\populateCommandButtons().
ilPropertyFormGUI::addCustomProperty | ( | $a_title, | |
$a_html, | |||
$a_info = "" , |
|||
$a_alert = "" , |
|||
$a_required = false |
|||
) |
Add a custom property.
string | Title |
string | HTML. |
string | Info text. |
string | Alert text. |
boolean | Required field. (Default false) |
Definition at line 517 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::addItem | ( | $a_item | ) |
Add Item (Property, SectionHeader).
object | $a_property | Item object |
Definition at line 247 of file class.ilPropertyFormGUI.php.
Referenced by FormMailCodesGUI\__construct(), ilObjRemoteGlossaryGUI\addCustomEditForm(), ilObjRemoteLearningModuleGUI\addCustomEditForm(), ilObjRemoteWikiGUI\addCustomEditForm(), ilObjRemoteTestGUI\addCustomEditForm(), ilObjRemoteCourseGUI\addCustomEditForm(), ilObjRemoteGroupGUI\addCustomEditForm(), ilMailCronNotification\addCustomSettingsToForm(), ilPaymentCronNotification\addCustomSettingsToForm(), ilDAVCronDiskQuota\addCustomSettingsToForm(), ilConsultationHourCron\addCustomSettingsToForm(), ilCronDeleteInactiveUserAccounts\addCustomSettingsToForm(), ilCronDeleteInactivatedUserAccounts\addCustomSettingsToForm(), SurveyMultipleChoiceQuestionGUI\addFieldsToEditForm(), SurveyMetricQuestionGUI\addFieldsToEditForm(), SurveySingleChoiceQuestionGUI\addFieldsToEditForm(), SurveyTextQuestionGUI\addFieldsToEditForm(), SurveyMatrixQuestionGUI\addFieldsToEditForm(), ilCharSelectorGUI\addFormProperties(), ilPersonalProfileGUI\addLocationToForm(), ilECSObjectSettings\addSettingsToForm(), ilSkillTreeNodeGUI\addStatusInput(), ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilAssQuestionFeedback\completeGenericFormProperties(), ilAssConfigurableMultiOptionQuestionFeedback\completeSpecificFormProperties(), ilAssMultiOptionQuestionFeedback\completeSpecificFormProperties(), getContent(), ilObjForumAdministrationGUI\getSettingsForm(), ilObjPortfolioTemplateGUI\initDidacticTemplate(), ilObjectGUI\initDidacticTemplate(), ilObjPollGUI\initEditCustomForm(), ilObjBlogGUI\initEditCustomForm(), ilObjBookingPoolGUI\initEditCustomForm(), ilObjPortfolioBaseGUI\initEditCustomForm(), ilObjFolderGUI\initEditCustomForm(), ilObjPortfolioTemplateGUI\initEditCustomForm(), ilObjBibliographicGUI\initEditCustomForm(), ilObjMediaPoolGUI\initEditCustomForm(), ilObjDataCollectionGUI\initEditCustomForm(), ilObjExerciseGUI\initEditCustomForm(), ilObjectServiceSettingsGUI\initServiceSettingsForm(), insertItem(), ilAdministrationSettingsFormHandler\parseFieldDefinition(), assErrorTextGUI\populateAnswerSpecificFormPart(), assMatchingQuestionGUI\populateAnswerSpecificFormPart(), assOrderingQuestionGUI\populateAnswerSpecificFormPart(), assNumericGUI\populateAnswerSpecificFormPart(), assTextSubsetGUI\populateAnswerSpecificFormPart(), assTextQuestionGUI\populateAnswerSpecificFormPart(), assSingleChoiceGUI\populateAnswerSpecificFormPart(), assMultipleChoiceGUI\populateAnswerSpecificFormPart(), assFileUploadGUI\populateQuestionSpecificFormPart(), assJavaAppletGUI\populateQuestionSpecificFormPart(), assFlashQuestionGUI\populateQuestionSpecificFormPart(), assErrorTextGUI\populateQuestionSpecificFormPart(), assImagemapQuestionGUI\populateQuestionSpecificFormPart(), assMatchingQuestionGUI\populateQuestionSpecificFormPart(), assOrderingQuestionGUI\populateQuestionSpecificFormPart(), assClozeTestGUI\populateQuestionSpecificFormPart(), assNumericGUI\populateQuestionSpecificFormPart(), assTextSubsetGUI\populateQuestionSpecificFormPart(), assOrderingHorizontalGUI\populateQuestionSpecificFormPart(), assTextQuestionGUI\populateQuestionSpecificFormPart(), assSingleChoiceGUI\populateQuestionSpecificFormPart(), assMultipleChoiceGUI\populateQuestionSpecificFormPart(), and assQuestionGUI\populateTaxonomyFormSection().
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.
Definition at line 411 of file class.ilPropertyFormGUI.php.
References $_POST, $file, $lng, $ok, getDisableStandardMessage(), keepFileUpload(), and ilUtil\sendFailure().
Referenced by assOrderingQuestionGUI\editQuestion().
ilPropertyFormGUI::clearCommandButtons | ( | ) |
Remove all command buttons.
Definition at line 540 of file class.ilPropertyFormGUI.php.
& ilPropertyFormGUI::executeCommand | ( | ) |
Execute command.
Definition at line 81 of file class.ilPropertyFormGUI.php.
References $_REQUEST, $cmd, $ilCtrl, and getItemByPostVar().
ilPropertyFormGUI::getContent | ( | ) |
Get Content.
Reimplemented from ilFormGUI.
Definition at line 548 of file class.ilPropertyFormGUI.php.
References $_POST, $ilSetting, $ilUser, $lng, $tpl, ilCharSelectorGUI\_getCurrentGUI(), ilCharSelectorGUI\_isAllowed(), addItem(), ilCharSelectorConfig\ENABLED, getDescription(), getMode(), ilFormGUI\getMultipart(), getShowTopButtons(), getTableWidth(), getTitle(), getTitleIcon(), getTopAnchor(), ilYuiUtil\initAnimation(), ilYuiUtil\initDom(), ilYuiUtil\initEvent(), insertItem(), and setTitle().
ilPropertyFormGUI::getDescription | ( | ) |
Get description.
Definition at line 201 of file class.ilPropertyFormGUI.php.
References $description.
Referenced by getContent().
ilPropertyFormGUI::getDisableStandardMessage | ( | ) |
Get disable standard message.
Definition at line 355 of file class.ilPropertyFormGUI.php.
References $disable_standard_message.
Referenced by checkInput().
ilPropertyFormGUI::getFileUpload | ( | $a_field, | |
$a_index = null , |
|||
$a_sub_index = null |
|||
) |
Get file upload data.
string | $a_field | form field |
mixed | $a_index | form field index (if array) |
mixed | $a_sub_index | form field subindex (if array) |
Definition at line 941 of file class.ilPropertyFormGUI.php.
References $res.
Referenced by hasFileUpload(), and moveFileUpload().
ilPropertyFormGUI::getHideLabels | ( | ) |
Get a value indicating whether the labels should be hidden or not.
Definition at line 365 of file class.ilPropertyFormGUI.php.
References $hide_labels.
Referenced by insertItem().
ilPropertyFormGUI::getHTML | ( | ) |
Get HTML.
Reimplemented from ilFormGUI.
Definition at line 865 of file class.ilPropertyFormGUI.php.
Referenced by assOrderingQuestionGUI\editQuestion().
ilPropertyFormGUI::getInput | ( | $a_post_var, | |
$ensureValidation = true |
|||
) |
Returns the value of a HTTP-POST variable, identified by the passed id.
string | The key used for value determination |
boolean | A flag whether the form input has to be validated before calling this method |
Definition at line 497 of file class.ilPropertyFormGUI.php.
References $_POST.
Referenced by ilCharSelectorGUI\getFormValues(), SurveySingleChoiceQuestionGUI\importEditFormValues(), SurveyTextQuestionGUI\importEditFormValues(), SurveyMetricQuestionGUI\importEditFormValues(), SurveyMultipleChoiceQuestionGUI\importEditFormValues(), SurveyMatrixQuestionGUI\importEditFormValues(), ilMemberAgreementGUI\saveCourseDefinedFields(), ilConsultationHourCron\saveCustomSettings(), ilForumCronNotification\saveCustomSettings(), ilAssQuestionFeedback\saveGenericFormProperties(), ilAssConfigurableMultiOptionQuestionFeedback\saveSpecificFormProperties(), ilAssMultiOptionQuestionFeedback\saveSpecificFormProperties(), ilBookingScheduleGUI\setDefinitionFromPost(), ilObjPollGUI\updateCustom(), ilObjBlogGUI\updateCustom(), ilObjBookingPoolGUI\updateCustom(), ilObjPortfolioBaseGUI\updateCustom(), ilObjFolderGUI\updateCustom(), ilObjPortfolioTemplateGUI\updateCustom(), ilObjMediaPoolGUI\updateCustom(), ilObjPortfolioGUI\updateCustom(), ilObjBibliographicGUI\updateCustom(), ilObjDataCollectionGUI\updateCustom(), ilObjExerciseGUI\updateCustom(), ilObjectServiceSettingsGUI\updateServiceSettingsForm(), and SurveyMultipleChoiceQuestionGUI\validateEditForm().
ilPropertyFormGUI::getInputItemsRecursive | ( | ) |
returns a flat array of all input items including the possibly existing subitems recursively
Definition at line 318 of file class.ilPropertyFormGUI.php.
Referenced by ilTestSettingsChangeConfirmationGUI\populateParametersFromPropertyForm().
ilPropertyFormGUI::getItemByPostVar | ( | $a_post_var | ) |
Get Item by POST variable.
string | $a_postvar | Post Var |
Definition at line 274 of file class.ilPropertyFormGUI.php.
References $ret.
Referenced by ilTestRandomQuestionSetPoolDefinitionFormGUI\applySubmit(), ilChatroomFormFactory\applyValues(), executeCommand(), ilObjTestSettingsGeneralGUI\fixPostValuesForInconsistentFormObjectTree(), ilAssQuestionFeedback\initGenericFormProperties(), ilAssConfigurableMultiOptionQuestionFeedback\initSpecificFormProperties(), ilAssMultiOptionQuestionFeedback\initSpecificFormProperties(), assMatchingQuestionGUI\isValidTermAndDefinitionAmount(), ilObjQuestionPoolSettingsGeneralGUI\performSaveForm(), ilObjTestDynamicQuestionSetConfigGUI\performSaveForm(), ilObjTestSettingsGeneralGUI\performSaveForm(), assClozeTestGUI\reworkFormForCorrectionMode(), ilTestRandomQuestionSetGeneralConfigFormGUI\save(), ilBookingScheduleGUI\setDefinitionFromPost(), ilCharSelectorGUI\setFormValues(), ilObjPollGUI\updateCustom(), ilObjBlogGUI\updateCustom(), ilObjPortfolioBaseGUI\updateCustom(), ilObjPortfolioTemplateGUI\updateCustom(), and SurveyMultipleChoiceQuestionGUI\validateEditForm().
ilPropertyFormGUI::getItems | ( | ) |
Get Items.
Definition at line 307 of file class.ilPropertyFormGUI.php.
References $items.
Referenced by ilUserFormSettings\exportToForm(), and ilUserFormSettings\importFromForm().
ilPropertyFormGUI::getMode | ( | ) |
Get Mode ('std', 'subform').
Definition at line 141 of file class.ilPropertyFormGUI.php.
References $mode.
Referenced by getContent(), and insertItem().
ilPropertyFormGUI::getShowTopButtons | ( | ) |
Set show top buttons.
Definition at line 237 of file class.ilPropertyFormGUI.php.
References $show_top_buttons.
Referenced by getContent().
|
final |
get table width
public
Definition at line 121 of file class.ilPropertyFormGUI.php.
References $tbl_width.
Referenced by getContent().
ilPropertyFormGUI::getTitle | ( | ) |
Get Title.
Definition at line 161 of file class.ilPropertyFormGUI.php.
Referenced by getContent().
ilPropertyFormGUI::getTitleIcon | ( | ) |
Get TitleIcon.
Definition at line 181 of file class.ilPropertyFormGUI.php.
References $titleicon.
Referenced by getContent().
ilPropertyFormGUI::getTopAnchor | ( | ) |
Get top anchor.
Definition at line 221 of file class.ilPropertyFormGUI.php.
References $top_anchor.
Referenced by getContent().
ilPropertyFormGUI::hasFileUpload | ( | $a_field, | |
$a_index = null , |
|||
$a_sub_index = null |
|||
) |
Was any file uploaded?
string | $a_field | form field |
mixed | $a_index | form field index (if array) |
mixed | $a_sub_index | form field subindex (if array) |
Definition at line 1030 of file class.ilPropertyFormGUI.php.
References getFileUpload().
ilPropertyFormGUI::ilPropertyFormGUI | ( | ) |
Constructor.
Definition at line 67 of file class.ilPropertyFormGUI.php.
References $lng, ilFormGUI\ilFormGUI(), and rebuildUploadedFiles().
ilPropertyFormGUI::insertItem | ( | $item, | |
$a_sub_item = false |
|||
) |
Definition at line 698 of file class.ilPropertyFormGUI.php.
References $lng, $tpl, addItem(), getHideLabels(), ilUtil\getImagePath(), getMode(), ilFormGUI\setMultipart(), and ilHiddenInputGUI\setValue().
Referenced by getContent().
|
protected |
Import upload into temp directory.
string | $a_hash | unique form hash |
string | $a_field | form field |
string | $a_tmp_name | temp file name |
string | $a_name | original file name |
string | $a_type | file mime type |
mixed | $a_index | form field index (if array) |
mixed | $a_sub_index | form field subindex (if array) |
Definition at line 903 of file class.ilPropertyFormGUI.php.
References $ilUser, ilUtil\createDirectory(), and ilUtil\getDataDir().
Referenced by checkInput().
ilPropertyFormGUI::moveFileUpload | ( | $a_target_directory, | |
$a_field, | |||
$a_target_name = null , |
|||
$a_index = null , |
|||
$a_sub_index = null |
|||
) |
Move upload to target directory.
string | $a_target_directory | target directory (without filename!) |
string | $a_field | form field |
string | $a_target_name | target file name (if different from uploaded file) |
mixed | $a_index | form field index (if array) |
mixed | $a_sub_index | form field subindex (if array) |
Definition at line 1046 of file class.ilPropertyFormGUI.php.
References getFileUpload().
|
protected |
try to rebuild files
Definition at line 1086 of file class.ilPropertyFormGUI.php.
References $_POST, $file, $ilUser, ilFormGUI\$name, and ilUtil\getDataDir().
Referenced by ilPropertyFormGUI().
ilPropertyFormGUI::removeItemByPostVar | ( | $a_post_var | ) |
Remove Item.
string | $a_postvar | Post Var |
Definition at line 258 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setDescription | ( | $a_val | ) |
Set description.
string | description |
Definition at line 191 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setDisableStandardMessage | ( | $a_val | ) |
Set disable standard message.
boolean | disable standard message |
Definition at line 345 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setHideLabels | ( | $a_value = true | ) |
Set a value indicating whether the labels should be hidden or not.
boolean | $a_value | Indicates whether the labels should be hidden. |
Definition at line 375 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setItems | ( | $a_items | ) |
Set Items.
array | $a_items | array of item objects |
Definition at line 297 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setMode | ( | $a_mode | ) |
Set Mode ('std', 'subform').
string | $a_mode | Mode ('std', 'subform') |
Definition at line 131 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setShowTopButtons | ( | $a_val | ) |
Get show top buttons.
Definition at line 229 of file class.ilPropertyFormGUI.php.
|
final |
Set table width.
public
string | table width |
Definition at line 110 of file class.ilPropertyFormGUI.php.
Referenced by assOrderingQuestionGUI\editQuestion().
ilPropertyFormGUI::setTitle | ( | $a_title | ) |
Set Title.
string | $a_title | Title |
Definition at line 151 of file class.ilPropertyFormGUI.php.
Referenced by FormMailCodesGUI\__construct(), ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), assOrderingQuestionGUI\editQuestion(), getContent(), ilObjForumAdministrationGUI\getSettingsForm(), and ilObjExerciseGUI\initEditCustomForm().
ilPropertyFormGUI::setTitleIcon | ( | $a_titleicon | ) |
Set TitleIcon.
string | $a_titleicon | TitleIcon |
Definition at line 171 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setTopAnchor | ( | $a_val | ) |
Set top anchor.
string | top anchor |
Definition at line 211 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setValuesByArray | ( | $a_values | ) |
Set form values from an array.
array | $a_values | Value array (key is post variable name, value is value) |
Definition at line 385 of file class.ilPropertyFormGUI.php.
Referenced by ilObjWikiSettingsGUI\populateWithCurrentSettings().
ilPropertyFormGUI::setValuesByPost | ( | ) |
Set form values from POST values.
Definition at line 397 of file class.ilPropertyFormGUI.php.
References $_POST.
Referenced by assOrderingQuestionGUI\editQuestion().
|
private |
Definition at line 49 of file class.ilPropertyFormGUI.php.
|
protected |
Definition at line 52 of file class.ilPropertyFormGUI.php.
|
protected |
Definition at line 56 of file class.ilPropertyFormGUI.php.
Referenced by getDescription().
|
protected |
Definition at line 53 of file class.ilPropertyFormGUI.php.
Referenced by getDisableStandardMessage().
|
protected |
Definition at line 60 of file class.ilPropertyFormGUI.php.
Referenced by getHideLabels().
|
private |
Definition at line 50 of file class.ilPropertyFormGUI.php.
Referenced by getItems().
|
protected |
Definition at line 51 of file class.ilPropertyFormGUI.php.
Referenced by getMode().
|
protected |
Definition at line 59 of file class.ilPropertyFormGUI.php.
|
protected |
Definition at line 58 of file class.ilPropertyFormGUI.php.
Referenced by getShowTopButtons().
|
protected |
Definition at line 57 of file class.ilPropertyFormGUI.php.
Referenced by getTableWidth().
|
protected |
Definition at line 55 of file class.ilPropertyFormGUI.php.
Referenced by getTitleIcon().
|
protected |
Definition at line 54 of file class.ilPropertyFormGUI.php.
Referenced by getTopAnchor().