History of Last Changes (for ApPHP DataValidator)
You can read here a brief list of last changes:
Version 2.2.0 (Feb 01, 2016)
Version 2.1.0 (Feb 02, 2014)
Version 2.0.3 (Jun 06, 2013)
Version 2.0.2 (Mar 11, 2013)
Version 2.0.1 (Nov 20, 2012)
Version 1.0.3 (Mar 05, 2013)
Version 1.0.2 (Apr 24, 2012)
Version 1.0.1 (Apr 15, 2012)
Version 2.2.0 (Feb 01, 2016)
- Fix bugs fixed
Version 2.1.0 (Feb 02, 2014)
- New Chain of Responsibility pattern is added to project (class Validator and classes inheriting ValidatorAnyType).
- New added methods to work with upper and lower case are added to ValidatorTypeString
- New added methods to handle exceptions from Validator in three ways (throw, write to file, write to array)
- Enh localization language can be set by constant in config.php or using method $validator->SetLanguage("fr");
- Fix bugs fixed
Version 2.0.3 (Jun 06, 2013)
- New method SetCanBeNullFlag($canBeNullFlag) is deprecated. Use IsRequired($requiredFlag) instead.
- Enh version check is made compatible with version higher then checked.
- Fix bugs fixed
Version 2.0.2 (Mar 11, 2013)
- New new validation type: oneOfSet (class ValidatorTypeOneOfSet).
- New versioning. Validator class current version can be got with method $validator->GetVersion(), major version can be checked with $validator->CheckMajorVersion($needed).
- New method $validator->GetErrorArrayIndexedByField(), which returns error array as array($fieldName => array(ValidatorError $error1, ValidatorError $error2)).
- Enh errors messages for strings are more specific: additional elements are added.
- Fix bugs fixed
Version 2.0.1 (Nov 20, 2012)
- New IP check
- New Phone number check. A cell phone can be checked optionally
- New Postcode check. Postcode can be checked specifically for a country or generally for any possible postcode
- New SSN check. American Social security number is checked
- New JSON parser. Data can be loaded and validated as JSON
- New XML parser. Data can be loaded and validated as XML
- Enh numeric precision check
- Enh a comma or a dot as decimal separator. If numeric is got as string, you can state what kind of separator you demand
- Enh HEX type. Now a HEX number can be checked for format, minimum or maximum value
- Enh any optional meta characters can be set as allowed (i.e. to check a login you can set non-space, non-pointing and add a meta character '_'. Then possible login can consist only of letters, digits and '_' )
- Enh check a string to any regular expression
- Enh allow of forbid Unicode for your string
- Fix bugs fixed
Version 1.0.3 (Mar 05, 2013)
- New new validation type: oneOfSet (class ValidatorTypeOneOfSet)
- New versioning
- New method $validator->GetErrorArrayIndexedByField()
- New class ValidatorException
- Fix bugs fixed
Version 1.0.2 (Apr 24, 2012)
- New class Validator obtained new getters
- Enh class DataContainer is not to be used by a user any more
- Fix bugs fixed
Version 1.0.1 (Apr 15, 2012)
- New new validation type: email
- Enh optimized validation routine
- Fix bugs fixed