ZF-8101: Allow Zend_Validate_Barcode to provide options to adapters


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.