SchemaPluginProperties.php 1.1 KB

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