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

Source for file resource.var.php

Documentation is available at resource.var.php

  1. <?php 
  2. /**
  3.  * Smarty plugin
  4.  * @package Smarty
  5.  * @subpackage plugins
  6.  */
  7.  
  8. /**
  9.  * Smarty plugin
  10.  * -------------------------------------------------------------
  11.  * Type:     resource
  12.  * Purpose:  fetches template from a global variable
  13.  * Version:  1.0 [Sep 28, 2002 boots since Sep 28, 2002 boots]
  14.  * -------------------------------------------------------------
  15.  */ 
  16.  
  17. function smarty_resource_var_source($tpl_name&$tpl_source&$smarty
  18.     if (isset($tpl_name)) 
  19.         global $$tpl_name
  20.         $tpl_source = $$tpl_name
  21.         return true
  22.     
  23.     return false
  24.  
  25. function smarty_resource_var_timestamp($tpl_name$tpl_timestamp&$smarty
  26.     if (isset($tpl_name)) 
  27.         $tpl_timestamp microtime()
  28.         return true
  29.     
  30.     return false
  31.  
  32. function smarty_resource_var_secure($tpl_name&$smarty
  33.     // assume all templates are secure 
  34.     return true
  35.  
  36. function smarty_resource_var_trusted($tpl_name&$smarty
  37.     // not used for templates 
  38.  
  39. ?>

Documentation generated on Fri, 18 Jul 2008 21:56:37 +0200 by phpDocumentor 1.4.1