You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

smarty_internal_parsetree_text.php 838B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Smarty Internal Plugin Templateparser Parse Tree
  4. * These are classes to build parse tree in the template parser
  5. *
  6. * @package Smarty
  7. * @subpackage Compiler
  8. * @author Thue Kristensen
  9. * @author Uwe Tews
  10. * *
  11. * template text
  12. * @package Smarty
  13. * @subpackage Compiler
  14. * @ignore
  15. */
  16. class Smarty_Internal_ParseTree_Text extends Smarty_Internal_ParseTree
  17. {
  18. /**
  19. * Create template text buffer
  20. *
  21. * @param string $data text
  22. */
  23. public function __construct($data)
  24. {
  25. $this->data = $data;
  26. }
  27. /**
  28. * Return buffer content
  29. *
  30. * @param \Smarty_Internal_Templateparser $parser
  31. *
  32. * @return string text
  33. */
  34. public function to_smarty_php(Smarty_Internal_Templateparser $parser)
  35. {
  36. return $this->data;
  37. }
  38. }