| 1: | <?php |
| 2: | /** |
| 3: | * Smarty Internal Plugin Templateparser Parsetree |
| 4: | * These are classes to build parsetree 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: | * Buffer content |
| 21: | * |
| 22: | * @var mixed |
| 23: | */ |
| 24: | public $data; |
| 25: | |
| 26: | /** |
| 27: | * Subtree array |
| 28: | * |
| 29: | * @var array |
| 30: | */ |
| 31: | public $subtrees = array(); |
| 32: | |
| 33: | /** |
| 34: | * Return buffer |
| 35: | * |
| 36: | * @param \Smarty_Internal_Templateparser $parser |
| 37: | * |
| 38: | * @return string buffer content |
| 39: | */ |
| 40: | abstract public function to_smarty_php(Smarty_Internal_Templateparser $parser); |
| 41: | |
| 42: | /** |
| 43: | * Template data object destructor |
| 44: | */ |
| 45: | public function __destruct() |
| 46: | { |
| 47: | $this->data = null; |
| 48: | $this->subtrees = null; |
| 49: | } |
| 50: | } |
| 51: |