FormTabs
class FormTabs implements IteratorAggregate, ArrayAccess
Form Tabs definition A translation of the form field tab configuration
Adapted from october\backend\class\FormTabs
Constants
SECTION_OUTSIDE |
|
SECTION_PRIMARY |
|
Properties
string | $section | ||
array | $fields | ||
string | $defaultTab | ||
bool | $stretch | ||
bool | $suppressTabs | ||
string | $cssClass |
Methods
Constructor.
Process options and apply them to this object.
Remove a field from all tabs by name.
Returns true if any fields have been registered for these tabs
Returns an array of the registered fields, including tabs.
Returns an array of the registered fields, without tabs.
Get an iterator for the items.
ArrayAccess implementation
ArrayAccess implementation
ArrayAccess implementation
ArrayAccess implementation
Details
at line 61
__construct(string $section, array $config = [])
Constructor.
Specifies a tabs rendering section. Supported sections are:
- outside - stores a section of "tabless" fields.
- primary - tabs section for primary fields.
- secondary - tabs section for secondary fields.
at line 78
protected array
evalConfig(array $config)
Process options and apply them to this object.
at line 104
addField(string $name, FormField $field, string $tab = null)
Add a field to the collection of tabs.
at line 120
bool
removeField(string $name)
Remove a field from all tabs by name.
at line 146
bool
hasFields()
Returns true if any fields have been registered for these tabs
at line 155
array
getFields()
Returns an array of the registered fields, including tabs.
at line 164
array
getAllFields()
Returns an array of the registered fields, without tabs.
at line 179
ArrayIterator
getIterator()
Get an iterator for the items.
at line 193
offsetSet(mixed $offset, mixed $value)
ArrayAccess implementation
at line 205
bool
offsetExists(mixed $offset)
ArrayAccess implementation
at line 215
offsetUnset(mixed $offset)
ArrayAccess implementation
at line 227
mixed|null
offsetGet(mixed $offset)
ArrayAccess implementation