Icon.php 456 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace ModulesGarden\ProxmoxAddon\Core\UI\Traits;
  3. /**
  4. * Icons related functions
  5. *
  6. * @author Sławomir Miśkowicz <slawomir@modulesgarden.com>
  7. */
  8. trait Icon
  9. {
  10. protected $icon = null;
  11. public function getIcon()
  12. {
  13. if ($this->icon)
  14. {
  15. return $this->icon;
  16. }
  17. return false;
  18. }
  19. public function setIcon($iconClass)
  20. {
  21. $this->icon = $iconClass;
  22. return $this;
  23. }
  24. }