메소드 |
설명 |
|
__get ( string $name ) : FormControl |
Magic property getter, returns the specified control |
|
__isset ( string $name ) : boolean |
Magic property isset, returns if the specified control exists |
|
append ( FormControl $control ) : FormControl | FormContainer |
Append a control to the end of this container |
|
clear ( ) |
Reset the contained control values to their initial values |
|
control_id ( ) : string |
Obtain a unique identifier for this control that is the same every time the form is generated |
|
do_success ( FormUI $form ) : boolean | string |
Calls the success callback for the form, and optionally saves the form values
to the options table. |
|
each ( Callable $fn ) |
Apply a function to every control in this container, and any sub-containers |
|
errors_get ( string $format, string $wrap = '%s' ) : string |
Return any validation errors on any controls in this container using the supplied format
$this->validate must be called first! |
|
errors_out ( $format, $wrap = '%s' ) |
Output any validation errors on any controls in this container using the supplied format
$this->validate must be called first! |
|
get ( Theme $theme ) : string |
Produce HTML output for all this fieldset and all contained controls |
|
get_contents ( Theme $theme ) : string |
Get the control contents of this container |
|
get_control ( string $name ) : FormControl | null |
Get a control from this container by name. |
|
get_controls ( ) : array |
Returns an associative array of controls |
|
get_value_out ( array $tag_fields ) : boolean | string |
Return the property value that is associated with the first present property from an array list
This version only searches the list of the class' $properties array, because __get() on this objcet returns named FormControls instances |
|
get_values ( ) : array |
Returns an associative array of the controls' values |
|
insert ( FormControl $before, FormControl $control ) : FormControl |
|
|
load ( ) |
Load this control and its children's initial data from the initialized storage location |
|
move ( FormControl $source, FormControl $target, integer $offset ) |
Moves a control to target's position to which we add $int if specified
That integer is useful to move before or move after the target |
|
move_after ( FormControl $control, FormControl $target ) |
Moves a control after the target control |
|
move_before ( FormControl $control, FormControl $target ) |
Moves a control before the target control |
|
move_into ( FormControl $control, FormContainer $target ) |
Move a control into the container |
|
pre_out ( ) : string |
Return the HTML/script required for all contained controls. Do it only once. |
|
process ( ) |
Obtain the value of this control as supplied by the incoming $_POST values |
|
remove ( FormControl $target ) |
Removes a target control from this group (can be the form or a fieldset) |
|
replace ( FormControl $target, FormControl $control ) |
Replaces a target control by the supplied control |
|
save ( ) |
Store each contained control's value under the control's specified key. |
|
set_control_id ( string $control_id ) : FormControl |
Set the unique identifier for this control. |
|
set_wrap_each ( string $wrap = '%s' ) : FormContainer |
Set a sprintf-style string that will wrap each control within this container with markup
Use to create, for example, %s for each control in the container |
|
validate ( ) : array |
Runs any attached validation functions to check validation of each control contained in this fieldset. |
|