PHP Класс PMA\libraries\plugins\import\ImportCsv

Наследование: extends PMA\libraries\plugins\import\AbstractImportCsv
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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

Защищенные методы

Метод Описание
setProperties ( ) : void Sets the import plugin properties.

Приватные методы

Метод Описание
_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

Описание методов

__construct() публичный Метод

Constructor
public __construct ( )

doImport() публичный Метод

Handles the whole import logic
public doImport ( &$sql_data = [] ) : void
Результат void

readCsvTerminatedString() публичный Метод

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
Результат string

setProperties() защищенный Метод

Called in the constructor.
protected setProperties ( ) : void
Результат void