Ejemplo n.º 1
0
 /**
  * (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;
 }
Ejemplo n.º 2
0
 /**
  * (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();
 }