Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 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
    /**
21
     * Wether this section should be stripped on output to smarty php
22
     * @var bool
23
     */
24
    private $toBeStripped = false;
25
 
26
    /**
27
     * Create template text buffer
28
     *
29
     * @param string $data text
30
     * @param bool $toBeStripped wether this section should be stripped on output to smarty php
31
     */
32
    public function __construct($data, $toBeStripped = false)
33
    {
34
        $this->data = $data;
35
        $this->toBeStripped = $toBeStripped;
36
    }
37
 
38
    /**
39
     * Wether this section should be stripped on output to smarty php
40
     * @return bool
41
     */
42
    public function isToBeStripped() {
43
        return $this->toBeStripped;
44
    }
45
 
46
    /**
47
     * Return buffer content
48
     *
49
     * @param \Smarty_Internal_Templateparser $parser
50
     *
51
     * @return string text
52
     */
53
    public function to_smarty_php(Smarty_Internal_Templateparser $parser)
54
    {
55
        return $this->data;
56
    }
57
}