/framework/vendor/smarty3/lib/libs/sysplugins/smarty_internal_compile_rdelim.php

http://zoop.googlecode.com/ · PHP · 32 lines · 11 code · 1 blank · 20 comment · 0 complexity · 2a719573cd26a1ff88ff7a5b3eb253a7 MD5 · raw file

  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. ?>