ILIAS
release_4-3 Revision
|
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. | |
setDisableStandardMessage ($a_val) | |
Set disable standard message. | |
getDisableStandardMessage () | |
Get disable standard message. | |
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) | |
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. | |
getHTML () | |
Get HTML. |
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 | |
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 48 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::addCommandButton | ( | $a_cmd, | |
$a_text | |||
) |
Add Command button.
string | Command |
string | Text |
Definition at line 484 of file class.ilPropertyFormGUI.php.
Referenced by FormMailCodesGUI\__construct().
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 469 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(), ilObjRemoteLearningModuleGUI\addCustomEditForm(), ilObjRemoteGlossaryGUI\addCustomEditForm(), ilObjRemoteWikiGUI\addCustomEditForm(), ilObjRemoteCourseGUI\addCustomEditForm(), ilObjRemoteGroupGUI\addCustomEditForm(), ilObjRemoteTestGUI\addCustomEditForm(), ilPersonalProfileGUI\addLocationToForm(), ilECSObjectSettings\addSettingsToForm(), getContent(), ilObjectGUI\initDidacticTemplate(), ilObjPollGUI\initEditCustomForm(), ilObjBlogGUI\initEditCustomForm(), ilObjBookingPoolGUI\initEditCustomForm(), ilObjFolderGUI\initEditCustomForm(), ilObjMediaPoolGUI\initEditCustomForm(), ilObjDataCollectionGUI\initEditCustomForm(), ilObjExerciseGUI\initEditCustomForm(), ilObjectServiceSettingsGUI\initServiceSettingsForm(), and insertItem().
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 363 of file class.ilPropertyFormGUI.php.
References $_POST, $data, $file, $lng, $ok, getDisableStandardMessage(), keepFileUpload(), and ilUtil\sendFailure().
ilPropertyFormGUI::clearCommandButtons | ( | ) |
Remove all command buttons.
Definition at line 492 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 500 of file class.ilPropertyFormGUI.php.
References $_POST, $ilUser, $lng, $tpl, addItem(), 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 327 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 839 of file class.ilPropertyFormGUI.php.
References $res.
Referenced by hasFileUpload(), and moveFileUpload().
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 449 of file class.ilPropertyFormGUI.php.
References $_POST.
Referenced by ilBookingScheduleGUI\setDefinitionFromPost(), ilObjBlogGUI\updateCustom(), ilObjPollGUI\updateCustom(), ilObjBookingPoolGUI\updateCustom(), ilObjFolderGUI\updateCustom(), ilObjMediaPoolGUI\updateCustom(), ilObjDataCollectionGUI\updateCustom(), ilObjExerciseGUI\updateCustom(), and ilObjectServiceSettingsGUI\updateServiceSettingsForm().
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 ilChatroomFormFactory\applyValues(), executeCommand(), ilObjTestGUI\fixPostValuesForInconsistentFormObjectTree(), assMatchingQuestionGUI\isValidTermAndDefinitionAmount(), ilBookingScheduleGUI\setDefinitionFromPost(), and ilObjBlogGUI\updateCustom().
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.
References $title.
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 928 of file class.ilPropertyFormGUI.php.
References $data, and 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 633 of file class.ilPropertyFormGUI.php.
References $lng, $tpl, addItem(), 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 801 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 944 of file class.ilPropertyFormGUI.php.
References $data, and getFileUpload().
|
protected |
try to rebuild files
Definition at line 984 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 317 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.
ilPropertyFormGUI::setTitle | ( | $a_title | ) |
Set Title.
string | $a_title | Title |
Definition at line 151 of file class.ilPropertyFormGUI.php.
Referenced by FormMailCodesGUI\__construct(), getContent(), 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 337 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setValuesByPost | ( | ) |
Set form values from POST values.
Definition at line 349 of file class.ilPropertyFormGUI.php.
References $_POST.
|
private |
Definition at line 50 of file class.ilPropertyFormGUI.php.
|
protected |
Definition at line 53 of file class.ilPropertyFormGUI.php.
|
protected |
Definition at line 57 of file class.ilPropertyFormGUI.php.
Referenced by getDescription().
|
protected |
Definition at line 54 of file class.ilPropertyFormGUI.php.
Referenced by getDisableStandardMessage().
|
private |
Definition at line 51 of file class.ilPropertyFormGUI.php.
Referenced by getItems().
|
protected |
Definition at line 52 of file class.ilPropertyFormGUI.php.
Referenced by getMode().
|
protected |
Definition at line 60 of file class.ilPropertyFormGUI.php.
|
protected |
Definition at line 59 of file class.ilPropertyFormGUI.php.
Referenced by getShowTopButtons().
|
protected |
Definition at line 58 of file class.ilPropertyFormGUI.php.
Referenced by getTableWidth().
|
protected |
Definition at line 56 of file class.ilPropertyFormGUI.php.
Referenced by getTitleIcon().
|
protected |
Definition at line 55 of file class.ilPropertyFormGUI.php.
Referenced by getTopAnchor().