Input

Extends \Dotpay\Html\Single

Represent a HTML input element.

package

Default

Methods

Initialize the element.

__construct(string $type = '', string $name = null) 
inherited

Arguments

$type

string

A type of the element

$name

string

A name of the 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 a class name of the element.

getClass() : string
inherited

Response

string

Return a data information.

getData(string $name) : string
inherited

Arguments

$name

string

A name of data information

Response

string

Return a type of the input element.

getInputType() : string

Response

string

Return a name of the element.

getName() : string
inherited

Response

string

Return a type of the element.

getType() : string
inherited

Response

string

Return a value of the input element.

getValue() : mixed

Response

mixed

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 class name of the element.

setClass(string $className) : \Dotpay\Html\Element
inherited

Arguments

$className

string

A class name

Response

\Dotpay\Html\Element

Set the data value as the given name.

setData(string $name, string $value) : \Dotpay\Html\Element
inherited

Arguments

$name

string

A name of a value

$value

string

A value to saving

Response

\Dotpay\Html\Element

Set a type of the input element.

setInputType(string $type) : \Dotpay\Html\Form\Input

Arguments

$type

string

A type of the input element

Response

\Dotpay\Html\Form\Input

Set a name of the element.

setName(string $name) : \Dotpay\Html\Element
inherited

Arguments

$name

string

A name of the element

Response

\Dotpay\Html\Element

Set a type of the element.

setType(string $type) : \Dotpay\Html\Element
inherited

Arguments

$type

string

A type of the element

Response

\Dotpay\Html\Element

Set a type of the input element.

setValue(mixed $value) : \Dotpay\Html\Form\Input

Arguments

$value

mixed

Response

\Dotpay\Html\Form\Input

Properties

A type of the element

type : string
inherited
var

A type of the 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