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 * Compiles code for the {nocache} tag
21 * This tag does not generate compiled output. It only sets a compiler flag.
23 * @param array $args array with attributes from parser
24 * @param object $compiler compiler object
28 public function compile($args, $compiler)
30 $_attr = $this->getAttributes($compiler, $args);
31 if ($_attr['nocache'] === true) {
32 $compiler->trigger_template_error('nocache option not allowed', $compiler->lex->taglineno);
35 $compiler->nocache = true;
36 // this tag does not return compiled code
37 $compiler->has_code = false;
44 * Smarty Internal Plugin Compile Nocacheclose Class
47 * @subpackage Compiler
49 class Smarty_Internal_Compile_Nocacheclose extends Smarty_Internal_CompileBase
52 * Compiles code for the {/nocache} tag
53 * This tag does not generate compiled output. It only sets a compiler flag.
55 * @param array $args array with attributes from parser
56 * @param object $compiler compiler object
60 public function compile($args, $compiler)
62 $_attr = $this->getAttributes($compiler, $args);
64 $compiler->nocache = false;
65 // this tag does not return compiled code
66 $compiler->has_code = false;