PHP Class PMA\libraries\plugins\import\ImportCsv

Inheritance: extends PMA\libraries\plugins\import\AbstractImportCsv
Show file Open project: phpmyadmin/phpmyadmin Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructor
doImport ( &$sql_data = [] ) : void Handles the whole import logic
readCsvTerminatedString ( string $buffer, string $ch, integer $i, integer $csv_terminated_len ) : string Read the expected column_separated_with String of length $csv_terminated_len from the $buffer into variable $ch and return the read string $ch

Protected Methods

Method Description
setProperties ( ) : void Sets the import plugin properties.

Private Methods

Method Description
_getAnalyze ( ) : boolean Returns true if the table should be analyzed, false otherwise
_setAnalyze ( boolean $analyze ) : void Sets to true if the table should be analyzed, false otherwise

Method Details

__construct() public method

Constructor
public __construct ( )

doImport() public method

Handles the whole import logic
public doImport ( &$sql_data = [] ) : void
return void

readCsvTerminatedString() public method

Read the expected column_separated_with String of length $csv_terminated_len from the $buffer into variable $ch and return the read string $ch
public readCsvTerminatedString ( string $buffer, string $ch, integer $i, integer $csv_terminated_len ) : string
$buffer string The original string buffer read from csv file
$ch string Partially read "column Separated with" string, also used to return after reading length equal $csv_terminated_len
$i integer Current read counter of buffer string
$csv_terminated_len integer The length of "column separated with" String
return string

setProperties() protected method

Called in the constructor.
protected setProperties ( ) : void
return void