Zend Framework

Allow Zend_Validate_Barcode to provide options to adapters

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major 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));

Activity

Hide
Thomas Weidner added a comment -

Reworked component actually within incubator. Therefor closing as fixed.

Show
Thomas Weidner added a comment - Reworked component actually within incubator. Therefor closing as fixed.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: