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