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_dqcontent.php 930B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. /**
  12. * Raw chars as part of a double quoted string.
  13. *
  14. * @package Smarty
  15. * @subpackage Compiler
  16. * @ignore
  17. */
  18. class Smarty_Internal_ParseTree_DqContent extends Smarty_Internal_ParseTree
  19. {
  20. /**
  21. * Create parse tree buffer with string content
  22. *
  23. * @param string $data string section
  24. */
  25. public function __construct($data)
  26. {
  27. $this->data = $data;
  28. }
  29. /**
  30. * Return content as double quoted string
  31. *
  32. * @param \Smarty_Internal_Templateparser $parser
  33. *
  34. * @return string doubled quoted string
  35. */
  36. public function to_smarty_php(Smarty_Internal_Templateparser $parser)
  37. {
  38. return '"' . $this->data . '"';
  39. }
  40. }