3 * Smarty Internal Plugin Compile Nocache
4 * Compiles the {nocache} {/nocache} tags.
12 * Smarty Internal Plugin Compile Nocache Class
15 * @subpackage Compiler
17 class Smarty_Internal_Compile_Nocache extends Smarty_Internal_CompileBase
20 * Array of names of valid option flags
24 public $option_flags = array();
27 * Compiles code for the {nocache} tag
28 * This tag does not generate compiled output. It only sets a compiler flag.
30 * @param array $args array with attributes from parser
31 * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
35 public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler)
37 $_attr = $this->getAttributes($compiler, $args);
38 $this->openTag($compiler, 'nocache', array($compiler->nocache));
40 $compiler->nocache = true;
41 // this tag does not return compiled code
42 $compiler->has_code = false;
49 * Smarty Internal Plugin Compile Nocacheclose Class
52 * @subpackage Compiler
54 class Smarty_Internal_Compile_Nocacheclose extends Smarty_Internal_CompileBase
57 * Compiles code for the {/nocache} tag
58 * This tag does not generate compiled output. It only sets a compiler flag.
60 * @param array $args array with attributes from parser
61 * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
65 public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler)
67 $_attr = $this->getAttributes($compiler, $args);
69 list($compiler->nocache) = $this->closeTag($compiler, array('nocache'));
70 // this tag does not return compiled code
71 $compiler->has_code = false;