Column
Column implements OutputableInterface, ValidatableInterface
Holds a collection of form elements to be output vertically.
- Full name: \Gibbon\Forms\Layout\Column
- Parent class: \Gibbon\Forms\Layout\Row
- This class implements: Warning: strrchr() expects parameter 1 to be string, object given in /Users/sankuipe/Desktop/Localhost/documentor/src/Extension/TwigMarkdownAnchorLink.php on line 108
Methods
- __construct — Construct a column with access to a specific factory.
- getRequired — Gets the required attribute of the internal element matching the column’s ID.
- getLabelContext
- getOutput — Iterate over each element in the collection and concatenate the output.
- addValidation — Dead-end stub for interface: columns cannot validate.
- getValidationOutput — Iterate over each element in the collection and get the combined validation output.
Inherited from Row
- __construct
- __call
- onlyIf
- addElement
- getElement
- getElements
- getElementCount
- isLastElement
- loadFrom
- loadState
Inherited from BasicAttributesTrait
- setID
- getID
- setTitle
- getTitle
- setClass
- addClass
- removeClass
- getClass
- addData
- getData
- getAttributeString
__construct
Construct a column with access to a specific factory.
Column::__construct( \Gibbon\Forms\FormFactoryInterface $factory, string $id = '' )
getRequired
Gets the required attribute of the internal element matching the column’s ID.
Column::getRequired( ): boolean
Return Value:
boolean
getLabelContext
Column::getLabelContext( $label )
getOutput
Iterate over each element in the collection and concatenate the output.
Column::getOutput( ): string
Return Value:
string
addValidation
Dead-end stub for interface: columns cannot validate.
Column::addValidation( string $name ): self
Returns Self: This method can be chained.
getValidationOutput
Iterate over each element in the collection and get the combined validation output.
Column::getValidationOutput( ): string
Return Value:
string