. */ class Staple_Form_TextareaElement extends Staple_Form_Element { protected $rows; protected $cols; public function setRows($rows) { $this->rows = (int)$rows; return $this; } public function getRows() { return $this->rows; } public function setCols($cols) { $this->cols = (int)$cols; return $this; } public function getCols() { return $this->cols; } /* (non-PHPdoc) * @see Staple_Form_Element::field() */ public function field() { return ' \n"; } /* (non-PHPdoc) * @see Staple_Form_Element::label() */ public function label() { return ' \n"; } public function build() { $buf = ''; $view = FORMS_ROOT.'/fields/TextareaElement.phtml'; if(file_exists($view)) { ob_start(); include $view; $buf = ob_get_contents(); ob_end_clean(); } else { $this->addClass('form_element'); $this->addClass('element_textarea'); $classes = $this->getClassString(); $buf .= "