abstract class ImportPlugin

Provides a common interface that will have to be implemented by all of the import plugins.

Properties

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

Methods

__construct()

ImportPlugin constructor.

void
doImport(array $sql_data = [])

Handles the whole import logic

getProperties()

Gets the import specific format plugin properties

void
setProperties()

Sets the export plugins properties and is implemented by each import plugin

array
getDbnameAndOptions(string $currentDb, string $defaultDb)

Define DB name and options

Details

at line 37
__construct()

ImportPlugin constructor.

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

Handles the whole import logic

Parameters

array $sql_data 2-element array with sql data

Return Value

void

at line 59
ImportPluginProperties getProperties()

Gets the import specific format plugin properties

Return Value

ImportPluginProperties

at line 70
abstract protected void setProperties()

Sets the export plugins properties and is implemented by each import plugin

Return Value

void

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)