/** * @param $name * @param $label * @return $this */ public function addFText($name, $label) { $this->checkName($name); $el = new Text(); $el->setName($name); $el->setLabel($label); $this->addElement($el); return $this; }
/** * @param $name * @param $label * @param $value * @param $require * @param $paramValidate * @return $this */ public function addText($name, $label, $value, $require, $paramValidate) { $this->checkName($name); $el = new Text(); $el->setName($name); $el->setLabel($label); $el->setValue($value); $el->setRequire($require); $el->setValidateOpts($paramValidate); $this->addElement($el); return $this; }