library/smarty/libs/sysplugins/smarty_internal_parsetree_text.php
changeset 0 4869aea77e21
equal deleted inserted replaced
-1:000000000000 0:4869aea77e21
       
     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 }