| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace ModulesGarden\ProxmoxAddon\Core\UI\Widget\Forms\Fields;
- /**
- * BaseField controler
- *
- * @author Sławomir Miśkowicz <slawomir@modulesgarden.com>
- */
- class Textarea extends BaseField
- {
- protected $id = 'textarea';
- protected $name = 'textarea';
- protected $textAreaRows;
- protected $textAreaCols;
- public function isRows()
- {
- return isset($this->textAreaRows);
- }
- public function isCols()
- {
- return isset($this->textAreaCols);
- }
- public function setRows($rows)
- {
- $this->textAreaRows = (int) $rows;
- return $this;
- }
- public function setCols($cols)
- {
- $this->textAreaCols = (int) $cols;
- return $this;
- }
- public function getRows()
- {
- return $this->textAreaRows;
- }
- public function getCols()
- {
- return $this->textAreaCols;
- }
- }
|