smarty_internal_compile_ldelim.php 822 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Smarty Internal Plugin Compile Ldelim
  4. *
  5. * Compiles the {ldelim} tag
  6. * @package Smarty
  7. * @subpackage Compiler
  8. * @author Uwe Tews
  9. */
  10. /**
  11. * Smarty Internal Plugin Compile Ldelim Class
  12. */
  13. class Smarty_Internal_Compile_Ldelim extends Smarty_Internal_CompileBase {
  14. /**
  15. * Compiles code for the {ldelim} tag
  16. *
  17. * This tag does output the left 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->left_delimiter;
  29. }
  30. }
  31. ?>