ILIAS
Release_4_2_x_branch Revision 61807
|
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) | |
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 473 of file class.ilPropertyFormGUI.php.
Referenced by FormMailCodesGUI\__construct(), and ilChatroomFormFactory\addDefaultBehaviour().
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 458 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::addItem | ( | $a_item | ) |
Add Item (Property, SectionHeader).
object | $a_property | Item object |
Definition at line 246 of file class.ilPropertyFormGUI.php.
Referenced by FormMailCodesGUI\__construct(), ilPersonalProfileGUI\addLocationToForm(), ilObjCourseGUI\fillECSExportSettings(), getContent(), ilObjectGUI\initDidacticTemplate(), ilObjBlogGUI\initEditCustomForm(), ilObjBookingPoolGUI\initEditCustomForm(), ilObjForumGUI\initEditCustomForm(), ilObjFolderGUI\initEditCustomForm(), ilObjMediaPoolGUI\initEditCustomForm(), and ilObjExerciseGUI\initEditCustomForm().
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 362 of file class.ilPropertyFormGUI.php.
References $_POST, $data, $file, $file_name, $lng, $ok, getDisableStandardMessage(), keepFileUpload(), and ilUtil\sendFailure().
ilPropertyFormGUI::clearCommandButtons | ( | ) |
Remove all command buttons.
Definition at line 481 of file class.ilPropertyFormGUI.php.
& ilPropertyFormGUI::executeCommand | ( | ) |
Execute command.
Definition at line 81 of file class.ilPropertyFormGUI.php.
References $_GET, $cmd, $ilCtrl, and getItemByPostVar().
ilPropertyFormGUI::getContent | ( | ) |
Get Content.
Reimplemented from ilFormGUI.
Definition at line 489 of file class.ilPropertyFormGUI.php.
References $_POST, $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 200 of file class.ilPropertyFormGUI.php.
References $description.
Referenced by getContent().
ilPropertyFormGUI::getDisableStandardMessage | ( | ) |
Get disable standard message.
Definition at line 326 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 811 of file class.ilPropertyFormGUI.php.
References $res.
Referenced by hasFileUpload(), and moveFileUpload().
ilPropertyFormGUI::getInput | ( | $a_post_var | ) |
Definition at line 438 of file class.ilPropertyFormGUI.php.
References $_POST.
Referenced by ilBookingScheduleGUI\setDefinitionFromPost(), ilObjBlogGUI\updateCustom(), ilObjBookingPoolGUI\updateCustom(), ilObjForumGUI\updateCustom(), ilObjFolderGUI\updateCustom(), ilObjMediaPoolGUI\updateCustom(), and ilObjExerciseGUI\updateCustom().
ilPropertyFormGUI::getItemByPostVar | ( | $a_post_var | ) |
Get Item by POST variable.
string | $a_postvar | Post Var |
Definition at line 273 of file class.ilPropertyFormGUI.php.
References $ret.
Referenced by ilChatroomFormFactory\applyValues(), executeCommand(), assMatchingQuestionGUI\isValidTermAndDefinitionAmount(), ilBookingScheduleGUI\setDefinitionFromPost(), and ilObjBlogGUI\updateCustom().
ilPropertyFormGUI::getItems | ( | ) |
Get Items.
Definition at line 306 of file class.ilPropertyFormGUI.php.
References $items.
ilPropertyFormGUI::getMode | ( | ) |
Get Mode ('std', 'subform').
Definition at line 140 of file class.ilPropertyFormGUI.php.
References $mode.
Referenced by getContent(), and insertItem().
ilPropertyFormGUI::getShowTopButtons | ( | ) |
Set show top buttons.
Definition at line 236 of file class.ilPropertyFormGUI.php.
References $show_top_buttons.
Referenced by getContent().
|
final |
get table width
public
Definition at line 120 of file class.ilPropertyFormGUI.php.
References $tbl_width.
Referenced by getContent().
ilPropertyFormGUI::getTitle | ( | ) |
Get Title.
Definition at line 160 of file class.ilPropertyFormGUI.php.
References $title.
Referenced by getContent().
ilPropertyFormGUI::getTitleIcon | ( | ) |
Get TitleIcon.
Definition at line 180 of file class.ilPropertyFormGUI.php.
References $titleicon.
Referenced by getContent().
ilPropertyFormGUI::getTopAnchor | ( | ) |
Get top anchor.
Definition at line 220 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 900 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 622 of file class.ilPropertyFormGUI.php.
References $lng, $tpl, ilUtil\getImagePath(), getMode(), and ilFormGUI\setMultipart().
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 773 of file class.ilPropertyFormGUI.php.
References 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 916 of file class.ilPropertyFormGUI.php.
References $data, and getFileUpload().
|
protected |
try to rebuild files
Definition at line 956 of file class.ilPropertyFormGUI.php.
References $_POST, $file, ilFormGUI\$name, and ilUtil\getDataDir().
Referenced by ilPropertyFormGUI().
ilPropertyFormGUI::removeItemByPostVar | ( | $a_post_var | ) |
Remove Item.
string | $a_postvar | Post Var |
Definition at line 257 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setDescription | ( | $a_val | ) |
Set description.
string | description |
Definition at line 190 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setDisableStandardMessage | ( | $a_val | ) |
Set disable standard message.
boolean | disable standard message |
Definition at line 316 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setItems | ( | $a_items | ) |
Set Items.
array | $a_items | array of item objects |
Definition at line 296 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setMode | ( | $a_mode | ) |
Set Mode ('std', 'subform').
string | $a_mode | Mode ('std', 'subform') |
Definition at line 130 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setShowTopButtons | ( | $a_val | ) |
Get show top buttons.
Definition at line 228 of file class.ilPropertyFormGUI.php.
|
final |
Set table width.
public
string | table width |
Definition at line 109 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setTitle | ( | $a_title | ) |
Set Title.
string | $a_title | Title |
Definition at line 150 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 170 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setTopAnchor | ( | $a_val | ) |
Set top anchor.
string | top anchor |
Definition at line 210 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 336 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setValuesByPost | ( | ) |
Set form values from POST values.
Definition at line 348 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().