Element

Element implements OutputableInterface

Element

Methods

Inherited from BasicAttributesTrait

__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