/** * (non-PHPdoc) * @see \tfc\mvc\form\InputElement::getInput() */ public function getInput() { $this->setType('text'); $format = $this->getAttribute('format'); $this->setClass($this->getClass() . ' form_' . $format); $output = parent::getInput(); return $output; }
/** * (non-PHPdoc) * @see \tfc\mvc\form\InputElement::getInput() */ public function getInput() { if ($this->rows > 0) { $this->setAttribute('rows', $this->rows); } if ($this->cols > 0) { $this->setAttribute('cols', $this->cols); } return parent::getInput(); }