\Hazaar\Html
Img
The HTML img class.

Displays an HTML <img> element.

Tags

Since

1.1

Summary
Methods Properties Constants
No constants
Properties
$map
$map
Methods
__construct()
__construct($src, $alt = null, $parameters = Array ( ) )

The HTML img constructor.

Tags

Since

1.1

Parameters

$srcmixed

The source URL of the image. This can be either a string or an Hazaar\Html\Url object.

$alt

No description

$parametersarray

Optional parameters to apply to the anchor.

renderObject()
renderObject($src) : string

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

Tags

Since

1.1

Parameters

$srcmixed

The source URL of the image. This can be either a string or an Hazaar\Html\Map object to

         be prepended to the output.

Returns

string
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.

Tags

Since

1.2

Parameters

$mapmixed

The name of the map to use, or a \Hazaar\Html\Map object.

Returns

\Hazaar\Html\Img