library/smarty/libs/sysplugins/smarty_internal_parsetree_text.php
changeset 46 f11c31f7fa3e
parent 45 a56e7f9a0463
child 47 03388ec805b4
equal deleted inserted replaced
45:a56e7f9a0463 46:f11c31f7fa3e
     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      * Create template text buffer
       
    20      *
       
    21      * @param object $parser parser object
       
    22      * @param string $data text
       
    23      */
       
    24     public function __construct($parser, $data) {
       
    25         $this->parser = $parser;
       
    26         $this->data = $data;
       
    27     }
       
    28 
       
    29     /**
       
    30      * Return buffer content
       
    31      *
       
    32      * @return string text
       
    33      */
       
    34     public function to_smarty_php() {
       
    35         return $this->data;
       
    36     }
       
    37 }