]> git.mxchange.org Git - friendica.git/blob - vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree.php
Add Smarty to Composer
[friendica.git] / vendor / smarty / smarty / libs / sysplugins / smarty_internal_parsetree.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  * @package    Smarty
14  * @subpackage Compiler
15  * @ignore
16  */
17 abstract class Smarty_Internal_ParseTree
18 {
19
20     /**
21      * Buffer content
22      *
23      * @var mixed
24      */
25     public $data;
26
27     /**
28      * Subtree array
29      *
30      * @var array
31      */
32     public $subtrees = array();
33
34     /**
35      * Return buffer
36      *
37      * @param \Smarty_Internal_Templateparser $parser
38      *
39      * @return string buffer content
40      */
41     abstract public function to_smarty_php(Smarty_Internal_Templateparser $parser);
42
43     /**
44      * Template data object destructor
45      */
46     public function __destruct()
47     {
48         $this->data = null;
49         $this->subtrees = null;
50     }
51
52 }
53
54