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

Procedural File: function.pnsessionsetvar.php

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



Page Details:

Zikula Application Framework



Tags:

version:  $Id: function.pnsessionsetvar.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_pnsessionsetvar [line 38]

null smarty_function_pnsessionsetvar( array $params, object &$smarty, string $name)

Smarty function to set a session variable

This function sets a session-specific variable in the Zikula system.

Note that the results should be handled by the pnvarprepfordisplay or the pnvarprephtmldisplay modifiers before being displayed.

Available parameters:

  • name: The name of the session variable to obtain
  • value: The value for the session variable
  • assign: If set, the result is assigned to the corresponding variable instead of printed out
Example <!--[pnsessionsetvar name="foo" value="bar"]-->




Tags:

author:  Mark West
since:  13/12/2004


Parameters

array   $params   All attributes passed to this function from the template
object   &$smarty   Reference to the Smarty object
string   $name   The name of the session variable to obtain
[ Top ]



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