PageRenderTime 34ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

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

http://zoop.googlecode.com/
PHP | 32 lines | 11 code | 1 blank | 20 comment | 0 complexity | 35e7a259a048e50ff6a1d32844d4ecdb MD5 | raw file
Possible License(s): BSD-3-Clause, LGPL-2.1
  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. ?>