mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Merged the 2 validate methods in FormField (still a draft).
This commit is contained in:
parent
f9dcdbb905
commit
f5441645fa
@ -15,10 +15,7 @@ public:
|
||||
|
||||
virtual std::string render();
|
||||
|
||||
//checks if form field validates
|
||||
virtual bool validate_check(Request *request);
|
||||
//checks if form field validates, and returns human readable errorsm if any
|
||||
virtual std::vector<std::string> validate_report(Request *request);
|
||||
virtual bool validate(Request *request, std::vector<std::string> *errors);
|
||||
|
||||
FormField();
|
||||
virtual ~FormField();
|
||||
|
Loading…
Reference in New Issue
Block a user