You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

smarty_internal_compile_rdelim.php 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Smarty Internal Plugin Compile Rdelim
  4. * Compiles the {rdelim} tag
  5. *
  6. * @package Smarty
  7. * @subpackage Compiler
  8. * @author Uwe Tews
  9. */
  10. /**
  11. * Smarty Internal Plugin Compile Rdelim Class
  12. *
  13. * @package Smarty
  14. * @subpackage Compiler
  15. */
  16. class Smarty_Internal_Compile_Rdelim extends Smarty_Internal_CompileBase
  17. {
  18. /**
  19. * Compiles code for the {rdelim} tag
  20. * This tag does output the right delimiter.
  21. *
  22. * @param array $args array with attributes from parser
  23. * @param object $compiler compiler object
  24. *
  25. * @return string compiled code
  26. */
  27. public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler)
  28. {
  29. $_attr = $this->getAttributes($compiler, $args);
  30. if ($_attr['nocache'] === true) {
  31. $compiler->trigger_template_error('nocache option not allowed', null, true);
  32. }
  33. // this tag does not return compiled code
  34. $compiler->has_code = true;
  35. return $compiler->smarty->right_delimiter;
  36. }
  37. }