SchemaPluginProperties.php 993 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Properties class for the schema export plug-in
  4. */
  5. declare(strict_types=1);
  6. namespace PhpMyAdmin\Properties\Plugins;
  7. /**
  8. * Defines possible options and getters and setters for them.
  9. */
  10. class SchemaPluginProperties extends PluginPropertyItem
  11. {
  12. /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */
  13. /**
  14. * Returns the property item type of either an instance of
  15. * - PhpMyAdmin\Properties\Options\OptionsPropertyOneItem ( f.e. "bool",
  16. * "text", "radio", etc ) or
  17. * - PhpMyAdmin\Properties\Options\OptionsPropertyGroup ( "root", "main"
  18. * or "subgroup" )
  19. * - PhpMyAdmin\Properties\Plugins\PluginPropertyItem ( "export",
  20. * "import", "transformations" )
  21. *
  22. * @return string
  23. */
  24. public function getItemType()
  25. {
  26. return 'schema';
  27. }
  28. /**
  29. * Gets the force file parameter
  30. *
  31. * @return bool
  32. */
  33. public function getForceFile()
  34. {
  35. return true;
  36. }
  37. }