__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
string
add($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
string
fieldname 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
string
fieldname before which the new field is inserted in the fieldset
add_model(string | Object $class, array | Object $instance, string $method) : \Fuel\Core\Fieldset
string
Object
either a full classname (including full namespace) or object instance
array
Object
array or object that has the exactly same named properties to populate the fields
string
method name to call on model for field fetching
\Fuel\Core\Fieldset
this, to allow chainingbuild(mixed $action) : string
mixed
string
children() : array
array
delete(string $name) : \Fuel\Core\Fieldset
string
field name or null to fetch an array of all
\Fuel\Core\Fieldset
this fieldset, for chainingfield(string | null $name, bool $flatten, bool $tabular_form) : \Fuel\Core\Fieldset_Field | false
string
null
field name or null to fetch an array of all
bool
whether to get the fields array or flattened array
bool
whether to include tabular form fields in the flattened array
\Fuel\Core\Fieldset_Field
false
returns false when field wasn't foundforge(string $name, array $config) : \Fuel\Core\Fieldset
string
Identifier for this fieldset
array
Configuration array
get_config(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 config wasn't set
mixed
array
a single config value or multiple in an array when $key input was an arrayget_name() : string
string
get_tabular_form() : bool
bool
input(string $field) : mixed
string
mixed
instance(\Fuel\Core\Fieldset $instance) : \Fuel\Core\Fieldset
populate(array | object $input, bool $repopulate) : \Fuel\Core\Fieldset
repopulate() : \Fuel\Core\Fieldset
\Fuel\Core\Fieldset
this, 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
string
Model on which to define the tabular form
string
Relation of the Model on the tabular form is modeled
array
Collection of Model objects from a many relation
int
Number of empty rows to generate
\Fuel\Core\Fieldset
this, to allow chainingshow_errors(array $config) : string
array
string
validated(string $field) : mixed
string
mixed
validation(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