OptionsPropertyItem.class.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * The top-level class of the "Options" subtree of the object-oriented
  5. * properties system (the other subtree is "Plugin").
  6. *
  7. * @package PhpMyAdmin
  8. */
  9. if (! defined('PHPMYADMIN')) {
  10. exit;
  11. }
  12. /* This class extends the PropertyItem class */
  13. require_once 'libraries/properties/PropertyItem.class.php';
  14. /**
  15. * Superclass for
  16. * - OptionsPropertyOneItem and
  17. * - OptionsProperty Group
  18. *
  19. * @package PhpMyAdmin
  20. */
  21. abstract class OptionsPropertyItem extends PropertyItem
  22. {
  23. /**
  24. * Name
  25. *
  26. * @var string
  27. */
  28. private $_name;
  29. /**
  30. * Text
  31. *
  32. * @var string
  33. */
  34. private $_text;
  35. /**
  36. * What to force
  37. *
  38. * @var string
  39. */
  40. private $_force;
  41. /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */
  42. /**
  43. * Gets the name
  44. *
  45. * @return string
  46. */
  47. public function getName()
  48. {
  49. return $this->_name;
  50. }
  51. /**
  52. * Sets the name
  53. *
  54. * @param string $name name
  55. *
  56. * @return void
  57. */
  58. public function setName($name)
  59. {
  60. $this->_name = $name;
  61. }
  62. /**
  63. * Gets the text
  64. *
  65. * @return string
  66. */
  67. public function getText()
  68. {
  69. return $this->_text;
  70. }
  71. /**
  72. * Sets the text
  73. *
  74. * @param string $text text
  75. *
  76. * @return void
  77. */
  78. public function setText($text)
  79. {
  80. $this->_text = $text;
  81. }
  82. /**
  83. * Gets the force parameter
  84. *
  85. * @return string
  86. */
  87. public function getForce()
  88. {
  89. return $this->_force;
  90. }
  91. /**
  92. * Sets the force paramter
  93. *
  94. * @param string $force force parameter
  95. *
  96. * @return void
  97. */
  98. public function setForce($force)
  99. {
  100. $this->_force = $force;
  101. }
  102. /**
  103. * Returns the property type ( either "options", or "plugin" ).
  104. *
  105. * @return string
  106. */
  107. public function getPropertyType()
  108. {
  109. return "options";
  110. }
  111. }
  112. ?>