class ImportShp extends ImportPlugin

Handles the import for ESRI Shape files

Properties

protected ImportPluginProperties $properties ImportPluginProperties object containing the import plugin properties from ImportPlugin
protected Import $import from ImportPlugin

Methods

__construct()

Constructor

void
doImport(array $sql_data = [])

Handles the whole import logic

getProperties()

Gets the import specific format plugin properties

void
setProperties()

Sets the import plugin properties.

array
getDbnameAndOptions(string $currentDb, string $defaultDb)

Define DB name and options

static string
readFromBuffer(int $length)

Returns specified number of bytes from the buffer.

Details

at line 40
__construct()

Constructor

at line 73
void doImport(array $sql_data = [])

Handles the whole import logic

Parameters

array $sql_data 2-element array with sql data

Return Value

void

in ImportPlugin at line 59
ImportPluginProperties getProperties()

Gets the import specific format plugin properties

Return Value

ImportPluginProperties

at line 55
protected void setProperties()

Sets the import plugin properties.

Called in the constructor.

Return Value

void

in ImportPlugin at line 80
protected array getDbnameAndOptions(string $currentDb, string $defaultDb)

Define DB name and options

Parameters

string $currentDb DB
string $defaultDb Default DB name

Return Value

array DB name and options (an associative array of options)

at line 311
static string readFromBuffer(int $length)

Returns specified number of bytes from the buffer.

Buffer automatically fetches next chunk of data when the buffer falls short. Sets $eof when $GLOBALS['finished'] is set and the buffer falls short.

Parameters

int $length number of bytes

Return Value

string