ExportPluginProperties.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Properties class for the 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. * @todo modify descriptions if needed, when the plug-in properties are integrated
  14. * @package PhpMyAdmin
  15. */
  16. class ExportPluginProperties extends PluginPropertyItem
  17. {
  18. /**
  19. * Whether to force or not
  20. *
  21. * @var bool
  22. */
  23. private $_forceFile;
  24. /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */
  25. /**
  26. * Returns the property item type of either an instance of
  27. * - PhpMyAdmin\Properties\Options\OptionsPropertyOneItem ( f.e. "bool",
  28. * "text", "radio", etc ) or
  29. * - PhpMyAdmin\Properties\Options\OptionsPropertyGroup ( "root", "main"
  30. * or "subgroup" )
  31. * - PhpMyAdmin\Properties\Plugins\PluginPropertyItem ( "export", "import", "transformations" )
  32. *
  33. * @return string
  34. */
  35. public function getItemType()
  36. {
  37. return "export";
  38. }
  39. /**
  40. * Gets the force file parameter
  41. *
  42. * @return bool
  43. */
  44. public function getForceFile()
  45. {
  46. return $this->_forceFile;
  47. }
  48. /**
  49. * Sets the force file parameter
  50. *
  51. * @param bool $forceFile the force file parameter
  52. *
  53. * @return void
  54. */
  55. public function setForceFile($forceFile)
  56. {
  57. $this->_forceFile = $forceFile;
  58. }
  59. }