ImportForm.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /**
  3. * User preferences form
  4. */
  5. declare(strict_types=1);
  6. namespace PhpMyAdmin\Config\Forms\User;
  7. use PhpMyAdmin\Config\Forms\BaseForm;
  8. use function __;
  9. class ImportForm extends BaseForm
  10. {
  11. /**
  12. * @return array
  13. */
  14. public static function getForms()
  15. {
  16. return [
  17. 'Import_defaults' => [
  18. 'Import/format',
  19. 'Import/charset',
  20. 'Import/allow_interrupt',
  21. 'Import/skip_queries',
  22. 'enable_drag_drop_import',
  23. ],
  24. 'Sql' => [
  25. 'Import/sql_compatibility',
  26. 'Import/sql_no_auto_value_on_zero',
  27. 'Import/sql_read_as_multibytes',
  28. ],
  29. 'Csv' => [
  30. ':group:' . __('CSV'),
  31. 'Import/csv_replace',
  32. 'Import/csv_ignore',
  33. 'Import/csv_terminated',
  34. 'Import/csv_enclosed',
  35. 'Import/csv_escaped',
  36. 'Import/csv_col_names',
  37. ':group:end',
  38. ':group:' . __('CSV using LOAD DATA'),
  39. 'Import/ldi_replace',
  40. 'Import/ldi_ignore',
  41. 'Import/ldi_terminated',
  42. 'Import/ldi_enclosed',
  43. 'Import/ldi_escaped',
  44. 'Import/ldi_local_option',
  45. ],
  46. 'Open_Document' => [
  47. ':group:' . __('OpenDocument Spreadsheet'),
  48. 'Import/ods_col_names',
  49. 'Import/ods_empty_rows',
  50. 'Import/ods_recognize_percentages',
  51. 'Import/ods_recognize_currency',
  52. ],
  53. ];
  54. }
  55. /**
  56. * @return string
  57. */
  58. public static function getName()
  59. {
  60. return __('Import');
  61. }
  62. }