protected function __sandbox()
    {
        set_error_handler(array($this, 'handleError'), E_WARNING | E_NOTICE);
        $this->getStack()->push(clone $this);

        //Extract the data in local scope
           extract($this->_data, EXTR_SKIP);
           
           // Capturing output into a buffer
        ob_start();
        include 'tmpl://'.$this->getStack()->getIdentifier();
        $this->_contents = ob_get_clean();

        $this->getStack()->pop();
        restore_error_handler();
        
        return $this;
    }
protected function __sandbox()
    {
        set_error_handler(array($this, 'handleError'), E_WARNING | E_NOTICE);
        $this->getStack()->push(clone $this);

        //Extract the data in local scope
           extract($this->_data, EXTR_SKIP);
           
           // Capturing output into a buffer
        ob_start();
        include 'tmpl://'.$this->getStack()->getIdentifier();
        $this->_contents = ob_get_clean();

        $this->getStack()->pop();
        restore_error_handler();
        
        return $this;
    }
protected function __sandbox ( ) { set_error_handler ( array ( $ this , 'handleError' ) , E_WARNING | E_NOTICE ) ; $ this -> getStack ( ) -> push ( clone $ this ) ; //Extract the data in local scope extract ( $ this -> _data , EXTR_SKIP ) ; // Capturing output into a buffer ob_start ( ) ; include 'tmpl://' . $ this -> getStack ( ) -> getIdentifier ( ) ; $ this -> _contents = ob_get_clean ( ) ; $ this -> getStack ( ) -> pop ( ) ; restore_error_handler ( ) ; return $ this ; }
Process the template using a simple sandbox

This function passes the template through the read filter chain before letting
the PHP parser executed it. The result is buffered.

@param  boolean 	If TRUE apply write filters. Default FALSE.
@return LibBaseTemplateAbstract
Process the template using a simple sandbox