Source code for file /pattemplate/patTemplate/Modifier/HTML/Img.php
Documentation is available at Img.php
* Modifier that creates an HTML image tag from a variable
* It automatically retrieves the width and height of the image.
* $Id: Img.php 109 2004-04-11 08:47:45Z schst $
// Check to ensure this file is within the rest of the framework
* Modifier that creates an HTML image tag from a variable
* It automatically retrieves the width and height of the image.
* $Id: Img.php 109 2004-04-11 08:47:45Z schst $
* @return string modified value
function modify( $value, $params =
array() )
$params['width'] =
$size[0];
$params['height'] =
$size[1];
return '<img'.
$this->arrayToAttributes($params).
' />';
* create an attribute list
function arrayToAttributes( $array )
foreach( $array as $key =>
$val )