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

Source for file function.debug_backtrace.php

Documentation is available at function.debug_backtrace.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: outputfilter.pagevars.php 19321 2006-06-29 13:15:10Z 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 generate a backtrace for debugging purposes.
  15.  *
  16.  * Available parameters:
  17.  *   - fulltrace        include parts of stack trace after the call to the error handler -
  18.  *                        by default these are excluded as they're not relevant
  19.  *
  20.  * @author       Mark West
  21.  * @since        08/08/2003
  22.  * @param        array       $params      All attributes passed to this function from the template
  23.  * @param        object      &$smarty     Reference to the Smarty object
  24.  * @return       string      The URL
  25.  */
  26. function smarty_function_debug_backtrace($params&$smarty)
  27. {
  28.     if (!isset($params['fulltrace'])) {
  29.         return prayer (array_slice(debug_backtrace()8));
  30.     else {
  31.         return prayer (debug_backtrace());
  32.     }
  33. }

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