Exemplo n.º 1
0
 /**
  * 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());
 }
Exemplo n.º 2
0
 /**
  * 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());
 }
Exemplo n.º 3
0
 /**
  * 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));
 }
Exemplo n.º 4
0
 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'));
 }
Exemplo n.º 5
0
 /**
  * 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());
     }
 }