smarty_internal_compile_rdelim.php 824 B

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