Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of validation class for review / feedback ... Do Not Merge #518

Closed
wants to merge 11 commits into from
Closed

Use of validation class for review / feedback ... Do Not Merge #518

wants to merge 11 commits into from

Conversation

Spuds
Copy link
Contributor

@Spuds Spuds commented Jun 14, 2013

This adds a new checks to the validation class and then puts it to use in one form (email topic). There are several places this can be done but wanted to get feedback if we want to do this and do it in this way.

This was the intention of the class (well my intention), to centralize these types of checks and make adding / changing validation an easy process as well as provide more complete feedback on form data issues.

At some point it seems like this could be linked / report to the error class but thats another refactor at some point.

Signed-off-by:Spuds <spuds@spudsdesign.com>
! Add ability to sub var names with text in error strings
Signed-off-by:Spuds <spuds@spudsdesign.com>
@@ -819,7 +910,7 @@ protected function _validate_php_syntax($field, $input, $validation_parameters =
* - Gmail user can use @googlemail.com instead of @gmail.com
* - Gmail ignores all characters after a + (plus sign) in the username
* - Gmail ignores all . (dots) in username
* - ahole@gmail.com, a.hole@gmail.com, ahole+big@gmail.com and a.hole+gigantic@googlemail.com are same email address.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ROFL

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👼 You can see I was "dealing" with someone when I wrote that .... figured I should improve my comments

Signed-off-by: Spuds <spuds@spudsdesign.com>
Signed-off-by: Spuds <spuds@spudsdesign.com>
Signed-off-by: Spuds <spuds@spudsdesign.com>
Signed-off-by: Spuds <spuds@spudsdesign.com>
Signed-off-by: Spuds <spuds@spudsdesign.com>
Signed-off-by: Spuds <spuds@spudsdesign.com>
Signed-off-by: Spuds <spuds@spudsdesign.com>
@Spuds
Copy link
Contributor Author

Spuds commented Jun 17, 2013

Thanks for providing your feedback TE ... I'm going to close this since the intention was to get input, and I guess I've now got all that. I'll keep a branch in my repo should we decide this is Elk worthy 😉

@Spuds Spuds closed this Jun 17, 2013
@emanuele45
Copy link
Contributor

Sorry, but these last two weeks have been a bit busy... 😢

And anyway...do you expect meaningful feedback from me apart from: MERGE IMMEDIATELY!!? 👼

@Spuds
Copy link
Contributor Author

Spuds commented Jun 17, 2013

No worries ... TE had some good suggestions that I put in place, now I'm hunting for places I can use it as well as possibly feeding the results to the error class (assuming I don't get distracted by something else 😀 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants