53ba1bcc08a01ca7a35d4e2b3d9ca3d9e9fba202
[GitHub/Stricted/Domain-Control-Panel.git] / lib / api / smarty / sysplugins / smarty_internal_parsetree_dqcontent.php
1 <?php
2 /**
3 * Smarty Internal Plugin Templateparser Parsetrees
4 * These are classes to build parsetrees in the template parser
5 *
6 * @package Smarty
7 * @subpackage Compiler
8 * @author Thue Kristensen
9 * @author Uwe Tews
10 */
11
12
13 /**
14 * Raw chars as part of a double quoted string.
15 *
16 * @package Smarty
17 * @subpackage Compiler
18 * @ignore
19 */
20 class Smarty_Internal_ParseTree_DqContent extends Smarty_Internal_ParseTree
21 {
22 /**
23 * Create parse tree buffer with string content
24 *
25 * @param object $parser parser object
26 * @param string $data string section
27 */
28 public function __construct($parser, $data)
29 {
30 $this->parser = $parser;
31 $this->data = $data;
32 }
33
34 /**
35 * Return content as double quoted string
36 *
37 * @return string doubled quoted string
38 */
39 public function to_smarty_php()
40 {
41 return '"' . $this->data . '"';
42 }
43 }