__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Super class of CSV import plugins for phpMyAdmin
*/
declare(strict_types=1);
namespace PhpMyAdmin\Plugins\Import;
use PhpMyAdmin\Plugins\ImportPlugin;
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
use PhpMyAdmin\Properties\Options\Items\BoolPropertyItem;
use PhpMyAdmin\Properties\Options\Items\TextPropertyItem;
use function __;
/**
* Super class of the import plugins for the CSV format
*/
abstract class AbstractImportCsv extends ImportPlugin
{
final protected function getGeneralOptions(): OptionsPropertyMainGroup
{
$generalOptions = new OptionsPropertyMainGroup('general_opts');
// create common items and add them to the group
$leaf = new BoolPropertyItem(
'replace',
__(
'Update data when duplicate keys found on import (add ON DUPLICATE KEY UPDATE)'
)
);
$generalOptions->addProperty($leaf);
$leaf = new TextPropertyItem(
'terminated',
__('Columns separated with:')
);
$leaf->setSize(2);
$generalOptions->addProperty($leaf);
$leaf = new TextPropertyItem(
'enclosed',
__('Columns enclosed with:')
);
$leaf->setSize(2);
$leaf->setLen(2);
$generalOptions->addProperty($leaf);
$leaf = new TextPropertyItem(
'escaped',
__('Columns escaped with:')
);
$leaf->setSize(2);
$leaf->setLen(2);
$generalOptions->addProperty($leaf);
$leaf = new TextPropertyItem(
'new_line',
__('Lines terminated with:')
);
$leaf->setSize(2);
$generalOptions->addProperty($leaf);
return $generalOptions;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Upload | Folder | 0755 |
|
|
| AbstractImportCsv.php | File | 1.74 KB | 0644 |
|
| ImportCsv.php | File | 30.58 KB | 0644 |
|
| ImportLdi.php | File | 5.92 KB | 0644 |
|
| ImportMediawiki.php | File | 20.61 KB | 0644 |
|
| ImportOds.php | File | 14.45 KB | 0644 |
|
| ImportShp.php | File | 10.52 KB | 0644 |
|
| ImportSql.php | File | 5.92 KB | 0644 |
|
| ImportXml.php | File | 10.4 KB | 0644 |
|
| README.md | File | 4.46 KB | 0644 |
|
| ShapeFileImport.php | File | 692 B | 0644 |
|