Label.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. namespace ThurData\Servers\KerioEmail\Core\UI\Widget\Others;
  3. use ThurData\Servers\KerioEmail\Core\UI\Builder\BaseContainer;
  4. /**
  5. * ModuleDescription
  6. *
  7. * @autor ThurData <info@thurdata.ch>
  8. */
  9. class Label extends BaseContainer
  10. {
  11. protected $name = 'mgLabel';
  12. protected $id = 'mgLabel';
  13. protected $title = 'mgLabel';
  14. protected $class = ['lu-label'];
  15. protected $message = null;
  16. protected $color = 'FFFFFF';
  17. protected $backgroundColor = 'FFFFFF';
  18. public function setMessage($message)
  19. {
  20. $this->message = $message;
  21. return $this;
  22. }
  23. public function getMessage()
  24. {
  25. return $this->message;
  26. }
  27. public function setColor($color)
  28. {
  29. $this->color = $color;
  30. return $this;
  31. }
  32. public function setBackgroundColor($backgroundColor)
  33. {
  34. $this->backgroundColor = $backgroundColor;
  35. return $this;
  36. }
  37. public function getColor()
  38. {
  39. return $this->color;
  40. }
  41. public function getBackgroundColor()
  42. {
  43. return $this->backgroundColor;
  44. }
  45. }