public function readArray($file = null)
    {
        // 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 read file into array. The file: "'.$file.'" does not exist. '.
                'Current operation failed. Check permissions too.'
            );
        }

        // return content as array
        return $this->_file($file);
    }
public function readArray($file = null)
    {
        // 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 read file into array. The file: "'.$file.'" does not exist. '.
                'Current operation failed. Check permissions too.'
            );
        }

        // return content as array
        return $this->_file($file);
    }
public function readArray ( $ file = null ) { // 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 read file into array. The file: "' . $ file . '" does not exist. ' . 'Current operation failed. Check permissions too.' ) ; } // return content as array return $ this -> _file ( $ file ) ; }
Reads content from file and return a row-based array

This method is intend to read content from a file and return a row-based array.

@param string $file The file to read into array

@author Benjamin Carl <opensource@clickalicious.de>
@return array The content of the file
@access public
@throws Doozr_Exception
Reads content from file and return a row - based array