Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Validator / Barcode / Identcode.php
blob8db7cce8980557d63a23de7db39d04a0bd261d69
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Validator\Barcode;
12 class Identcode extends AbstractAdapter
14 /**
15 * Allowed barcode lengths
16 * @var int
18 protected $length = 12;
20 /**
21 * Allowed barcode characters
22 * @var string
24 protected $characters = '0123456789';
26 /**
27 * Checksum function
28 * @var string
30 protected $checksum = 'identcode';
32 /**
33 * Constructor for this barcode adapter
35 public function __construct()
37 $this->setLength(12);
38 $this->setCharacters('0123456789');
39 $this->setChecksum('identcode');