src/ShapeFile.php
private function _createDBFFile()
    {
        if (! self::supportsDbase() || ! is_array($this->DBFHeader) || count($this->DBFHeader) == 0) {
            $this->DBFFile = null;

            return true;
        }
        $dbf_name = $this->_getFilename('.dbf');

        /* Unlink existing file */
        if (file_exists($dbf_name)) {
            unlink($dbf_name);
        }

        /* Create new file */
        $this->DBFFile = @dbase_create($dbf_name, $this->DBFHeader);
        if ($this->DBFFile === false) {
            $this->setError(sprintf('It wasn\'t possible to create the DBase file "%s"', $dbf_name));

            return false;
        }

        return true;
    }
private function _createDBFFile()
    {
        if (! self::supportsDbase() || ! is_array($this->DBFHeader) || count($this->DBFHeader) == 0) {
            $this->DBFFile = null;

            return true;
        }
        $dbf_name = $this->_getFilename('.dbf');

        /* Unlink existing file */
        if (file_exists($dbf_name)) {
            unlink($dbf_name);
        }

        /* Create new file */
        $this->DBFFile = @dbase_create($dbf_name, $this->DBFHeader);
        if ($this->DBFFile === false) {
            $this->setError(sprintf('It wasn\'t possible to create the DBase file "%s"', $dbf_name));

            return false;
        }

        return true;
    }
private function _createDBFFile ( ) { if ( ! self :: supportsDbase ( ) || ! is_array ( $ this -> DBFHeader ) || count ( $ this -> DBFHeader ) == 0 ) { $ this -> DBFFile = null ; return true ; } $ dbf_name = $ this -> _getFilename ( '.dbf' ) ; /* Unlink existing file */ if ( file_exists ( $ dbf_name ) ) { unlink ( $ dbf_name ) ; } /* Create new file */ $ this -> DBFFile = @ dbase_create ( $ dbf_name , $ this -> DBFHeader ) ; if ( $ this -> DBFFile === false ) { $ this -> setError ( sprintf ( 'It wasn\'t possible to create the DBase file "%s"' , $ dbf_name ) ) ; return false ; } return true ; }
Creates DBF file.

@return bool
Creates DBF file .