smarty_internal_parsetree_text.php (826B)
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 object $parser parser object 23 * @param string $data text 24 */ 25 public function __construct($parser, $data) 26 { 27 $this->parser = $parser; 28 $this->data = $data; 29 } 30 31 /** 32 * Return buffer content 33 * 34 * @return string text 35 */ 36 public function to_smarty_php() 37 { 38 return $this->data; 39 } 40 }