Zend Framework  1.12
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_Validate_Barcode_Code93 Class Reference

Public Member Functions

 __construct ()
 Constructor.
 
- Public Member Functions inherited from Zend_Validate_Barcode_AdapterAbstract
 checkLength ($value)
 Checks the length of a barcode.
 
 checkChars ($value)
 Checks for allowed characters within the barcode.
 
 checksum ($value)
 Validates the checksum.
 
 getLength ()
 Returns the allowed barcode length.
 
 getCharacters ()
 Returns the allowed characters.
 
 getChecksum ()
 Returns the checksum function name.
 
 getCheck ()
 Returns if barcode uses checksum.
 
 setCheck ($check)
 Sets the checksum validation.
 

Protected Member Functions

 _code93 ($value)
 Validates the checksum (Modulo CK)
 
- Protected Member Functions inherited from Zend_Validate_Barcode_AdapterAbstract
 _gtin ($value)
 Validates the checksum (Modulo 10) GTIN implementation factor 3.
 
 _identcode ($value)
 Validates the checksum (Modulo 10) IDENTCODE implementation factors 9 and 4.
 
 _code25 ($value)
 Validates the checksum (Modulo 10) CODE25 implementation factor 3.
 
 _postnet ($value)
 Validates the checksum () POSTNET implementation.
 

Protected Attributes

 $_length = -1
 
 $_characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ -.$/+%'
 
 $_checksum = '_code93'
 
 $_check
 
- Protected Attributes inherited from Zend_Validate_Barcode_AdapterAbstract
 $_length
 
 $_characters
 
 $_checksum
 
 $_hasChecksum = true
 

Constructor & Destructor Documentation

__construct ( )

Constructor.

Sets check flag to false.

Returns
void

Member Function Documentation

_code93 (   $value)
protected

Validates the checksum (Modulo CK)

Parameters
string$valueThe barcode to validate
Returns
boolean

Member Data Documentation

$_characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ -.$/+%'
protected
$_check
protected
Initial value:
= 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,
)
$_checksum = '_code93'
protected
$_length = -1
protected