Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

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