3 * This class extends ShapeFile class to cater the following phpMyAdmin
4 * specific requirements.
7 declare(strict_types
=1);
9 namespace PhpMyAdmin\Plugins\Import
;
11 use PhpMyAdmin\ShapeFile\ShapeFile
;
14 * ShapeFileImport class
16 class ShapeFileImport
extends ShapeFile
19 * Reads given number of bytes from SHP file
21 * @param int $bytes number of bytes
23 * @return string|false
25 public function readSHP(int $bytes)
27 return ImportShp
::readFromBuffer($bytes);
31 * Checks whether file is at EOF
33 public function eofSHP(): bool
35 return (bool) $GLOBALS['eof'];