Section.php 508 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace ModulesGarden\ProxmoxAddon\Core\UI\Traits;
  3. /**
  4. * Forms Section Elements related functions
  5. *
  6. * @author Sławomir Miśkowicz <slawomir@modulesgarden.com>
  7. */
  8. trait Section
  9. {
  10. protected $groupFieldsBySectionName = false;
  11. public function enableGroupBySectionName()
  12. {
  13. $this->groupFieldsBySectionName = true;
  14. return $this;
  15. }
  16. public function disableGroupBySectionName()
  17. {
  18. $this->groupFieldsBySectionName = false;
  19. return $this;
  20. }
  21. }