Textarea.php 888 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace ModulesGarden\ProxmoxAddon\Core\UI\Widget\Forms\Fields;
  3. /**
  4. * BaseField controler
  5. *
  6. * @author Sławomir Miśkowicz <slawomir@modulesgarden.com>
  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. }