Label

Label implements RowDependancyInterface

Label

Methods

Inherited from Element
Inherited from BasicAttributesTrait

__construct

Create a label element with a for attribute linking to an input.

Label::__construct( string $for, string $label )

setRow

Method for RowDependancyInterface to automatically set a reference to the parent Row object.

Label::setRow( object $row )

getName

Overload the getName method to prepend a label- prefix.

Label::getName( ): string

Return Value: string


getID

Overload the getID method to prepend a label prefix.

Label::getID( ): string

Return Value: string


getLabelText

Get the label text.

Label::getLabelText( ): string

Return Value: string


description

Set the smaller description text to be output with the label.

Label::description( string $value = '' ): self

Returns Self: This method can be chained.


getDescription

Gets the current label description.

Label::getDescription( ): string

Return Value: string


getOutput

Get the HTML output of the label element.

Label::getOutput( ): string

Return Value: string


Last updated : September 15, 2018 b92362d