OptionsPropertySubgroup.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Holds the PhpMyAdmin\Properties\Options\Groups\OptionsPropertySubgroup class
  5. *
  6. * @package PhpMyAdmin
  7. */
  8. namespace PhpMyAdmin\Properties\Options\Groups;
  9. use PhpMyAdmin\Properties\Options\OptionsPropertyGroup;
  10. /**
  11. * Group property item class of type subgroup
  12. *
  13. * @package PhpMyAdmin
  14. */
  15. class OptionsPropertySubgroup extends OptionsPropertyGroup
  16. {
  17. /**
  18. * Subgroup Header
  19. *
  20. * @var string
  21. */
  22. private $_subgroupHeader;
  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 "subgroup";
  37. }
  38. /**
  39. * Gets the subgroup header
  40. *
  41. * @return \PhpMyAdmin\Properties\PropertyItem
  42. */
  43. public function getSubgroupHeader()
  44. {
  45. return $this->_subgroupHeader;
  46. }
  47. /**
  48. * Sets the subgroup header
  49. *
  50. * @param \PhpMyAdmin\Properties\PropertyItem $subgroupHeader subgroup header
  51. *
  52. * @return void
  53. */
  54. public function setSubgroupHeader($subgroupHeader)
  55. {
  56. $this->_subgroupHeader = $subgroupHeader;
  57. }
  58. }