final class Import (View source)

Import defaults

Properties

string $format
$cfg['Import']['format'] = 'sql';
string $charset

Default charset for import.

bool $allow_interrupt
$cfg['Import']['allow_interrupt'] = true;
int $skip_queries
$cfg['Import']['skip_queries'] = 0;
string $sql_compatibility
$cfg['Import']['sql_compatibility'] = 'NONE';
bool $sql_no_auto_value_on_zero
$cfg['Import']['sql_no_auto_value_on_zero'] = true;
bool $sql_read_as_multibytes
$cfg['Import']['sql_read_as_multibytes'] = false;
bool $csv_replace
$cfg['Import']['csv_replace'] = false;
bool $csv_ignore
$cfg['Import']['csv_ignore'] = false;
string $csv_terminated
$cfg['Import']['csv_terminated'] = ',';
string $csv_enclosed
$cfg['Import']['csv_enclosed'] = '"';
string $csv_escaped
$cfg['Import']['csv_escaped'] = '"';
string $csv_new_line
$cfg['Import']['csv_new_line'] = 'auto';
string $csv_columns
$cfg['Import']['csv_columns'] = '';
bool $csv_col_names
$cfg['Import']['csv_col_names'] = false;
bool $ldi_replace
$cfg['Import']['ldi_replace'] = false;
bool $ldi_ignore
$cfg['Import']['ldi_ignore'] = false;
string $ldi_terminated
$cfg['Import']['ldi_terminated'] = ';';
string $ldi_enclosed
$cfg['Import']['ldi_enclosed'] = '"';
string $ldi_escaped
$cfg['Import']['ldi_escaped'] = '\\';
string $ldi_new_line
$cfg['Import']['ldi_new_line'] = 'auto';
string $ldi_columns
$cfg['Import']['ldi_columns'] = '';
string|bool $ldi_local_option

'auto' for auto-detection, true or false for forcing

bool $ods_col_names
$cfg['Import']['ods_col_names'] = false;
bool $ods_empty_rows
$cfg['Import']['ods_empty_rows'] = true;
bool $ods_recognize_percentages
$cfg['Import']['ods_recognize_percentages'] = true;
bool $ods_recognize_currency
$cfg['Import']['ods_recognize_currency'] = true;

Methods

__construct(array $import = [])

No description

array
asArray()

No description

Details

__construct(array $import = [])

No description

Parameters

array $import

array asArray()

No description

Return Value

array