Form_Ctrl __construct(
string
$system_name
)
|
|
Constructor
Parameters:
|
string |
$system_name: |
Name of the controller. Must be alphanumeric (underscore allowed), starting with letter, 50 characters max. |
Redefined in descendants as:
User have to define this method and to return instance of Form
API Tags:
| Abstract: | |
| Access: | protected |
User have to define this method and to return instance of Form_View
API Tags:
| Abstract: | |
| Access: | protected |
void export(
string
$key, string
$value
)
|
|
Alias of $this->exports->add_pair()
Parameters:
|
string |
$key: |
|
|
string |
$value: |
|
API Tags:
Returns reference to Form object
Use this method *only* if you will change something in it. If you just need to extrac some value - use query_form();
API Tags:
unknown get_form_submit_event(
)
|
|
Returns form's submit event
API Tags:
arrray get_form_submit_events(
)
|
|
Returns events of form submission both for <input type="submit" and <input type="image"
API Tags:
| Return: | Simple array of Web_Event_Simple elements |
| Access: | public |
Return reference to Form_View object
Use this method *only* if you will change something in it. If you just need to extrac some value - use query_form_view();
API Tags:
| See: | qForm_Ctrl::uery_form_view() |
| Access: | public |
unknown get_system_name(
)
|
|
Gets name
API Tags:
TPLE_Exports get_tple_exports(
)
|
|
Gets TPLE_Exports for the form
API Tags:
This method will be called when form submit is not good, i.e. Form_Ctrl::SUBMIT_RESULT_ERROR
API Tags:
| Abstract: | |
| Access: | protected |
This method is called when submit is OK.
User can use this method make additional checks for fields validation. If this method exits with Form_Ctrl::SUBMIT_RESULT_ERROR then calling method process() will also exit with same result Same is valid for
API Tags:
| Abstract: | |
| Access: | protected |
Descendants of Form_Ctrl may use this method to prepare the form
This method is empty (not abstract) for convinience reasons.
API Tags:
Redefined in descendants as:
Processes submit of the form
Returns Form_Ctrl::SUBMIT_RESULT_OK if form is OK, Form_Ctrl::SUBMIT_RESULT_ERROR otherwise
Parameters:
API Tags:
Redefined in descendants as:
Returns copy of Form object
API Tags:
Returns copy of Form_View object
API Tags:
void set_system_name(
string
$system_name
)
|
|
Sets this object's name
Parameters:
|
string |
$system_name: |
ust be alphanumeric (underscore allowed), starting with letter, 50 characters max. |
API Tags:
Internally called method which sole purpose is to verify that value returned by create_form method is really a instance of Form
API Tags:
| Internal: | |
| Access: | protected |
Information Tags:
void _create_form_view(
)
|
|
Internally called method which sole purpose is to verify that value returned by create_form method is really a instance of Form_View
API Tags:
| Internal: | |
| Access: | protected |
Information Tags: