Add an alias globally for dynamic templates.
static
boolean
addAlias
(string $text, string $file, string $module, [string $base = null], [string $skin = null])
-
string
$text: Text the system will use to recognize the alias (<%$text%>)
-
string
$file: File the alias refers to
-
string
$module: Module the alias file resides in
-
string
$base: Base the alias module resides in
-
string
$skin: Skin the file resides in
Add a 'global' alias for dynamic templates that expects a specific skin module/file.
static
null
addGlobalAlias
(string $text, string $file, string $module)
-
string
$text: Text the system will use to recognize the alias (<%$text%>)
-
string
$file: File the alias refers to
-
string
$module: Module the alias file resides in
Handle N2F_TPLEVT_ADD_FIELD event from n2f_template class.
static
boolean
handle_addField
(
n2f_template $tpl,
string $key,
mixed $val)
-
n2f_template
$tpl: The object calling this method.
-
string
$key: The key of the field being added.
-
mixed
$val: The value of the field being added.
Handle N2F_TPLEVT_ADD_FIELDS event from n2f_template class.
static
array
handle_addFields
(
n2f_template $tpl,
array $fields)
-
n2f_template
$tpl: The object calling this method.
-
array
$fields: The array of fields being set.
Handle N2F_TPLEVT_RENDER event from n2f_template class.
Sets a n2f_template object to have 'alias' status to prevent infinite recursion.
-
n2f_template
$tpl: Current n2f_template object being modified
-
string
$al_text: Text registered with system to recognize alias
-
n2f_template
&$tpl
Sets flag(s) on an active template object to alter the template object's behavior.
-
n2f_template
$tpl: Current n2f_template object being modified
-
integer
$flags: Flag(s) being set on template
-
n2f_template
&$tpl
Inherited Methods
Inherited From n2f_events
n2f_events::__construct()
n2f_events::addEvent()
n2f_events::hitEvent()
n2f_events::hookEvent()