示例#1
0
 public function render()
 {
     $html = '';
     $this->validation[] = new Numeric();
     $html .= parent::getInput();
     return $html;
 }
示例#2
0
 public function getInput()
 {
     $html = '';
     $this->validation[] = new Date();
     $html .= parent::getInput();
     return $html;
 }
示例#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;
 }
示例#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();
 }
示例#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();
 }
示例#6
0
 public function render()
 {
     $this->validation[] = new Numeric();
     parent::render();
 }
示例#7
0
 public function render()
 {
     $this->validation[] = new ValidationUrl();
     parent::render();
 }
示例#8
0
 public function render()
 {
     $this->validation[] = new Date();
     parent::render();
 }