class ImportCsv extends AbstractImportCsv (View source)

Handles the import for the CSV format

Properties

protected ImportPluginProperties $properties

Object containing the import plugin properties.

from  ImportPlugin
protected Import $import from  ImportPlugin

Methods

__construct()

No description

void
init()

Plugin specific initializations.

array
doImport(File|null $importHandle = null)

Handles the whole import logic

getProperties()

Gets the import specific format plugin properties

setProperties()

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

static bool
isAvailable()

No description

void
setImportOptions(ServerRequest $request)

No description

string
getName()

No description

string
readCsvTerminatedString(string $buffer, string $ch, int $i, int $csvTerminatedLen)

Read the expected column_separated_with String of length $csv_terminated_len from the $buffer into variable $ch and return the read string $ch

Details

final __construct()

No description

protected void init()

Plugin specific initializations.

Return Value

void

array doImport(File|null $importHandle = null)

Handles the whole import logic

Parameters

File|null $importHandle

Return Value

array

PluginPropertyItem getProperties()

Gets the import specific format plugin properties

Return Value

PluginPropertyItem

protected ImportPluginProperties setProperties()

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

Return Value

ImportPluginProperties

static bool isAvailable()

No description

Return Value

bool

void setImportOptions(ServerRequest $request)

No description

Parameters

ServerRequest $request

Return Value

void

final protected OptionsPropertyMainGroup getGeneralOptions()

No description

string getName()

No description

Return Value

string

string readCsvTerminatedString(string $buffer, string $ch, int $i, int $csvTerminatedLen)

Read the expected column_separated_with String of length $csv_terminated_len from the $buffer into variable $ch and return the read string $ch

Parameters

string $buffer

The original string buffer read from csv file

string $ch

Partially read "column Separated with" string, also used to return after reading length equal $csv_terminated_len

int $i

Current read counter of buffer string

int $csvTerminatedLen

The length of "column separated with" String

Return Value

string