/** * Adds the url field to the form */ private function AddUrlField() { $name = 'Url'; $this->AddField(Input::Text($name, $this->site->GetUrl())); $this->SetRequired($name); $this->AddValidator($name, PhpFilter::Url()); }
/** * Adds the smtp mail from e-mail field */ private function AddMailFromEMailField() { $name = 'MailFromEMail'; $field = Input::Text($name, $this->settings->GetMailFromEMail()); $this->AddField($field); $this->AddValidator($name, PhpFilter::EMail()); }
/** * Adds the email field to the form */ private function AddEMailField() { $name = 'EMail'; $this->AddField(Input::Text($name, $this->member->GetEMail())); $this->SetRequired($name); $this->AddValidator($name, PhpFilter::EMail()); $this->AddValidator($name, DatabaseCount::UniqueField($this->member, $name)); }
private function AddEMailField() { $name = 'EMail'; $field = Input::Text($name); $this->AddField($field); $this->SetRequired($name); $this->AddValidator($name, PhpFilter::EMail()); $this->AddValidator($name, DatabaseCount::UniqueField(new Member(), 'EMail')); }
/** * 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()); }
private function AddMailFromField() { $name = 'MailFrom'; $field = Input::Text($name, $this->register->GetMailFrom()); $this->AddField($field); $this->SetRequired($name); $this->AddValidator($name, PhpFilter::EMail()); }
private function AddUrlField() { $name = 'Url'; $value = ''; if ($this->naviItem->Exists() && $this->naviItem->GetUrlItem()) { $value = $this->naviItem->GetUrlItem()->GetUrl(); } $this->AddField(Input::Text($name, $value)); if ($this->Value('Type') == 'UrlItem') { $this->SetRequired($name); $this->AddValidator($name, PhpFilter::Url()); } }