ExportPluginProperties.class.php 1.4 KB

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