4 * Smarty Internal Plugin Compile Rdelim
6 * Compiles the {rdelim} tag
13 * Smarty Internal Plugin Compile Rdelim Class
15 class Smarty_Internal_Compile_Rdelim extends Smarty_Internal_CompileBase {
17 * Compiles code for the {rdelim} tag
19 * This tag does output the right delimiter
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);
31 // this tag does not return compiled code
32 $this->compiler->has_code = true;
33 return $this->compiler->smarty->right_delimiter;