__construct()
__toString()
add()
add_after()
add_before()
add_model()
build()
children()
delete()
disable()
enable()
error()
field()
forge()
form()
get_config()
get_name()
get_tabular_form()
input()
instance()
parent()
populate()
repopulate()
set_config()
set_fieldset_tag()
set_parent()
set_tabular_form()
show_errors()
validated()
validation()
add_child()
$_instance
$_instances
$config
$disabled
$fields
$fieldset_children
$fieldset_parent
$fieldset_tag
$form
$name
$tabular_form_model
$tabular_form_pagination
$tabular_form_relation
$validation
Fieldset Class
Define a set of fields that can be used to generate a form or to validate input.
| package | Fuel |
|---|---|
| category | Core |
__construct($name, array $config)
string
array
__toString() : string
stringadd($name, $label, array $attributes, array $rules) : \Fuel\Core\Fieldset_Field
add_after(string $name, string $label, array $attributes, array $rules, string $fieldname) : \Fuel\Core\Fieldset_Field
string
string
array
array
stringfieldname after which the new field is inserted in the fieldset
add_before(string $name, string $label, array $attributes, array $rules, string $fieldname) : \Fuel\Core\Fieldset_Field
string
string
array
array
stringfieldname before which the new field is inserted in the fieldset
add_model(string | Object $class, array | Object $instance, string $method) : \Fuel\Core\Fieldset
stringObjecteither a full classname (including full namespace) or object instance
arrayObjectarray or object that has the exactly same named properties to populate the fields
stringmethod name to call on model for field fetching
\Fuel\Core\Fieldsetthis, to allow chainingbuild(mixed $action) : string
mixed
stringchildren() : array
arraydelete(string $name) : \Fuel\Core\Fieldset
stringfield name or null to fetch an array of all
\Fuel\Core\Fieldsetthis fieldset, for chainingfield(string | null $name, bool $flatten, bool $tabular_form) : \Fuel\Core\Fieldset_Field | false
stringnullfield name or null to fetch an array of all
boolwhether to get the fields array or flattened array
boolwhether to include tabular form fields in the flattened array
\Fuel\Core\Fieldset_Fieldfalsereturns false when field wasn't foundforge(string $name, array $config) : \Fuel\Core\Fieldset
stringIdentifier for this fieldset
arrayConfiguration array
get_config(string | array $key, mixed $default) : mixed | array
stringarraya single key or multiple in an array, empty to fetch all
mixeddefault output when config wasn't set
mixedarraya single config value or multiple in an array when $key input was an arrayget_name() : string
stringget_tabular_form() : bool
boolinput(string $field) : mixed
string
mixedinstance(\Fuel\Core\Fieldset $instance) : \Fuel\Core\Fieldset
populate(array | object $input, bool $repopulate) : \Fuel\Core\Fieldset
repopulate() : \Fuel\Core\Fieldset
\Fuel\Core\Fieldsetthis, to allow chainingset_parent(\Fuel\Core\Fieldset $fieldset) : \Fuel\Core\Fieldset
set_tabular_form(string $model, string $relation, array $parent, int $blanks, \Fuel\Core\Pagination $pagination) : \Fuel\Core\Fieldset
stringModel on which to define the tabular form
stringRelation of the Model on the tabular form is modeled
arrayCollection of Model objects from a many relation
intNumber of empty rows to generate
\Fuel\Core\Fieldsetthis, to allow chainingshow_errors(array $config) : string
array
stringvalidated(string $field) : mixed
string
mixedvalidation(bool | \Fuel\Core\Validation $instance) : \Fuel\Core\Validation
$_instances : array
$config : array
$disabled : array
$fields : array
$fieldset_children : array
$fieldset_tag : string
$name : string
$tabular_form_model : string
$tabular_form_pagination : \Fuel\Core\Pagination
$tabular_form_relation : string