src/ShapeFile.php
private function _openDBFFile()
    {
        if (! self::supportsDbase()) {
            $this->DBFFile = null;

            return true;
        }
        $dbf_name = $this->_getFilename('.dbf');
        if (is_readable($dbf_name)) {
            $this->DBFFile = @dbase_open($dbf_name, 0);
            if (! $this->DBFFile) {
                $this->setError(sprintf('It wasn\'t possible to open the DBase file "%s"', $dbf_name));

                return false;
            }
        } else {
            $this->setError(sprintf('It wasn\'t possible to find the DBase file "%s"', $dbf_name));

            return false;
        }

        return true;
    }
private function _openDBFFile()
    {
        if (! self::supportsDbase()) {
            $this->DBFFile = null;

            return true;
        }
        $dbf_name = $this->_getFilename('.dbf');
        if (is_readable($dbf_name)) {
            $this->DBFFile = @dbase_open($dbf_name, 0);
            if (! $this->DBFFile) {
                $this->setError(sprintf('It wasn\'t possible to open the DBase file "%s"', $dbf_name));

                return false;
            }
        } else {
            $this->setError(sprintf('It wasn\'t possible to find the DBase file "%s"', $dbf_name));

            return false;
        }

        return true;
    }
private function _openDBFFile ( ) { if ( ! self :: supportsDbase ( ) ) { $ this -> DBFFile = null ; return true ; } $ dbf_name = $ this -> _getFilename ( '.dbf' ) ; if ( is_readable ( $ dbf_name ) ) { $ this -> DBFFile = @ dbase_open ( $ dbf_name , 0 ) ; if ( ! $ this -> DBFFile ) { $ this -> setError ( sprintf ( 'It wasn\'t possible to open the DBase file "%s"' , $ dbf_name ) ) ; return false ; } } else { $ this -> setError ( sprintf ( 'It wasn\'t possible to find the DBase file "%s"' , $ dbf_name ) ) ; return false ; } return true ; }
Loads DBF file if supported.

@return bool
Loads DBF file if supported .