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

Source for file function.pndebugenvironment.php

Documentation is available at function.pndebugenvironment.php

  1. <?php
  2. /**
  3.  * Zikula Application Framework
  4.  *
  5.  * @copyright (c) 2004, Zikula Development Team
  6.  * @link http://www.zikula.org
  7.  * @version $Id: function.pnsessionvars.php 19408 2006-07-13 13:20:58Z markwest $
  8.  * @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
  9.  * @package Zikula_Template_Plugins
  10.  * @subpackage Functions
  11.  */
  12.  
  13. /**
  14.  * Smarty function to get all session variables
  15.  *
  16.  * This function gets all session vars from the Zikula system assigns the names and
  17.  * values to two array. This is being used in pndebug to show them.
  18.  *
  19.  * Example
  20.  *   <!--[pndebugenvironment]-->
  21.  *
  22.  *
  23.  * @author       Frank Schummertz
  24.  * @since        23/08/2004
  25.  * @param        array       $params      All attributes passed to this function from the template
  26.  * @param        object      &$smarty     Reference to the Smarty object
  27.  * @return       nothing 
  28.  */
  29. function smarty_function_pndebugenvironment($params&$smarty)
  30. {
  31.     global $HTTP_SESSION_VARS;
  32.  
  33.     $allvars $HTTP_SESSION_VARS;
  34.     $smarty->assign'_pnsession_keys'array_keys($allvars) );
  35.     $smarty->assign'_pnsession_vals'array_values($allvars) );
  36.  
  37.     $smarty->assign('_smartyversion'$smarty->_version);
  38.     $_pnrender pnModGetInfo(pnModGetIDFromName('pnRender'));
  39.     $smarty->assign('_pnrenderversion'$_pnrender['version']);
  40.     $_theme pnModGetInfo(pnModGetIDFromName('Theme'));
  41.     $smarty->assign('_themeversion'$_theme['version']);
  42.     
  43.     $smarty->assign('_force_compile'(pnModGetVar('pnRender''force_compile')==1_ONOFF_ON _ONOFF_OFF);
  44.     $smarty->assign('_compile_check'(pnModGetVar('pnRender''compile_check')==1_ONOFF_ON _ONOFF_OFF);
  45.  
  46.     $smarty->assign('_baseurl'pnGetBaseURL());
  47.     $smarty->assign('_baseuri'pnGetBaseURI());
  48. }

Documentation generated on Fri, 18 Jul 2008 21:45:39 +0200 by phpDocumentor 1.4.1