ExportPluginProperties.php 1.4 KB

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