Validate/Barcode/Code93.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Validate  
Version
$Id$  

\Zend_Validate_Barcode_Code93

Package: Zend_Validate
Parent(s)
\Zend_Validate_Barcode_AdapterAbstract
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedstring $_characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ -.$/+%'
Allowed barcode characters
Default value'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ -.$/+%'Details
Type
string
>VPropertyprotectedarray $_check = array('0' => 0, '1' => 1, '2' => 2, '3' => 3, '4' => 4, '5' => 5, '6' => 6, '7' => 7, '8' => 8, '9' => 9, 'A' => 10, 'B' => 11, 'C' => 12, 'D' => 13, 'E' => 14, 'F' => 15, 'G' => 16, 'H' => 17, 'I' => 18, 'J' => 19, 'K' => 20, 'L' => 21, 'M' => 22, 'N' => 23, 'O' => 24, 'P' => 25, 'Q' => 26, 'R' => 27, 'S' => 28, 'T' => 29, 'U' => 30, 'V' => 31, 'W' => 32, 'X' => 33, 'Y' => 34, 'Z' => 35, '-' => 36, '.' => 37, ' ' => 38, '$' => 39, '/' => 40, '+' => 41, '%' => 42, '!' => 43, '"' => 44, '§' => 45, '&' => 46)
Note that the characters !"§& are only synonyms
Default valuearray('0' => 0, '1' => 1, '2' => 2, '3' => 3, '4' => 4, '5' => 5, '6' => 6, '7' => 7, '8' => 8, '9' => 9, 'A' => 10, 'B' => 11, 'C' => 12, 'D' => 13, 'E' => 14, 'F' => 15, 'G' => 16, 'H' => 17, 'I' => 18, 'J' => 19, 'K' => 20, 'L' => 21, 'M' => 22, 'N' => 23, 'O' => 24, 'P' => 25, 'Q' => 26, 'R' => 27, 'S' => 28, 'T' => 29, 'U' => 30, 'V' => 31, 'W' => 32, 'X' => 33, 'Y' => 34, 'Z' => 35, '-' => 36, '.' => 37, ' ' => 38, '$' => 39, '/' => 40, '+' => 41, '%' => 42, '!' => 43, '"' => 44, '§' => 45, '&' => 46)Details
Type
array
>VPropertyprotectedstring $_checksum = '_code93'
Checksum function
Default value'_code93'Details
Type
string
>VPropertyprotectedinteger $_length = -1
Allowed barcode lengths
Default value-1Details
Type
integer

Methods

methodpublic__construct() : void

Constructor

Sets check flag to false.
methodprotected_code93(string $value) : boolean

Validates the checksum (Modulo CK)

Parameters
NameTypeDescription
$valuestring

The barcode to validate

Returns
TypeDescription
boolean
Documentation was generated by phpDocumentor 2.2.0 .