public function __construct($name, $translator, $action, $inputFilter) { parent::__construct($name, $translator); $this->setAttribute('action', $action); $this->setInputFilter($inputFilter); $value = $translator->translate('submitActivate', Module::USER_TEXT_DOMAIN); $this->add($this->setIdElement()); $this->add($this->setActivate()); $this->add($this->setCsrf()); $this->add($this->setSubmitElement($value)); }
public function __construct($name, $translator, $action, $inputFilter) { parent::__construct($name, $translator); $this->setAttribute('action', $action); $this->setInputFilter($inputFilter); $value = $translator->translate('submitInsert', Module::USER_TEXT_DOMAIN); $this->add($this->setFirstnameElement()); $this->add($this->setSurnameElement()); $this->add($this->setEmailElement()); $this->add($this->setPasswordElement()); $this->add($this->setRoleSelect()); $this->add($this->setCsrf()); $this->add($this->setSubmitElement($value)); }
public function __construct($name, $translator, $action, $inputFilter) { parent::__construct($name, $translator); $this->setAttribute('action', $action); $this->setInputFilter($inputFilter); $value = $translator->translate('submitUpdate', Module::USER_TEXT_DOMAIN); $this->add($this->setIdElement()); $this->add($this->setFirstnameElement()); $this->add($this->setSurnameElement()); $this->add($this->setEmailElement()); // TODO - das wird nicht gehen - setzt Password auf '' $this->add($this->setPasswordElement()); $this->add($this->setActivate()); $this->add($this->setCsrf()); $this->add($this->setSubmitElement($value)); }