smarty_internal_compile_ldelim.php 1005 B

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