예제 #1
0
 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));
 }
예제 #2
0
파일: InsertForm.php 프로젝트: dulumao/big5
 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));
 }
예제 #3
0
 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));
 }