equal
deleted
inserted
replaced
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Barcode |
16 * @package Zend_Barcode |
17 * @subpackage Object |
17 * @subpackage Object |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id: Ean8.php 24593 2012-01-05 20:35:02Z matthew $ |
20 * @version $Id$ |
21 */ |
21 */ |
22 |
22 |
23 /** |
23 /** |
24 * @see Zend_Barcode_Object_Ean13 |
24 * @see Zend_Barcode_Object_Ean13 |
25 */ |
25 */ |
33 /** |
33 /** |
34 * Class for generate Ean8 barcode |
34 * Class for generate Ean8 barcode |
35 * |
35 * |
36 * @category Zend |
36 * @category Zend |
37 * @package Zend_Barcode |
37 * @package Zend_Barcode |
38 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
38 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
39 * @license http://framework.zend.com/license/new-bsd New BSD License |
39 * @license http://framework.zend.com/license/new-bsd New BSD License |
40 */ |
40 */ |
41 class Zend_Barcode_Object_Ean8 extends Zend_Barcode_Object_Ean13 |
41 class Zend_Barcode_Object_Ean8 extends Zend_Barcode_Object_Ean13 |
42 { |
42 { |
43 |
43 |
148 } |
148 } |
149 |
149 |
150 /** |
150 /** |
151 * Particular validation for Ean8 barcode objects |
151 * Particular validation for Ean8 barcode objects |
152 * (to suppress checksum character substitution) |
152 * (to suppress checksum character substitution) |
|
153 * |
153 * @param string $value |
154 * @param string $value |
154 * @param array $options |
155 * @param array $options |
|
156 * @throws Zend_Barcode_Object_Exception |
155 */ |
157 */ |
156 protected function _validateText($value, $options = array()) |
158 protected function _validateText($value, $options = array()) |
157 { |
159 { |
158 $validator = new Zend_Validate_Barcode(array( |
160 $validator = new Zend_Validate_Barcode(array( |
159 'adapter' => 'ean8', |
161 'adapter' => 'ean8', |