__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
string
add($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
string
Callback
either a validation rule or full callback
\Fuel\Core\Fieldset_Field
this, to allow chainingbuild() : string
string
delete_rule(string | Callback $callback, bool $set_attr) : \Fuel\Core\Fieldset_Field
string
Callback
either a validation rule or full callback
bool
whether to also reset related attributes
\Fuel\Core\Fieldset_Field
this, to allow chainingerror() : \Fuel\Core\Validation_Error
get_attribute(string | array $key, mixed $default) : mixed | array
string
array
a single key or multiple in an array, empty to fetch all
mixed
default output when attribute wasn't set
mixed
array
a single attribute or multiple in an array when $key input was an arrayinput() : mixed
mixed
set_attribute($attr, mixed $value) : \Fuel\Core\Fieldset_Field
string
mixed
new value or null to unset
\Fuel\Core\Fieldset_Field
this, to allow chainingset_fieldset(\Fuel\Core\Fieldset $fieldset) : \Fuel\Core\Fieldset_Field
set_value(string $value, bool $repopulate) : \Fuel\Core\Fieldset_Field
validated() : mixed
mixed
template($build_field)
$attributes : array
$basename : string
$description : string
$label : string
$name : string
$rules : array
$template : string
$type : string
$value : mixed