• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • Examples
  • File List

E:/E/GEAMP/www/openbiz/openbiz/others/Smarty/libs/plugins/function.assign_debug_info.php

00001 <?php
00018 function smarty_function_assign_debug_info($params, &$smarty)
00019 {
00020     $assigned_vars = $smarty->_tpl_vars;
00021     ksort($assigned_vars);
00022     if (@is_array($smarty->_config[0])) {
00023         $config_vars = $smarty->_config[0];
00024         ksort($config_vars);
00025         $smarty->assign("_debug_config_keys", array_keys($config_vars));
00026         $smarty->assign("_debug_config_vals", array_values($config_vars));
00027     }
00028     
00029     $included_templates = $smarty->_smarty_debug_info;
00030     
00031     $smarty->assign("_debug_keys", array_keys($assigned_vars));
00032     $smarty->assign("_debug_vals", array_values($assigned_vars));
00033     
00034     $smarty->assign("_debug_tpls", $included_templates);
00035 }
00036 
00037 /* vim: set expandtab: */
00038 
00039 ?>

Generated on Thu Apr 19 2012 17:01:16 for openbiz by  doxygen 1.7.2