public function parse($file)
    {
        // Preprocessing
        $file = $this->_preProcess($file);

        // exception for the case that the file to read does not exist
        if (!$this->_resource_exists($file)) {
            throw new Doozr_Exception(
                'Could not parse file. The file: "'.$file.'" does not exist. '.
                'Current operation failed. Check permissions too.'
            );
        }

        // parse (interpret) php-code and return result
        return $this->_parse($file);
    }
public function parse($file)
    {
        // Preprocessing
        $file = $this->_preProcess($file);

        // exception for the case that the file to read does not exist
        if (!$this->_resource_exists($file)) {
            throw new Doozr_Exception(
                'Could not parse file. The file: "'.$file.'" does not exist. '.
                'Current operation failed. Check permissions too.'
            );
        }

        // parse (interpret) php-code and return result
        return $this->_parse($file);
    }
public function parse ( $ file ) { // Preprocessing $ file = $ this -> _preProcess ( $ file ) ; // exception for the case that the file to read does not exist if ( ! $ this -> _resource_exists ( $ file ) ) { throw new Doozr_Exception ( 'Could not parse file. The file: "' . $ file . '" does not exist. ' . 'Current operation failed. Check permissions too.' ) ; } // parse (interpret) php-code and return result return $ this -> _parse ( $ file ) ; }
Reads and parses a PHP file.

This method is intend to read and parse a PHP-file.
The content is parsed end executed by PHP runtime and
afterwards the whole buffer is returned.

@param string $file The file to parse as php-file

@author Benjamin Carl <opensource@clickalicious.de>
@return string The content of the file
@access public
@throws Doozr_Exception
Reads and parses a PHP file .