ILIAS
Release_3_10_x_branch Revision 61812
|
This class represents a property form user interface. More...
Public Member Functions | |
ilPropertyFormGUI () | |
Constructor. | |
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. | |
setSubformMode ($a_subformmode) | |
Set Subform Mode. | |
getSubformMode () | |
Get Subform Mode. | |
setTitleIcon ($a_titleicon) | |
Set TitleIcon. | |
getTitleIcon () | |
Get TitleIcon. | |
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. | |
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. | |
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. | |
getHTML () | |
Get HTML. |
Protected Attributes | |
$mode = "std" | |
$check_input_called = false | |
$subformmode = "bottom" | |
Protected Attributes inherited from ilFormGUI | |
$formaction | |
$multipart = false | |
$keepopen = false |
Private Attributes | |
$buttons = array() | |
$items = array() |
This class represents a property form user interface.
Definition at line 61 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::addCommandButton | ( | $a_cmd, | |
$a_text | |||
) |
Add Command button.
string | Command |
string | Text |
Definition at line 340 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 325 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::addItem | ( | $a_item | ) |
Add Item (Property, SectionHeader).
object | $a_property | Item object |
Definition at line 190 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 283 of file class.ilPropertyFormGUI.php.
References $ok.
ilPropertyFormGUI::getContent | ( | ) |
Get Content.
Reimplemented from ilFormGUI.
Definition at line 348 of file class.ilPropertyFormGUI.php.
References $lng, $tpl, getMode(), getSubformMode(), getTableWidth(), getTitle(), getTitleIcon(), and insertItem().
ilPropertyFormGUI::getInput | ( | $a_post_var | ) |
Definition at line 305 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::getItemByPostVar | ( | $a_post_var | ) |
Get Item by POST variable.
string | $a_postvar | Post Var |
Definition at line 216 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::getItems | ( | ) |
Get Items.
Definition at line 247 of file class.ilPropertyFormGUI.php.
References $items.
ilPropertyFormGUI::getMode | ( | ) |
Get Mode ('std', 'subform').
Definition at line 120 of file class.ilPropertyFormGUI.php.
References $mode.
Referenced by getContent(), and insertItem().
ilPropertyFormGUI::getSubformMode | ( | ) |
Get Subform Mode.
("bottom" | "right")
Definition at line 160 of file class.ilPropertyFormGUI.php.
References $subformmode.
Referenced by getContent(), and insertItem().
|
final |
get table width
public
Definition at line 100 of file class.ilPropertyFormGUI.php.
Referenced by getContent().
ilPropertyFormGUI::getTitle | ( | ) |
Get Title.
Definition at line 140 of file class.ilPropertyFormGUI.php.
References $title.
Referenced by getContent().
ilPropertyFormGUI::getTitleIcon | ( | ) |
Get TitleIcon.
Definition at line 180 of file class.ilPropertyFormGUI.php.
Referenced by getContent().
ilPropertyFormGUI::ilPropertyFormGUI | ( | ) |
Constructor.
Definition at line 74 of file class.ilPropertyFormGUI.php.
References $lng, and ilFormGUI\ilFormGUI().
ilPropertyFormGUI::insertItem | ( | $item, | |
$a_sub_item = false |
|||
) |
Definition at line 436 of file class.ilPropertyFormGUI.php.
References $lng, $tpl, ilUtil\getImagePath(), getMode(), getSubformMode(), and ilFormGUI\setMultipart().
Referenced by getContent().
ilPropertyFormGUI::removeItemByPostVar | ( | $a_post_var | ) |
Remove Item.
string | $a_postvar | Post Var |
Definition at line 200 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setItems | ( | $a_items | ) |
Set Items.
array | $a_items | array of item objects |
Definition at line 237 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setMode | ( | $a_mode | ) |
Set Mode ('std', 'subform').
string | $a_mode | Mode ('std', 'subform') |
Definition at line 110 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setSubformMode | ( | $a_subformmode | ) |
Set Subform Mode.
("bottom" | "right")
string | $a_subformmode | Subform Mode |
Definition at line 150 of file class.ilPropertyFormGUI.php.
|
final |
Set table width.
public
string | table width |
Definition at line 89 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setTitle | ( | $a_title | ) |
Set Title.
string | $a_title | Title |
Definition at line 130 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setTitleIcon | ( | $a_titleicon | ) |
Set TitleIcon.
string | $a_titleicon | TitleIcon |
Definition at line 170 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 257 of file class.ilPropertyFormGUI.php.
ilPropertyFormGUI::setValuesByPost | ( | ) |
Set form values from POST values.
Definition at line 269 of file class.ilPropertyFormGUI.php.
|
private |
Definition at line 63 of file class.ilPropertyFormGUI.php.
|
protected |
Definition at line 66 of file class.ilPropertyFormGUI.php.
|
private |
Definition at line 64 of file class.ilPropertyFormGUI.php.
Referenced by getItems().
|
protected |
Definition at line 65 of file class.ilPropertyFormGUI.php.
Referenced by getMode().
|
protected |
Definition at line 67 of file class.ilPropertyFormGUI.php.
Referenced by getSubformMode().