4  * Smarty Internal Plugin Compile Nocache
 
   6  * Compiles the {nocache} {/nocache} tags 
 
  13  * Smarty Internal Plugin Compile Nocache Class
 
  15 class Smarty_Internal_Compile_Nocache extends Smarty_Internal_CompileBase {
 
  17      * Compiles code for the {nocache} tag
 
  19      * This tag does not generate compiled output. It only sets a compiler flag 
 
  20      * @param array $args array with attributes from parser
 
  21      * @param object $compiler compiler object
 
  22      * @return string compiled code
 
  24     public function compile($args, $compiler)
 
  26         $this->compiler = $compiler; 
 
  27         $_attr = $this->_get_attributes($args);
 
  28         if ($_attr['nocache'] === true) {
 
  29                 $this->compiler->trigger_template_error('nocache option not allowed', $this->compiler->lex->taglineno);
 
  32         $this->compiler->nocache = true;
 
  33         // this tag does not return compiled code
 
  34         $this->compiler->has_code = false;
 
  40  * Smarty Internal Plugin Compile Nocacheclose Class
 
  42 class Smarty_Internal_Compile_Nocacheclose extends Smarty_Internal_CompileBase {
 
  44      * Compiles code for the {/nocache} tag
 
  46      * This tag does not generate compiled output. It only sets a compiler flag 
 
  47      * @param array $args array with attributes from parser
 
  48      * @param object $compiler compiler object
 
  49      * @return string compiled code
 
  51     public function compile($args, $compiler)
 
  53         $this->compiler = $compiler; 
 
  54         $_attr = $this->_get_attributes($args);
 
  56         $this->compiler->nocache = false;
 
  57         // this tag does not return compiled code
 
  58         $this->compiler->has_code = false;