diff -r 5b37998e522e -r 162c1de6545a web/lib/Zend/Barcode/Object/Ean2.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/Zend/Barcode/Object/Ean2.php Fri Mar 11 15:05:35 2011 +0100 @@ -0,0 +1,65 @@ + array('A','A'), + 1 => array('A','B'), + 2 => array('B','A'), + 3 => array('B','B') + ); + + /** + * Default options for Ean2 barcode + * @return void + */ + protected function _getDefaultOptions() + { + $this->_barcodeLength = 2; + } + + protected function _getParity($i) + { + $modulo = $this->getText() % 4; + return $this->_parities[$modulo][$i]; + } +}