Column

Column implements OutputableInterface, ValidatableInterface

Holds a collection of form elements to be output vertically.

Methods

Inherited from Row
Inherited from BasicAttributesTrait

__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