Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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