Textarea.php 905 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields;
  3. /**
  4. * BaseField controler
  5. *
  6. * @autor ThurData <info@thrudata.ch>
  7. */
  8. class Textarea extends BaseField
  9. {
  10. protected $id = 'textarea';
  11. protected $name = 'textarea';
  12. protected $textAreaRows;
  13. protected $textAreaCols;
  14. public function isRows()
  15. {
  16. return isset($this->textAreaRows);
  17. }
  18. public function isCols()
  19. {
  20. return isset($this->textAreaCols);
  21. }
  22. public function setRows($rows)
  23. {
  24. $this->textAreaRows = (int)$rows;
  25. return $this;
  26. }
  27. public function setCols($cols)
  28. {
  29. $this->textAreaCols = (int)$cols;
  30. return $this;
  31. }
  32. public function getRows()
  33. {
  34. return $this->textAreaRows;
  35. }
  36. public function getCols()
  37. {
  38. return $this->textAreaCols;
  39. }
  40. }