Zikula_Template_Plugins
[ class tree: Zikula_Template_Plugins ] [ index: Zikula_Template_Plugins ] [ all elements ]

Procedural File: function.pnml.php

Source Location: /system/pnRender/plugins/function.pnml.php



Page Details:

Zikula Application Framework



Tags:

version:  $Id: function.pnml.php 24342 2008-06-06 12:03:14Z markwest $
copyright:  (c) 2004, Zikula Development Team
link:  http://www.zikula.org
filesource:  Source Code for this file
license:  GNU/GPL








smarty_function_pnml [line 43]

string smarty_function_pnml( array $params, object &$smarty, string 2, string 3)

Smarty function to read a Zikula language constant.

This function takes a identifier and returns the corresponding language constant.

Available parameters:

  • name: Name of the language constant to return
  • html: Treat the language define as HTML
  • assign: If set, the results are assigned to the corresponding variable instead of printed out
  • noprocess If set, no processing is applied to the constant value
  • escapeForScript If set, escape output for using in JavaScript single quotes string
  • * All remaining parameters are used as string replacements
Example _EXAMPLESTRING = 'Hello World' <!--[pnml name="_EXAMPLESTRING"]--> returns Hello World

_EXAMPLESTRING = 'There are %u% users online'; $usersonline = 10 <!--[pnml name=_EXAMPLESTRING u=$usersonline]--> returns There are 10 users online




Tags:

return:  the language constant
author:  Robert Gasch
author:  Mark West
since:  08/08/2003


Parameters

array   $params   All attributes passed to this function from the template
object   &$smarty   Reference to the Smarty object
string   2   assign The smarty variable to assign the resulting menu HTML to
string   3   noprocess If set the resulting string constant is not processed
[ Top ]



Documentation generated on Fri, 18 Jul 2008 21:46:05 +0200 by phpDocumentor 1.4.1