Commit graph

21 commits

Author SHA1 Message Date
Graham Campbell ae056920b4 PSR-4 autoloading 2014-07-12 20:20:43 +01:00
nickl- cb5d578c69 Whitespace fixes only 2013-01-25 05:18:02 +02:00
Henrique Moody 6c007df1d1 Fixed coding standards.
Coding standards must be follow PSR-1 and PSR-2.
2013-01-14 19:55:03 -02:00
Luís Otávio Cobucci Oblonczyk 3e7fd8d9e5 Typo fix 2013-01-14 14:11:51 -02:00
Luís Otávio Cobucci Oblonczyk 7014d5b74a Method renamed 2013-01-14 14:08:38 -02:00
Luís Otávio Cobucci Oblonczyk e08212ed17 Fix for 32bit integers 2013-01-14 12:35:04 -02:00
Luís Otávio Cobucci Oblonczyk 86f91ad978 Implemented IP range validation (#95) 2013-01-09 12:48:11 -02:00
Alexandre Gaigalas 1210b6f77a Removed license text from class files 2012-03-22 23:53:06 -03:00
Alexandre Gaigalas cf1fc85caa Fixed lots of tests, improved their clarity a lot. Fixed also OneOf, Key and Each validators for some edge cases 2011-10-05 21:07:15 -03:00
Alexandre 10813d136e Licensing. 2011-03-13 11:50:47 -03: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 Gomes Gaigalas fa11c79339 Namespace use cleanup 2010-12-06 17:31:50 -02:00
Alexandre Gomes Gaigalas 9a16edf053 Moved assert() to AbstractRule, improved extensibility for rules moving Exception creation to createException() 2010-12-06 17:02:21 -02:00
Alexandre Gomes Gaigalas 92d7c1e919 New Each validator. Removed Traversable and refactored Arr. Moved check() to AbstractRule, just the rules that need to overload it now implement it. 2010-12-06 16:30:56 -02:00
Alexandre Gomes Gaigalas 248fbdcf4f More stable Exceptions API 2010-12-03 19:36:46 -02:00
Alexandre Gomes Gaigalas 7c889b2d4b Changes on the Exception model 2010-12-02 22:23:02 -02:00
Alexandre Gomes Gaigalas 42999f796a Very unstable commit. Lot of changes to the exception model. 2010-12-02 19:04:10 -02:00
Alexandre Gomes Gaigalas 2408730f48 Changed the Exceptions to Match Rules names 2010-11-30 13:36:04 -02:00
Alexandre Gomes Gaigalas 1d7a721298 Faster validation for compositing rules, new check() method for validators 2010-10-18 07:15:44 -02:00
Alexandre Gomes Gaigalas bc63da4e0e Major refactoring on the validation exceptions and messages. 2010-10-18 06:18:46 -02:00
Alexandre Gomes Gaigalas f18d700b9f New validators for numbers (digits, float, hexa, etc), alpha, regex, generic between, ip addresses. Improvements on several existent validators. 2010-10-18 02:26:02 -02:00