コード例 #1
0
ファイル: Color.php プロジェクト: cuneytsenturk/form
 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();
 }
コード例 #2
0
ファイル: Date.php プロジェクト: cuneytsenturk/form
 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();
 }
コード例 #3
0
ファイル: Number.php プロジェクト: cuneytsenturk/form
 public function render()
 {
     $this->validation[] = new Numeric();
     parent::render();
 }
コード例 #4
0
ファイル: Url.php プロジェクト: cuneytsenturk/form
 public function render()
 {
     $this->validation[] = new ValidationUrl();
     parent::render();
 }
コード例 #5
0
ファイル: Jqueryuidate.php プロジェクト: cuneytsenturk/form
 public function render()
 {
     $this->validation[] = new Date();
     parent::render();
 }