You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
692 B
39 lines
692 B
<?php |
|
/** |
|
* This class extends ShapeFile class to cater the following phpMyAdmin |
|
* specific requirements. |
|
*/ |
|
|
|
declare(strict_types=1); |
|
|
|
namespace PhpMyAdmin\Plugins\Import; |
|
|
|
use PhpMyAdmin\ShapeFile\ShapeFile; |
|
|
|
/** |
|
* ShapeFileImport class |
|
*/ |
|
class ShapeFileImport extends ShapeFile |
|
{ |
|
/** |
|
* Reads given number of bytes from SHP file |
|
* |
|
* @param int $bytes number of bytes |
|
* |
|
* @return string|false |
|
*/ |
|
public function readSHP(int $bytes) |
|
{ |
|
return ImportShp::readFromBuffer($bytes); |
|
} |
|
|
|
/** |
|
* Checks whether file is at EOF |
|
*/ |
|
public function eofSHP(): bool |
|
{ |
|
global $eof; |
|
|
|
return (bool) $eof; |
|
} |
|
}
|
|
|