diff options
Diffstat (limited to 'src/usr/local/www/classes')
-rw-r--r-- | src/usr/local/www/classes/Form/Input.class.php | 7 | ||||
-rw-r--r-- | src/usr/local/www/classes/Form/Textarea.class.php | 14 |
2 files changed, 21 insertions, 0 deletions
diff --git a/src/usr/local/www/classes/Form/Input.class.php b/src/usr/local/www/classes/Form/Input.class.php index 80b96c8..b8c0a30 100644 --- a/src/usr/local/www/classes/Form/Input.class.php +++ b/src/usr/local/www/classes/Form/Input.class.php @@ -122,6 +122,13 @@ class Form_Input extends Form_Element return $this; } + public function setCols($size) + { + $this->_attributes['cols'] = $size; + + return $this; + } + public function setReadonly() { $this->_attributes['readonly'] = 'readonly'; diff --git a/src/usr/local/www/classes/Form/Textarea.class.php b/src/usr/local/www/classes/Form/Textarea.class.php index 8c1c157..9cda51a 100644 --- a/src/usr/local/www/classes/Form/Textarea.class.php +++ b/src/usr/local/www/classes/Form/Textarea.class.php @@ -42,6 +42,20 @@ class Form_Textarea extends Form_Input $this->_value = $value; } + public function setRows($size) + { + $this->_attributes['rows'] = $size; + + return $this; + } + + public function setNoWrap() + { + $this->_attributes['wrap'] = 'none'; + + return $this; + } + protected function _getInput() { $element = parent::_getInput(); |