public function loadString($string, $data = array(), $process = true)
    {
        $this->_contents = $string;
    
        // Merge the data
        $this->_data = array_merge((array) $this->_data, $data);
        
        // Process the data
        if ($process == true) {
            $this->__sandbox();
        }
    
        return $this;
    }
public function loadString($string, $data = array(), $process = true)
    {
        $this->_contents = $string;
    
        // Merge the data
        $this->_data = array_merge((array) $this->_data, $data);
        
        // Process the data
        if ($process == true) {
            $this->__sandbox();
        }
    
        return $this;
    }
public function loadString ( $ string , $ data = array ( ) , $ process = true ) { $ this -> _contents = $ string ; // Merge the data $ this -> _data = array_merge ( ( array ) $ this -> _data , $ data ) ; // Process the data if ( $ process == true ) { $ this -> __sandbox ( ) ; } return $ this ; }
Load a template from a string

@param   string 	The template contents
@param	array	An associative array of data to be extracted in local template scope
@param	boolean	If TRUE process the data using a tmpl stream. Default TRUE.
@return LibBaseTemplateAbstract
Load a template from a string