Form_View __construct(
Form
&$form, Form
$form
)
|
|
Constructor
Parameters:
Redefined in descendants as:
void add_field_view(
strinfg$field_name
$field_name, Form_Field_View
$field_view
)
|
|
Adds field's view object
Each form field have to have own field view object.
Parameters:
|
Form_Field_View |
$field_view: |
- view object |
|
strinfg$field_name |
$field_name: |
Name of the field |
API Tags:
Information Tags:
| Throws: | TE_Key_Already_Exists |
Returns charset
API Tags:
Returns Form_Field_View object of field specified with $field_view
Parameters:
|
string |
$field_name: |
Name of the field |
API Tags:
TPLE_Exports get_field_view_exports(
string
$field_name
)
|
|
Returns exports of field view
Parameters:
|
string |
$field_name: |
Name of the field |
API Tags:
| Internal: | |
| Access: | private |
TPLE_Exports get_tple_exports(
)
|
|
Returns TPLE exports of the form
Returns object of class TPLE_Exports that contains all "assigns" required for correct HTML presentation of the form
API Tags:
Implementation of:
- I_Static_Viewable::get_tple_exports()
void set_charset(
string
$charset
)
|
|
Sets charset that field views will use for escaping field data (i.e. htmlentities)
Parameters:
API Tags:
void set_charset_cascade(
[string
$charset = 'UTF-8']
)
|
|
Sets charset of the form view and cycles all field views to pass them the charset (calling their set_charset method)
Default value for parameter $charset is UTF-8
Parameters:
API Tags: