Element
Element implements OutputableInterface
Element
- Full name: \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 generic form element that only holds content.
- __call
- setContent — Set the content of the element, replaces existing content.
- prepend — Add a string to the beginning of the current content.
- getPrepended — Get the currently prepended string.
- append — Add a string to the end of the current content.
- getAppended — Get the currently appended string.
- wrap — Add strings before and after to wrap the current content.
- getOutput — Get the HTML output of the content element.
Inherited from BasicAttributesTrait
- setID
- getID
- setTitle
- getTitle
- setClass
- addClass
- removeClass
- getClass
- addData
- getData
- getAttributeString
__construct
Create a generic form element that only holds content.
Element::__construct( string $content = '' )
__call
Element::__call( $name, $arguments )
setContent
Set the content of the element, replaces existing content.
Element::setContent( string $value ): self
Returns Self: This method can be chained.
prepend
Add a string to the beginning of the current content.
Element::prepend( string $value ): self
Returns Self: This method can be chained.
getPrepended
Get the currently prepended string.
Element::getPrepended( ): string
Return Value:
string
append
Add a string to the end of the current content.
Element::append( string $value ): self
Returns Self: This method can be chained.
getAppended
Get the currently appended string.
Element::getAppended( ): string
Return Value:
string
wrap
Add strings before and after to wrap the current content.
Element::wrap( $before, $after ): self
Returns Self: This method can be chained.
getOutput
Get the HTML output of the content element.
Element::getOutput( ): string
Return Value:
string