ILIAS
Release_4_1_x_branch Revision 61804
|
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. | |
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) | |
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. | |
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 Attributes | |
$mode = "std" | |
$check_input_called = false | |
$disable_standard_message = false | |
$top_anchor = "il_form_top" | |
$titleicon = false | |
$description = "" | |
$tbl_width = false | |
Protected Attributes inherited from ilFormGUI | |
$formaction | |
$multipart = false | |
$keepopen = false | |
$opentag = true |
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 404 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 389 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::addItem | ( | $a_item | ) |
Add Item (Property, SectionHeader).
object | $a_property | Item object |
Definition at line 225 of file class.ilPropertyFormGUI.php.
Referenced by FormMailCodesGUI\__construct().
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 341 of file class.ilPropertyFormGUI.php.
References $lng, $ok, getDisableStandardMessage(), and ilUtil\sendFailure().
ilPropertyFormGUI::clearCommandButtons | ( | ) |
Remove all command buttons.
Definition at line 412 of file class.ilPropertyFormGUI.php.
& ilPropertyFormGUI::executeCommand | ( | ) |
Execute command.
Definition at line 76 of file class.ilPropertyFormGUI.php.
References $_GET, $cmd, $ilCtrl, and getItemByPostVar().
ilPropertyFormGUI::getContent | ( | ) |
Get Content.
Reimplemented from ilFormGUI.
Definition at line 420 of file class.ilPropertyFormGUI.php.
References $lng, $tpl, getDescription(), getMode(), getTableWidth(), getTitle(), getTitleIcon(), getTopAnchor(), ilYuiUtil\initAnimation(), ilYuiUtil\initDom(), ilYuiUtil\initEvent(), and insertItem().
ilPropertyFormGUI::getDescription | ( | ) |
Get description.
Definition at line 195 of file class.ilPropertyFormGUI.php.
References $description.
Referenced by getContent().
ilPropertyFormGUI::getDisableStandardMessage | ( | ) |
Get disable standard message.
Definition at line 305 of file class.ilPropertyFormGUI.php.
References $disable_standard_message.
Referenced by checkInput().
ilPropertyFormGUI::getInput | ( | $a_post_var | ) |
Definition at line 369 of file class.ilPropertyFormGUI.php.
References $_POST.
Referenced by ilBookingScheduleGUI\setDefinitionFromPost().
ilPropertyFormGUI::getItemByPostVar | ( | $a_post_var | ) |
Get Item by POST variable.
string | $a_postvar | Post Var |
Definition at line 252 of file class.ilPropertyFormGUI.php.
References $ret.
Referenced by executeCommand(), and ilBookingScheduleGUI\setDefinitionFromPost().
ilPropertyFormGUI::getItems | ( | ) |
Get Items.
Definition at line 285 of file class.ilPropertyFormGUI.php.
References $items.
ilPropertyFormGUI::getMode | ( | ) |
Get Mode ('std', 'subform').
Definition at line 135 of file class.ilPropertyFormGUI.php.
References $mode.
Referenced by getContent(), and insertItem().
|
final |
get table width
public
Definition at line 115 of file class.ilPropertyFormGUI.php.
References $tbl_width.
Referenced by getContent().
ilPropertyFormGUI::getTitle | ( | ) |
Get Title.
Definition at line 155 of file class.ilPropertyFormGUI.php.
References $title.
Referenced by getContent().
ilPropertyFormGUI::getTitleIcon | ( | ) |
Get TitleIcon.
Definition at line 175 of file class.ilPropertyFormGUI.php.
References $titleicon.
Referenced by getContent().
ilPropertyFormGUI::getTopAnchor | ( | ) |
Get top anchor.
Definition at line 215 of file class.ilPropertyFormGUI.php.
References $top_anchor.
Referenced by getContent().
ilPropertyFormGUI::ilPropertyFormGUI | ( | ) |
Constructor.
Definition at line 65 of file class.ilPropertyFormGUI.php.
References $lng, and ilFormGUI\ilFormGUI().
ilPropertyFormGUI::insertItem | ( | $item, | |
$a_sub_item = false |
|||
) |
Definition at line 510 of file class.ilPropertyFormGUI.php.
References $lng, $tpl, ilUtil\getImagePath(), getMode(), and ilFormGUI\setMultipart().
Referenced by getContent().
ilPropertyFormGUI::removeItemByPostVar | ( | $a_post_var | ) |
Remove Item.
string | $a_postvar | Post Var |
Definition at line 236 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setDescription | ( | $a_val | ) |
Set description.
string | description |
Definition at line 185 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setDisableStandardMessage | ( | $a_val | ) |
Set disable standard message.
boolean | disable standard message |
Definition at line 295 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setItems | ( | $a_items | ) |
Set Items.
array | $a_items | array of item objects |
Definition at line 275 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setMode | ( | $a_mode | ) |
Set Mode ('std', 'subform').
string | $a_mode | Mode ('std', 'subform') |
Definition at line 125 of file class.ilPropertyFormGUI.php.
|
final |
Set table width.
public
string | table width |
Definition at line 104 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setTitle | ( | $a_title | ) |
Set Title.
string | $a_title | Title |
Definition at line 145 of file class.ilPropertyFormGUI.php.
Referenced by FormMailCodesGUI\__construct().
ilPropertyFormGUI::setTitleIcon | ( | $a_titleicon | ) |
Set TitleIcon.
string | $a_titleicon | TitleIcon |
Definition at line 165 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setTopAnchor | ( | $a_val | ) |
Set top anchor.
string | top anchor |
Definition at line 205 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 315 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setValuesByPost | ( | ) |
Set form values from POST values.
Definition at line 327 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 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().