Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.9.4
-
Fix Version/s: 1.10.0
-
Component/s: Zend_Validate
-
Labels:None
Description
Current implementation of Zend_Validate_Barcode doesn't allow to provide options to a specific barcode validator:
$validator = new Zend_Validate_Barcode('upc');
Even if a Zend_Config (but not an array!) is allowed, only the barcode type option is used.
To create new validators (Code39, Code25...) that, for example, can contain (or not) a checksum and use them with Zend_Validate_Barcode, it should interessant to allow to set options.
$validator = new Zend_Validate_Barcode(array('barcode' => 'code25', 'withChecksum' => false));
Reworked component actually within incubator. Therefor closing as fixed.