WebLink

Element

Methods

Inherited from Element
Inherited from BasicAttributesTrait

__construct

Create a generic form element that only holds content.

WebLink::__construct( string $content = '' )

onClick

WebLink::onClick( $value )

setURL

Sets the link href attribute.

WebLink::setURL( string $url ): self

Returns Self: This method can be chained.


getURL

Gets the link href attribute.

WebLink::getURL( ): string

Return Value: string


setTarget

Sets the link target attribute.

WebLink::setTarget( string $target ): self

Returns Self: This method can be chained.


getTarget

Gets the link target attribute.

WebLink::getTarget( ): string

Return Value: string


setRel

Sets the link rel attribute.

WebLink::setRel( string $rel ): self

Returns Self: This method can be chained.


getRel

Gets the link rel attribute.

WebLink::getRel( ): string

Return Value: string


addConfirmation

Add a confirmation message to display on click.

WebLink::addConfirmation( string $message ): self

Returns Self: This method can be chained.


addParam

Adds a URL parameter to be appended to the link URL.

WebLink::addParam( string $name, string $value ): self

Returns Self: This method can be chained.


addParams

Adds an array of URL parameters to be appended to the link URL.

WebLink::addParams( array $values ): self

Returns Self: This method can be chained.


addEmbeddedElement

Adds an embedded element to output inside the link tag.

WebLink::addEmbeddedElement( \Gibbon\Forms\Layout\OutputtableInterface $element ): self

Returns Self: This method can be chained.


setEmbeddedElements

Sets an array of embedded elements to output inside the link tag.

WebLink::setEmbeddedElements( $elements ): self

Returns Self: This method can be chained.


getEmbeddedElements

Gets the output of all embedded elements as a string.

WebLink::getEmbeddedElements( ): string

Return Value: string


getElement

Gets the HTML output for this form element.

WebLink::getElement( ): string

Return Value: string


Last updated : September 15, 2018 b92362d