Méthode |
Description |
|
__construct ( string $name, string $formtype = null, array $extra_data = [] ) |
FormUI's constructor, called on instantiation. |
|
__toString ( ) : string |
Convert this object instance to a string |
|
bounce ( $keep_hash = true ) |
Redirect the user back to the stored URL value in session |
|
build ( string $name, string $formtype = null, array $extra_data = [] ) : FormUI |
Create a new instance of this class and return it, use the fluent interface |
|
content_type ( ) : array |
Implementation of IsContent |
|
dupe ( Theme $theme = null ) : string |
Produce a form "duplicate" that does not process the form, display output, or include one-time-javascripts |
|
from_html ( string $name, string $html ) : FormUI |
Create a form with controls from HTML |
|
get ( Theme $theme = null ) : string |
Produce a form with the contained fields. |
|
get_id_component ( ) : string |
Get a string that will be used to generate a component of a control's HTML id |
|
has_session_data ( ) : boolean |
Get whether there is session data stored for this form |
|
media_panel ( string $path, string $panel, string $callback ) |
Configure all the options necessary to make this form work inside a media bar panel |
|
out ( ) |
Output a form with the contained fields. |
|
output_controls ( Theme $theme ) : string |
Return the form control HTML. |
|
post_redirect ( string $url = null ) : string |
Process a form, then redirect, saving control values on errors for redisplay |
|
pre_out_controls ( ) : string |
Return pre-output control configuration scripts for any controls that require them. |
|
register ( string $name, Callable $build_callback ) |
Register a function to use to create a new form |
|
set_from_error_values ( ) |
Set the values of the form controls from their session error values, if stored |
|
simulate ( array $data, boolean $do_wsse_and_id = false ) |
Simulate posting data to this form |
|