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

Public Member Functions

 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

 _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
 
 $_characters
 
 $_checksum
 
 $_hasChecksum = true
 

Member Function Documentation

_code25 (   $value)
protected

Validates the checksum (Modulo 10) CODE25 implementation factor 3.

Parameters
string$valueThe barcode to validate
Returns
boolean
_gtin (   $value)
protected

Validates the checksum (Modulo 10) GTIN implementation factor 3.

Parameters
string$valueThe barcode to validate
Returns
boolean
_identcode (   $value)
protected

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

Parameters
string$valueThe barcode to validate
Returns
boolean
_postnet (   $value)
protected

Validates the checksum () POSTNET implementation.

Parameters
string$valueThe barcode to validate
Returns
boolean
checkChars (   $value)

Checks for allowed characters within the barcode.

Parameters
string$valueThe barcode to check for allowed characters
Returns
boolean

Implements Zend_Validate_Barcode_AdapterInterface.

checkLength (   $value)

Checks the length of a barcode.

Parameters
string$valueThe barcode to check for proper length
Returns
boolean

Implements Zend_Validate_Barcode_AdapterInterface.

checksum (   $value)

Validates the checksum.

Parameters
string$valueThe barcode to check the checksum for
Returns
boolean

Implements Zend_Validate_Barcode_AdapterInterface.

getCharacters ( )

Returns the allowed characters.

Returns
integer|string
getCheck ( )

Returns if barcode uses checksum.

Returns
boolean

Implements Zend_Validate_Barcode_AdapterInterface.

getChecksum ( )

Returns the checksum function name.

getLength ( )

Returns the allowed barcode length.

Returns
string
setCheck (   $check)

Sets the checksum validation.

Parameters
boolean$check
Returns
Zend_Validate_Barcode_AdapterAbstract

Implements Zend_Validate_Barcode_AdapterInterface.

Member Data Documentation

$_characters
protected
$_checksum
protected
$_hasChecksum = true
protected
$_length
protected