protected
string
|
#
GetControlHtml( )
This method will render the control, itself, and will return the rendered HTML as a string
This method will render the control, itself, and will return the rendered HTML as a string
As an abstract method, any class extending QControlBase must implement it. This ensures that
each control has its own specific html.
When outputting html, you should call GetHtmlAttributes to get the attributes for the main control.
If you are outputting a complex control, and need to include ids in subcontrols, your ids should be of the form: $parentControl->ControlId . '_' . $strSubcontrolId.
The underscore indicates that actions and post data should be routed first to the parent control, and the parent
control will handle the rest.
Returns
string
|
public
|
#
ParsePostData( )
ParsePostData parses the value of this control from FormState
ParsePostData parses the value of this control from FormState
This abstract method must be implemented by all controls.
When utilizing formgen, the programmer should never access form variables directly (e.g.
via the $_FORM array). It can be assumed that at *ANY* given time, a control's
values/properties will be "up to date" with whatever the webuser has entered in.
When a Form is Created via Form::Create(string), the form will go through to check and
see if it is a first-run of a form, or if it is a post-back. If it is a postback, it
will go through its own private array of controls and call ParsePostData on EVERY control
it has. Each control is responsible for "knowing" how to parse the $_POST data to update
its own values/properties based on what was returned to via the postback.
|