Commit graph

12 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
Alexandre Gaigalas 1210b6f77a Removed license text from class files 2012-03-22 23:53:06 -03:00
Alexandre 10813d136e Licensing. 2011-03-13 11:50:47 -03:00
Alexandre 47e8c47e9e Cleanup, fixed AbstractRelatedException inheritance problems. 2011-02-20 13:59:53 -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 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 8098321bcd A lot of refactoring, tests on ValidationException, improvements on AllOf::validate 2011-02-06 20:21:15 -02:00
Alexandre (@alganet) 5830711f5a Several Improvements:
-Simplified defaultTemplates on Exceptions
	-Exceptions now can be iterated and recursively iterated
	-Messages built by RecursiveTreeIterator (SPL), faster an simpler
	-attribute, key and composite exceptions message plays nicer (no redundant messages)
2011-01-30 22:17:06 -02:00
Alexandre Gomes Gaigalas 896fe166c8 Small improvements 2010-12-07 11:37:07 -02:00
Alexandre Gomes Gaigalas 32c5fe4ce0 Refactoring on AbstractRelated, Call validator for validating inputs after passing them for a callback 2010-12-06 19:00:28 -02:00