/** * Adds name field to the form */ private function AddEMailField() { $name = 'EMail'; $this->AddField(Input::Text($name, $this->user->GetEMail())); $this->SetRequired($name); $this->AddValidator($name, PhpFilter::EMail()); }