Exemple #1
0
 public function render()
 {
     $html = '';
     $this->validation[] = new Numeric();
     $html .= parent::getInput();
     return $html;
 }
Exemple #2
0
 public function getInput()
 {
     $html = '';
     $this->validation[] = new Date();
     $html .= parent::getInput();
     return $html;
 }
Exemple #3
0
 public function getInput()
 {
     $html = '';
     $msg = "Error: The %element% field must match the following date format: " . $this->attributes["title"];
     $this->validation[] = new RegExp("/" . $this->attributes["pattern"] . "/", $msg);
     $html .= parent::getInput();
     return $html;
 }
Exemple #4
0
 public function render()
 {
     $this->attributes["pattern"] = "#[a-g0-9]{6}";
     $this->attributes["title"] = "6-digit hexidecimal color (e.g. #000000)";
     $msg = "Error: The %element% field must contain a " . $this->attributes["title"];
     $this->validation[] = new RegExp("/" . $this->attributes["pattern"] . "/", $msg);
     parent::render();
 }
Exemple #5
0
 public function render()
 {
     $msg = "Error: The %element% field must match the following date format: " . $this->attributes["title"];
     $this->validation[] = new RegExp("/" . $this->attributes["pattern"] . "/", $msg);
     parent::render();
 }
Exemple #6
0
 public function render()
 {
     $this->validation[] = new Numeric();
     parent::render();
 }
Exemple #7
0
 public function render()
 {
     $this->validation[] = new ValidationUrl();
     parent::render();
 }
Exemple #8
0
 public function render()
 {
     $this->validation[] = new Date();
     parent::render();
 }