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: Upce.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 UpcA barcode |
34 * Class for generate UpcA 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_Upce extends Zend_Barcode_Object_Ean13 |
41 class Zend_Barcode_Object_Upce extends Zend_Barcode_Object_Ean13 |
42 { |
42 { |
43 |
43 |
186 } |
186 } |
187 |
187 |
188 /** |
188 /** |
189 * Particular validation for Upce barcode objects |
189 * Particular validation for Upce barcode objects |
190 * (to suppress checksum character substitution) |
190 * (to suppress checksum character substitution) |
|
191 * |
191 * @param string $value |
192 * @param string $value |
192 * @param array $options |
193 * @param array $options |
|
194 * @throws Zend_Barcode_Object_Exception |
193 */ |
195 */ |
194 protected function _validateText($value, $options = array()) |
196 protected function _validateText($value, $options = array()) |
195 { |
197 { |
196 $validator = new Zend_Validate_Barcode(array( |
198 $validator = new Zend_Validate_Barcode(array( |
197 'adapter' => 'upce', |
199 'adapter' => 'upce', |