Label

Extends \Dotpay\Html\Node

Represent a HTML label element.

package

Default

Methods

Initialize the label element.

__construct(\Dotpay\Html\Node $element, string $llabel = '', string $rlabel = '') 

Arguments

$element

\Dotpay\Html\Node

An element which is inside the label

$llabel

string

A text which is displayed on the left side of the inside element

$rlabel

string

A text which is displayed on the right side of the inside element

Return a HTML string of the node element.

__toString() : string
inherited

Response

string

Return a value of the attribute whoose name is given.

getAttribute(string $name) : mixed
inherited

Arguments

$name

string

The name of the attribute

Response

mixed

Return a string with a list of all attributes ot the node element.

getAttributeList() : string
inherited

Response

string

Return an array with all attributes of the node element.

getAttributes() : array
inherited

Response

array

Return an element which is inside the label.

getElement() : \Dotpay\Html\Node

Return a text which is displayed on the left side of the inside element.

getLLabel() : string

Response

string

Return a text which is displayed on the right side of the inside element.

getRLabel() : string

Response

string

Remove an attribute whoose name is given.

removeAttribute(string $name) : \Dotpay\Html\Node
inherited

Arguments

$name

string

The name of the attribute

Response

\Dotpay\Html\Node

Set a value of the atribute whoose name is given.

setAttribute(string $name, mixed $value) : \Dotpay\Html\Node
inherited

Arguments

$name

string

The name of the attribute

$value

mixed

The value of the attribute

Response

\Dotpay\Html\Node

Set a text which is displayed on the left side of the inside element.

setLLabel(string $label) : \Dotpay\Html\Form\Label

Arguments

$label

string

A text to displaying on the left side

Response

\Dotpay\Html\Form\Label

Set a text which is displayed on the right side of the inside element.

setRLabel(string $label) : \Dotpay\Html\Form\Label

Arguments

$label

string

A text to displaying on the right side

Response

\Dotpay\Html\Form\Label

Properties

An element which is inside the label

element : \Dotpay\Html\Node
var

An element which is inside the label

Type(s)

\Dotpay\Html\Node

A text which is displayed on the left side of the inside element

llabel : string
var

A text which is displayed on the left side of the inside element

Type(s)

string

A text which is displayed on the right side of the inside element

rlabel : string
var

A text which is displayed on the right side of the inside element

Type(s)

string

List of all attributes of the node

attributes : array
inherited
var

List of all attributes of the node

Type(s)

array