Static_HTML_Form_Generator __construct(
Form
$form, string
$tpl_path, string
$language
)
|
|
Constructor
Parameters:
|
Form |
$form: |
|
|
string |
$tpl_path: |
|
|
string |
$language: |
|
void add_tpl_map_entry(
unknown_type
$field_name, unknown_type
$tpl_path
)
|
|
Adds new map entry for templates
Parameters:
|
unknown_type |
$field_name: |
|
|
unknown_type |
$tpl_path: |
|
API Tags:
| Internal: | |
| Access: | protected |
void change_field_p_error_map_entry(
string
$field_name, string
$p_error_name, string
$tpl_path
)
|
|
Changes map entry for field error template
Parameters:
|
string |
$field_name: |
Name of the field |
|
string |
$p_error_name: |
Name of the error |
|
string |
$tpl_path: |
Path to template file |
API Tags:
void change_tpl_map_entry(
unknown_type
$field_name, unknown_type
$tpl_path
)
|
|
Changes existying map entry for template
Parameters:
|
unknown_type |
$field_name: |
|
|
unknown_type |
$tpl_path: |
|
API Tags:
void create_default_tpl_maps(
)
|
|
Creates default template maps for fields and fields potential errors
API Tags:
unknown create_field_errors_tpl_map(
$f
)
|
|
Creates default map for fields' potential errors
Parameters:
API Tags:
| Internal: | |
| Access: | private |
unknown get_fields_tpl_map_entry_value(
unknown_type
$field_name
)
|
|
Enter description here...
Parameters:
|
unknown_type |
$field_name: |
|
API Tags:
Returns Form object
API Tags:
Returns form language
API Tags:
string get_static_html(
)
|
|
Returns generated HTML code
API Tags:
Returns template path
API Tags:
array sort_fields(
&$fields, array
$fields
)
|
|
Sorts fields array
Purpose is to move all hidden fields at the end of the result array. That way hidden fields does not bother the sequence of odd/even rows when HTML is generated (e.g. if diferent styles are used for odd and even rows (and if template uses one row per field))
Parameters:
API Tags:
| Internal: | |
| Access: | protected |