diff -r 000000000000 -r 4eba9c11703f web/Zend/Barcode/Object/Ean2.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/Zend/Barcode/Object/Ean2.php Mon Dec 13 18:29:26 2010 +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]; + } +}