-
Docs
Backend
-
Behaviors
-
Classes
-
Controllers
-
Database
-
Seeds
-
-
Facades
-
FormWidgets
-
Helpers
-
Exception
- Backend
-
-
Models
-
ReportWidgets
-
Skins
-
Traits
-
Widgets
- ServiceProvider
-
-
Cms
-
Classes
- Asset
- AutoDatasource
- CmsCompoundObject
- CmsController
- CmsException
- CmsObject
- CmsObjectCollection
- CodeBase
- CodeParser
- ComponentBase
- ComponentHelpers
- ComponentManager
- ComponentPartial
- Content
- Controller
- Layout
- LayoutCode
- MediaLibrary
- MediaLibraryItem
- MediaViewHelper
- Meta
- ObjectMemoryCache
- Page
- PageCode
- Partial
- PartialCode
- PartialStack
- Router
- Theme
- ThemeManager
-
Components
-
Contracts
-
Controllers
-
Facades
-
FormWidgets
-
Helpers
-
Models
-
ReportWidgets
-
Traits
-
Twig
- ComponentNode
- ComponentTokenParser
- ContentNode
- ContentTokenParser
- DebugExtension
- DefaultNode
- DefaultTokenParser
- Extension
- FlashNode
- FlashTokenParser
- FrameworkNode
- FrameworkTokenParser
- Loader
- PageNode
- PageTokenParser
- PartialNode
- PartialTokenParser
- PlaceholderNode
- PlaceholderTokenParser
- PutNode
- PutTokenParser
- ScriptsNode
- ScriptsTokenParser
- StylesNode
- StylesTokenParser
-
Widgets
- ServiceProvider
-
-
System
-
Behaviors
-
Classes
-
Console
-
Controllers
-
Database
-
Helpers
-
Models
-
ReportWidgets
-
Traits
-
Twig
- ServiceProvider
-
-
Events
-
backend
-
ajax
-
filter
-
form
-
list
-
menu
-
page
-
user
-
-
cms
-
ajax
-
block
-
combiner
-
component
-
object
-
page
-
router
-
template
-
theme
-
-
halcyon
-
datasource
-
-
mailer
-
media
-
model
-
system
-
assets
-
console
-
mirror
-
theme
-
-
reportwidgets
-
settings
- extendConfigFile
-
-
translator
-
-
Library
-
Argon
-
Auth
-
Models
- AuthException
- Manager
-
-
Config
-
Cookie
-
Middleware
-
-
Database
-
Attach
-
Behaviors
-
Concerns
-
Connections
-
Connectors
-
Models
-
Relations
-
Schema
-
Traits
-
Updates
- README
- Builder
- Collection
- DatabaseServiceProvider
- DataFeed
- Dongle
- MemoryCache
- Model
- ModelBehavior
- ModelException
- NestedTreeScope
- Pivot
- QueryBuilder
- SortableScope
- TreeCollection
- Updater
-
-
Events
-
Exception
-
Extension
-
Filesystem
-
Flash
-
Foundation
-
Bootstrap
-
Console
-
Exception
-
Http
-
Middleware
- Kernel
-
-
Providers
- Application
- Maker
-
-
Halcyon
-
Datasource
-
Exception
-
Processors
-
Traits
- README
- Builder
- Collection
- HalcyonServiceProvider
- MemoryCacheManager
- MemoryRepository
- Model
-
-
Html
-
Mail
-
Network
-
Parse
-
Router
-
Scaffold
-
Support
-
Translation
-
- Documentation
- API
- Backend
- Classes
- FormTabs
Backend\Classes\FormTabs
Source: ~/modules/backend/classes/FormTabs.php
Implements:
- IteratorAggregate
- Traversable
- ArrayAccess
Form Tabs definition A translation of the form field tab configuration
Public properties
public string $section
Specifies the form section these tabs belong to.
public array $fields
Collection of panes fields to these tabs.
public array $lazy
Names of tabs to lazy load.
public string $defaultTab
Default tab label to use when none is specified.
public array $icons
List of icons for their corresponding tabs.
public bool $stretch
Should these tabs stretch to the bottom of the page layout.
public boolean $suppressTabs
If set to TRUE, fields will not be displayed in tabs.
public string $cssClass
Specifies a CSS class to attach to the tab container.
public array $paneCssClass
Specifies a CSS class to an individual tab pane.
Public methods
public void __construct(string $section, array $config=array())
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.
Parameters
- string $section - Specifies a section as described above.
- array $config - A list of render mode specific config.
public void addField(string $name, FormField $field, string $tab=NULL)
Add a field to the collection of tabs.
Parameters
- string $name
- FormField $field
- string $tab
public array getAllFields()
Returns an array of the registered fields, without tabs.
public array getFields()
Returns an array of the registered fields, including tabs.
public string getIcon(string $name)
Returns an icon for the tab based on the tab's name.
Parameters
- string $name
public ArrayIterator getIterator()
Get an iterator for the items.
public string getPaneCssClass(string $index=NULL, string $label=NULL)
Returns a tab pane CSS class.
Parameters
- string $index
- string $label
public boolean hasFields()
Returns true if any fields have been registered for these tabs
public void offsetExists($offset)
ArrayAccess implementation
Parameters
- $offset
public void offsetGet($offset)
ArrayAccess implementation
Parameters
- $offset
public void offsetSet($offset, $value)
ArrayAccess implementation
Parameters
- $offset
- $value
public void offsetUnset($offset)
ArrayAccess implementation
Parameters
- $offset
public boolean removeField(string $name)
Remove a field from all tabs by name.
Parameters
- string $name
Protected methods
protected array evalConfig(array $config)
Process options and apply them to this object.
Parameters
- array $config