3 * Smarty Internal Plugin Compile Nocache
5 * Compiles the {nocache} {/nocache} tags.
13 * Smarty Internal Plugin Compile Nocache Classv
16 * @subpackage Compiler
18 class Smarty_Internal_Compile_Nocache extends Smarty_Internal_CompileBase {
21 * Compiles code for the {nocache} tag
23 * This tag does not generate compiled output. It only sets a compiler flag.
25 * @param array $args array with attributes from parser
26 * @param object $compiler compiler object
29 public function compile($args, $compiler)
31 $_attr = $this->getAttributes($compiler, $args);
32 if ($_attr['nocache'] === true) {
33 $compiler->trigger_template_error('nocache option not allowed', $compiler->lex->taglineno);
36 $compiler->nocache = true;
37 // this tag does not return compiled code
38 $compiler->has_code = false;
45 * Smarty Internal Plugin Compile Nocacheclose Class
48 * @subpackage Compiler
50 class Smarty_Internal_Compile_Nocacheclose extends Smarty_Internal_CompileBase {
53 * Compiles code for the {/nocache} tag
55 * This tag does not generate compiled output. It only sets a compiler flag.
57 * @param array $args array with attributes from parser
58 * @param object $compiler compiler object
61 public function compile($args, $compiler)
63 $_attr = $this->getAttributes($compiler, $args);
65 $compiler->nocache = false;
66 // this tag does not return compiled code
67 $compiler->has_code = false;