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

Source for file modifier.dbg.php

Documentation is available at modifier.dbg.php

  1. <?php
  2. /**
  3.  * Smarty plugin
  4.  * @package Smarty
  5.  * @subpackage plugins
  6.  */
  7.  
  8. /** \file
  9.  * $Header$
  10.  *
  11.  * @author zaufi <zaufi@sendmail.ru>
  12.  */
  13.  
  14. /**
  15.  * \brief Smarty modifier plugin to add string to debug console log w/o modify output
  16.  * Usage format {$gBitSmarty_var|dbg}
  17.  */
  18. function smarty_modifier_dbg($string$label '')
  19. {
  20.     global $debugger$gBitSystem;
  21.     if$gBitSystem->isPackageActive'debug' ) ) {
  22.         require_onceDEBUG_PKG_PATH.'debugger.php' );
  23.         //
  24.         $debugger->msg('Smarty log'.((strlen($label0': '.$label '').': '.$string);
  25.         return $string;
  26.     }
  27. }
  28.  
  29. ?>

Documentation generated on Wed, 29 Jul 2015 13:57:09 +0000 by phpDocumentor 1.5.0-lsces