메소드 |
설명 |
|
added ( array $array ) : void |
Event that's run directly after a field is added |
|
can_be_empty ( ) : boolean |
Return whether a field can post nothing (ie, checkboxes post nothing if not checked) |
|
close ( array $array ) : string |
Allow for any special closing tags that don't fit the norm (ie, datalist) |
|
get_attr ( array $array ) : array |
Allow any pre-configured attributes for a field or form |
|
get_label ( array $array ) : string |
Return a formatted label |
|
get_opts ( array $array ) : array |
Configure and return any option fields (ie select, radios and checkboxes fields) |
|
get_opts_template ( array $array ) : string |
Retrieve a template that renders options for a field |
|
get_tag ( ) : string |
Return a field's tag name. Has to be set for every field. |
|
get_template ( array $array ) : void |
Return a field's template used with $field->render() |
|
get_title ( array $array ) : string |
Get special title (used mostly for groups of fields like checkboxes and radios) |
|
get_val ( array $array ) : mixed |
Return a field's value |
|
get_validation_values ( array $array ) : void |
Find values that will be added to the field's validation object |
|
is_a_parent ( ) : boolean |
Return whether this is usually a parent containing multiple fields |
|
load ( array $array ) : void |
Driver actually sets a field's value from Formo::load() |
|
name ( array $array ) : name |
Return a field's 'name' attribute |
|
new_val ( array $array ) : mixed |
Take a raw new value in and return what the field should interpret the value to be |
|
open ( array $array ) : string |
Return field's open tag |
|
pre_validate ( array $array ) : void |
Event run before validation. Allows pre-configured rules to be added |
|