Represent a HTML img element.
| package |
Default |
|---|
__construct(string $type = '', string $name = null)
stringA type of the element
stringA name of the element
__toString() : string
string
getAlt() : string
string
getAttribute(string $name) : mixed
stringThe name of the attribute
mixed
getAttributeList() : string
string
getAttributes() : array
array
getClass() : string
string
getData(string $name) : string
stringA name of data information
string
getName() : string
string
getSrc() : string
string
getType() : string
string
removeAttribute(string $name) : \Dotpay\Html\Node
setAlt(string $alt) : \Dotpay\Html\Img
setAttribute(string $name, mixed $value) : \Dotpay\Html\Node
stringThe name of the attribute
mixedThe value of the attribute
\Dotpay\Html\Node
setClass(string $className) : \Dotpay\Html\Element
setData(string $name, string $value) : \Dotpay\Html\Element
stringA name of a value
stringA value to saving
\Dotpay\Html\Element
setName(string $name) : \Dotpay\Html\Element
setSrc(string $src) : \Dotpay\Html\Img
setType(string $type) : \Dotpay\Html\Element
type : string
| var |
A type of the element |
|---|
string
attributes : array
| var |
List of all attributes of the node |
|---|
array