MainForm.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * User preferences form
  5. *
  6. * @package PhpMyAdmin
  7. */
  8. declare(strict_types=1);
  9. namespace PhpMyAdmin\Config\Forms\User;
  10. use PhpMyAdmin\Config\Forms\BaseForm;
  11. /**
  12. * Class MainForm
  13. * @package PhpMyAdmin\Config\Forms\User
  14. */
  15. class MainForm extends BaseForm
  16. {
  17. /**
  18. * @return array
  19. */
  20. public static function getForms()
  21. {
  22. return [
  23. 'Startup' => [
  24. 'ShowCreateDb',
  25. 'ShowStats',
  26. 'ShowServerInfo',
  27. ],
  28. 'DbStructure' => [
  29. 'ShowDbStructureCharset',
  30. 'ShowDbStructureComment',
  31. 'ShowDbStructureCreation',
  32. 'ShowDbStructureLastUpdate',
  33. 'ShowDbStructureLastCheck',
  34. ],
  35. 'TableStructure' => [
  36. 'HideStructureActions',
  37. 'ShowColumnComments',
  38. ':group:' . __('Default transformations'),
  39. 'DefaultTransformations/Hex',
  40. 'DefaultTransformations/Substring',
  41. 'DefaultTransformations/Bool2Text',
  42. 'DefaultTransformations/External',
  43. 'DefaultTransformations/PreApPend',
  44. 'DefaultTransformations/DateFormat',
  45. 'DefaultTransformations/Inline',
  46. 'DefaultTransformations/TextImageLink',
  47. 'DefaultTransformations/TextLink',
  48. ':group:end',
  49. ],
  50. 'Browse' => [
  51. 'TableNavigationLinksMode',
  52. 'ActionLinksMode',
  53. 'ShowAll',
  54. 'MaxRows',
  55. 'Order',
  56. 'BrowsePointerEnable',
  57. 'BrowseMarkerEnable',
  58. 'GridEditing',
  59. 'SaveCellsAtOnce',
  60. 'RepeatCells',
  61. 'LimitChars',
  62. 'RowActionLinks',
  63. 'RowActionLinksWithoutUnique',
  64. 'TablePrimaryKeyOrder',
  65. 'RememberSorting',
  66. 'RelationalDisplay',
  67. ],
  68. 'Edit' => [
  69. 'ProtectBinary',
  70. 'ShowFunctionFields',
  71. 'ShowFieldTypesInDataEditView',
  72. 'InsertRows',
  73. 'ForeignKeyDropdownOrder',
  74. 'ForeignKeyMaxLimit',
  75. ],
  76. 'Tabs' => [
  77. 'TabsMode',
  78. 'DefaultTabServer',
  79. 'DefaultTabDatabase',
  80. 'DefaultTabTable',
  81. ],
  82. 'DisplayRelationalSchema' => [
  83. 'PDFDefaultPageSize',
  84. ],
  85. ];
  86. }
  87. /**
  88. * @return string
  89. */
  90. public static function getName()
  91. {
  92. return __('Main panel');
  93. }
  94. }