Label
Label implements RowDependancyInterface
Label
- Full name: \Gibbon\Forms\Layout\Label
- Parent class: \Gibbon\Forms\Layout\Element
- 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 — Create a label element with a for attribute linking to an input.
- setRow — Method for RowDependancyInterface to automatically set a reference to the parent Row object.
- getName — Overload the getName method to prepend a label- prefix.
- getID — Overload the getID method to prepend a label prefix.
- getLabelText — Get the label text.
- description — Set the smaller description text to be output with the label.
- getDescription — Gets the current label description.
- getOutput — Get the HTML output of the label element.
Inherited from Element
Inherited from BasicAttributesTrait
- setID
- getID
- setTitle
- getTitle
- setClass
- addClass
- removeClass
- getClass
- addData
- getData
- getAttributeString
__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