__construct()
__get()
__toString()
add()
add_after()
add_before()
add_rule()
build()
delete_rule()
error()
fieldset()
get_attribute()
get_error_message()
input()
set_attribute()
set_description()
set_error_message()
set_fieldset()
set_label()
set_options()
set_template()
set_type()
set_value()
validated()
template()
$attributes
$basename
$description
$error_messages
$fieldset
$label
$name
$options
$rules
$template
$type
$value
Fieldset Class
Define a set of fields that can be used to generate a form or to validate input.
| package | Fuel |
|---|---|
| category | Core |
__construct(string $name, string $label, array $attributes, array $rules, \Fuel\Core\Fieldset $fieldset)
string
string
array
array
\Fuel\Core\Fieldset
\RuntimeException |
|---|
__get($property) : mixed
mixed__toString() : string
stringadd($name, $label, array $attributes, array $rules) : \Fuel\Core\Fieldset_Field
add_after($name, $label, array $attributes, array $rules, $fieldname) : \Fuel\Core\Fieldset_Field
add_before($name, $label, array $attributes, array $rules, $fieldname) : \Fuel\Core\Fieldset_Field
add_rule(string | Callback $callback) : \Fuel\Core\Fieldset_Field
stringCallbackeither a validation rule or full callback
\Fuel\Core\Fieldset_Fieldthis, to allow chainingbuild() : string
stringdelete_rule(string | Callback $callback, bool $set_attr) : \Fuel\Core\Fieldset_Field
stringCallbackeither a validation rule or full callback
boolwhether to also reset related attributes
\Fuel\Core\Fieldset_Fieldthis, to allow chainingerror() : \Fuel\Core\Validation_Error
get_attribute(string | array $key, mixed $default) : mixed | array
stringarraya single key or multiple in an array, empty to fetch all
mixeddefault output when attribute wasn't set
mixedarraya single attribute or multiple in an array when $key input was an arrayinput() : mixed
mixedset_attribute($attr, mixed $value) : \Fuel\Core\Fieldset_Field
string
mixednew value or null to unset
\Fuel\Core\Fieldset_Fieldthis, to allow chainingset_fieldset(\Fuel\Core\Fieldset $fieldset) : \Fuel\Core\Fieldset_Field
set_value(string $value, bool $repopulate) : \Fuel\Core\Fieldset_Field
validated() : mixed
mixedtemplate($build_field)
$attributes : array
$basename : string
$description : string
$label : string
$name : string
$rules : array
$template : string
$type : string
$value : mixed