\patTemplate_InputFilter_ShortModifiers

patTemplate input filter to allow the short modifier syntax that is used by Smarty

$Id: ShortModifiers.php 449 2006-12-12 21:00:38Z schst $

This will replace the variables with patTemplate:var/> tags that have the name and the modifier attribute set.

Summary

Methods
Properties
Constants
apply()
getName()
setParams()
getParam()
setTemplateReference()
_generateReplace()
$_name
$_params
$_ns
$_tmpl
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

filter name

Type

string

$_params

$_params : array

parameters of the filter

Type

array

$_ns

$_ns : string

namespace

Type

string

$_tmpl

$_tmpl : object

reference to the patTemplate object

Type

object — patTemplate

Methods

apply()

apply(  $data) : string

replace the variables

Parameters

$data

Returns

string —

data with variables replaced

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

setTemplateReference()

setTemplateReference(  $tmpl) 

set the template reference

Parameters

$tmpl

_generateReplace()

_generateReplace(  $matches) : string

generate the <patTemplate:var/> tag

Parameters

$matches

Returns

string —

tag