public function __construct() { parent::__construct('loginForm'); $this->setInputFilter(new Filter\Login()); $email = new Text("email"); $this->add($email); $password = new Text("password"); $this->add($password); }
public function __construct() { parent::__construct('registerPersonalForm'); $this->setInputFilter(new Filter\RegisterPersonal()); $id = new Text("id"); $this->add($id); $cpf = new Text("cpf"); $this->add($cpf); $cref = new Text("cref"); $this->add($cref); $moip = new Text("moip"); $this->add($moip); }
public function __construct($type = 'insert') { parent::__construct('userForm'); $this->setInputFilter(new Filter\Register($type)); if ($type === 'edit') { $id = new Text("id"); $this->add($id); } $name = new Text("name"); $this->add($name); $email = new Text("email"); $this->add($email); $password = new Text("password"); $this->add($password); $repeatPassword = new Text("repeatPassword"); $this->add($repeatPassword); }