ILIAS
Release_4_0_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. | |
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" | |
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 401 of file class.ilPropertyFormGUI.php.
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 386 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::addItem | ( | $a_item | ) |
Add Item (Property, SectionHeader).
object | $a_property | Item object |
Definition at line 222 of file class.ilPropertyFormGUI.php.
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 338 of file class.ilPropertyFormGUI.php.
References $lng, $ok, getDisableStandardMessage(), and ilUtil\sendFailure().
ilPropertyFormGUI::clearCommandButtons | ( | ) |
Remove all command buttons.
Definition at line 409 of file class.ilPropertyFormGUI.php.
& ilPropertyFormGUI::executeCommand | ( | ) |
Execute command.
Definition at line 73 of file class.ilPropertyFormGUI.php.
References $_GET, $cmd, $ilCtrl, and getItemByPostVar().
ilPropertyFormGUI::getContent | ( | ) |
Get Content.
Reimplemented from ilFormGUI.
Definition at line 417 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 192 of file class.ilPropertyFormGUI.php.
Referenced by getContent().
ilPropertyFormGUI::getDisableStandardMessage | ( | ) |
Get disable standard message.
Definition at line 302 of file class.ilPropertyFormGUI.php.
References $disable_standard_message.
Referenced by checkInput().
ilPropertyFormGUI::getInput | ( | $a_post_var | ) |
Definition at line 366 of file class.ilPropertyFormGUI.php.
References $_POST.
ilPropertyFormGUI::getItemByPostVar | ( | $a_post_var | ) |
Get Item by POST variable.
string | $a_postvar | Post Var |
Definition at line 249 of file class.ilPropertyFormGUI.php.
Referenced by executeCommand().
ilPropertyFormGUI::getItems | ( | ) |
Get Items.
Definition at line 282 of file class.ilPropertyFormGUI.php.
References $items.
ilPropertyFormGUI::getMode | ( | ) |
Get Mode ('std', 'subform').
Definition at line 132 of file class.ilPropertyFormGUI.php.
References $mode.
Referenced by getContent(), and insertItem().
|
final |
get table width
public
Definition at line 112 of file class.ilPropertyFormGUI.php.
Referenced by getContent().
ilPropertyFormGUI::getTitle | ( | ) |
Get Title.
Definition at line 152 of file class.ilPropertyFormGUI.php.
References $title.
Referenced by getContent().
ilPropertyFormGUI::getTitleIcon | ( | ) |
Get TitleIcon.
Definition at line 172 of file class.ilPropertyFormGUI.php.
Referenced by getContent().
ilPropertyFormGUI::getTopAnchor | ( | ) |
Get top anchor.
Definition at line 212 of file class.ilPropertyFormGUI.php.
References $top_anchor.
Referenced by getContent().
ilPropertyFormGUI::ilPropertyFormGUI | ( | ) |
Constructor.
Definition at line 62 of file class.ilPropertyFormGUI.php.
References $lng, and ilFormGUI\ilFormGUI().
ilPropertyFormGUI::insertItem | ( | $item, | |
$a_sub_item = false |
|||
) |
Definition at line 507 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 233 of file class.ilPropertyFormGUI.php.
References $key.
ilPropertyFormGUI::setDescription | ( | $a_val | ) |
Set description.
string | description |
Definition at line 182 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setDisableStandardMessage | ( | $a_val | ) |
Set disable standard message.
boolean | disable standard message |
Definition at line 292 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setItems | ( | $a_items | ) |
Set Items.
array | $a_items | array of item objects |
Definition at line 272 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setMode | ( | $a_mode | ) |
Set Mode ('std', 'subform').
string | $a_mode | Mode ('std', 'subform') |
Definition at line 122 of file class.ilPropertyFormGUI.php.
|
final |
Set table width.
public
string | table width |
Definition at line 101 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setTitle | ( | $a_title | ) |
Set Title.
string | $a_title | Title |
Definition at line 142 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setTitleIcon | ( | $a_titleicon | ) |
Set TitleIcon.
string | $a_titleicon | TitleIcon |
Definition at line 162 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setTopAnchor | ( | $a_val | ) |
Set top anchor.
string | top anchor |
Definition at line 202 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 312 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setValuesByPost | ( | ) |
Set form values from POST values.
Definition at line 324 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 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 55 of file class.ilPropertyFormGUI.php.
Referenced by getTopAnchor().