Hazaar\Html
Img
The HTML img class.

Displays an HTML <img> element.

Extends
\Inline
Summary
MethodsPropertiesConstants
No constants
Properties
$map
$map
Methods
__construct()
__construct($src, $alt = null, $parameters = Array ( ) )

The HTML img constructor.

renderObject()
renderObject($src) : string

Html render override. This method overrides the standard object render method and allows a \Hazaar\Html\Map

usemap()
usemap($map) : \Hazaar\Html\Img

Configure the image with a object. This will set the usemap attribute and, if the $map parameter is a \Hazaar\Html\Map object, it will render the map object automatically when rendering the image.