\patTemplate_Modifier_HTML_Img

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 $

Summary

Methods
Properties
Constants
modify()
getName()
setParams()
getParam()
arrayToAttributes()
$_name
$_params
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$_name

$_name : string

module name

This has to be set in the final module classes.

Type

string

$_params

$_params : array

module parameters

Type

array

Methods

modify()

modify(  $value,   $params = array()) : string

modify the value

Parameters

$value
$params

Returns

string —

modified value

getName()

getName() : string

get the name of the module

Returns

string —

name of the module

setParams()

setParams(  $params,   $clear = false) 

sets parameters of the module

Parameters

$params
$clear

getParam()

getParam(  $name) : mixed

gets a parameter of the module

Parameters

$name

Returns

mixed —

value of the parameter

arrayToAttributes()

arrayToAttributes(  $array) : string

create an attribute list

Parameters

$array

Returns

string