Commit graph

1930 commits

Author SHA1 Message Date
Alexandre 3ed3114e58 Added AbstractRule->setTemplate to support custom template messages. 2011-04-17 12:29:48 -03:00
Alexandre Gomes Gaigalas 81076e0777 Added support for objects in Rules\Length 2011-04-15 18:13:38 -03:00
Alexandre Gomes Gaigalas 9b04572604 Fixed E_DEPRECATED 2011-04-14 19:32:48 -03:00
Alexandre Gomes Gaigalas de059a8ba1 pear package 2011-04-12 15:28:38 -03:00
Alexandre Gomes Gaigalas 5718a80167 Fixed return value on ValidationException::guessId() 2011-04-12 15:26:03 -03:00
Alexandre Gomes Gaigalas 7a4d52cd38 Changed Not rule rewriting to clone objects 2011-04-11 14:20:39 -03:00
Alexandre 9b6da3e3e2 Better Rules\Not() implementation. Works on composite rules now. 2011-04-09 21:00:50 -03:00
Alexandre cc278caffd Revert "Revert "Message modes for exceptions (in draft)""
This reverts commit 2041d4a33a.
2011-04-09 20:34:21 -03:00
Alexandre 2041d4a33a Revert "Message modes for exceptions (in draft)"
This reverts commit 6f0dd5c072.
2011-04-09 20:30:49 -03:00
Alexandre Gomes Gaigalas 6f0dd5c072 Message modes for exceptions (in draft) 2011-04-08 16:39:10 -03:00
Alexandre Gomes Gaigalas 182425ee0a Merge branch 'marcelo-develop' into develop 2011-04-04 16:03:47 -03:00
Marcelo Araujo 64254ee83c removing unnecessary else statements 2011-04-04 15:21:26 -03:00
Marcelo Araujo cc89eb713e removing unnecessary else statements 2011-04-04 15:13:46 -03:00
Marcelo Araujo 83e6e70421 removing unnecessary else statements 2011-04-04 15:07:12 -03:00
Marcelo Araujo 1536b87c66 removing unnecessary else/elseif statements 2011-04-04 15:03:30 -03:00
Alexandre Gomes Gaigalas e3a2578ce8 Indentation. 2011-04-04 14:37:40 -03:00
Marcelo Araujo 523bcccd58 removing unnecessary else/elseif statements 2011-04-04 14:00:41 -03:00
Marcelo Araujo 16394d451b removing unnecessary else statements 2011-04-04 13:40:47 -03:00
Alexandre Gomes Gaigalas 2e8dd7b171 Export exceptions to plain arrays (to use in template engines, for example) 2011-03-30 19:06:59 -03:00
Alexandre Gomes Gaigalas f9ce2c389c Improved factory. Should speed up performance. 2011-03-23 19:17:20 -03:00
Alexandre Gomes Gaigalas 38e4350dab Markdown fix 2011-03-21 15:30:23 -03:00
Alexandre Gomes Gaigalas 6b7dd11211 Licensing 2011-03-21 13:24:39 -03:00
Alexandre Gomes Gaigalas a76a2d4e95 Removed Contexts implementation. Needs another approach. 2011-03-18 16:08:04 -03:00
Alexandre Gomes Gaigalas 7abb73430e removed unecessary check() method on Rules\Not 2011-03-18 12:29:44 -03:00
Alexandre 10813d136e Licensing. 2011-03-13 11:50:47 -03:00
Alexandre 0b37041481 Not validator for negating rules (v::not(v::string()) means not string). Improvements on the Domain validator. Needs Refactoring. 2011-02-21 00:42:32 -03:00
Alexandre 191065bf4c Very early stage Internet Domain Name validators. New Contains and Tld (top-level domain) validators. NoWhitespace now validates for null values. 2011-02-20 21:53:21 -03:00
Alexandre b12b81685e StartsWith and EndsWith validators 2011-02-20 15:54:11 -03:00
Alexandre 62f19fe798 New tests for exceptions. 2011-02-20 15:03:09 -03:00
Alexandre 91da403137 -Merge branch 'develop' of github.com:Respect/Validation into develop
-Fixed package.xml
Conflicts:
	library/Respect/Validation/package.xml
2011-02-20 14:07:00 -03:00
Alexandre 47e8c47e9e Cleanup, fixed AbstractRelatedException inheritance problems. 2011-02-20 13:59:53 -03:00
Alexandre b13ef8f072 More compositing messages adjustments 2011-02-19 17:47:34 -02:00
Alexandre 45b4a4dfad Fixed composite exceptions 2011-02-18 23:07:14 -02:00
Alexandre Gomes Gaigalas 1e48eb3ee1 Changed test to work on 32bit systems 2011-02-18 11:00:25 -02:00
Alexandre 28603d74a3 Improved message compositing and iteration. Cleanup. 2011-02-18 01:08:46 -02:00
Alexandre 895ce93ed1 - Splitted up ValidationException into simple exceptions and composite exceptions
- Changed the string formater from sprintf to custom function. Exception parameters should be more readable now.
	- Several refactorings on the exception reporting model
	- Improved builders ( new v(array('int', 'positive', 'between'=>array(1,256))); is now possible, great for dependency injection.
	Note: There are nasty things on this commit. Duplicated code, orphan methods and such. Next step is a nice quality-wide refactoring.
2011-02-10 18:49:48 -02:00
Alexandre bf5ed1e64d Changes in the bootstrap, replaced SplClassLoader for a lighter implementation. 2011-02-09 18:39:32 -02:00
Alexandre 4e068bf204 -Messages are now imperative ("foo must be bar") instead of informative ("foo is not bar").
-Several improvements on the messaging system and error reporting, lots of refactored code.
-Validators can now be safely named $val->setName('My Field'), and that name will reflect on the validation message ("My Field must be bla bla bla" instead of "incorrect value" must be bla bla bla)
2011-02-08 20:10:58 -02:00
Alexandre Gomes Gaigalas 51ad2948ac Roadmap change 2011-02-08 10:18:49 -08:00
Alexandre 4fd6f282bf Prototype for ValidationException contexts (messages contextualized for forms, APIs, command line, translation, etc) 2011-02-07 15:21:58 -02:00
Alexandre 644d521663 Better docs, quick reference 2011-02-07 12:46:08 -02:00
Alexandre e46dc1d36c Hide exception messages on tests 2011-02-07 12:23:24 -02:00
Alexandre 822fd269f8 Better README, fixed bugs on AllOf and AlphaException 2011-02-07 12:22:30 -02:00
Alexandre 58c16154e4 Guess I woke up today a little obsessive. Sorted all the class declarations/methods/properties/namespace imports in alphabetic/visibility order. 2011-02-07 08:52:18 -02:00
Alexandre 4b4390eb31 Switched from textile to markdown 2011-02-06 23:35:35 -02:00
Alexandre c7db33ad54 Removed unstable files from master, see the develop branch https://github.com/Respect/Validation/tree/develop 2011-02-06 23:17:21 -02:00
Alexandre cd6449ff81 Using constants for template messages. 2011-02-06 23:12:41 -02:00
Alexandre 668a0cc3f4 README fix 2011-02-06 22:44:42 -02:00
Alexandre 6c0573e171 New README, fixes on positive and negative validator messages 2011-02-06 20:51:50 -02:00
Alexandre 8098321bcd A lot of refactoring, tests on ValidationException, improvements on AllOf::validate 2011-02-06 20:21:15 -02:00