category Zend
package Zend_Validate
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_Validate_Barcode_AdapterAbstract

 Methods

Constructor

__construct() 

Sets check flag to false.

Checks for allowed characters within the barcode

checkChars(string $value) : boolean
Inherited
inherited_from \Zend_Validate_Barcode_AdapterInterface::checkChars()

Parameters

$value

string

The barcode to check for allowed characters

Returns

boolean

Checks the length of a barcode

checkLength(string $value) : boolean
Inherited
inherited_from \Zend_Validate_Barcode_AdapterInterface::checkLength()

Parameters

$value

string

The barcode to check for proper length

Returns

boolean

Validates the checksum

checksum(string $value) : boolean
Inherited
inherited_from \Zend_Validate_Barcode_AdapterInterface::checksum()

Parameters

$value

string

The barcode to check the checksum for

Returns

boolean

Returns the allowed characters

getCharacters() : integer | string
Inherited

Returns

integerstring

Returns if barcode uses checksum

getCheck() : boolean
Inherited
inherited_from \Zend_Validate_Barcode_AdapterInterface::getCheck()

Returns

boolean

Returns the checksum function name

getChecksum() 
Inherited

Returns the allowed barcode length

getLength() : string
Inherited

Returns

string

Sets the checksum validation

setCheck(boolean $check) : \Zend_Validate_Barcode_AdapterAbstract
Inherited
inherited_from \Zend_Validate_Barcode_AdapterInterface::setCheck()

Parameters

$check

boolean

Returns

\Zend_Validate_Barcode_AdapterAbstract

Validates the checksum (Modulo 10) CODE25 implementation factor 3

_code25(string $value) : boolean
Inherited

Parameters

$value

string

The barcode to validate

Returns

boolean

Validates the checksum (Modulo CK)

_code93(string $value) : boolean

Parameters

$value

string

The barcode to validate

Returns

boolean

Validates the checksum (Modulo 10) GTIN implementation factor 3

_gtin(string $value) : boolean
Inherited

Parameters

$value

string

The barcode to validate

Returns

boolean

Validates the checksum (Modulo 10) IDENTCODE implementation factors 9 and 4

_identcode(string $value) : boolean
Inherited

Parameters

$value

string

The barcode to validate

Returns

boolean

Validates the checksum () POSTNET implementation

_postnet(string $value) : boolean
Inherited

Parameters

$value

string

The barcode to validate

Returns

boolean

 Properties

 

Allowed barcode characters

$_characters : string

Default

'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ -.$/+%'
inherited_from \Zend_Validate_Barcode_AdapterAbstract::_characters
 

Allowed barcode characters

$_characters : string

Default

 

Note that the characters !"§& are only synonyms

$_check : array

Default

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 function

$_checksum : string

Default

'_code93'
inherited_from \Zend_Validate_Barcode_AdapterAbstract::_checksum
 

Callback to checksum function

$_checksum : string | array

Default

 

Is a checksum value included?

$_hasChecksum : boolean

Default

true
 

Allowed barcode lengths

$_length : integer

Default

-1
inherited_from \Zend_Validate_Barcode_AdapterAbstract::_length
 

Allowed barcode lengths

$_length : integer | array | string

Default