Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
optometrists
/
cache
/
cache
/
cache
/
cache
/
cache
/
cache
/
cache
/
.wp-cli
/
wp-content
/
plugins
/
wp-phpmyadmin-extension
/
lib
/
phpMyAdmin
/
libraries
/
classes
/
Plugins
/
Import
:
ShapeFileImport.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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; } }