Moodle  2.2.1
http://www.collinsharper.com
Zend_Validate_Barcode_AdapterAbstract Class Reference
Inheritance diagram for Zend_Validate_Barcode_AdapterAbstract:
Collaboration diagram for Zend_Validate_Barcode_AdapterAbstract:

Public Member Functions

 checkLength ($value)
 checkChars ($value)
 checksum ($value)
 getLength ()
 getCharacters ()
 getChecksum ()
 getCheck ()
 setCheck ($check)

Protected Member Functions

 _gtin ($value)
 _identcode ($value)
 _code25 ($value)
 _postnet ($value)

Protected Attributes

 $_length
 $_characters
 $_checksum
 $_hasChecksum = true

Detailed Description

Definition at line 33 of file AdapterAbstract.php.


Member Function Documentation

_code25 ( value) [protected]

Validates the checksum (Modulo 10) CODE25 implementation factor 3

Parameters:
string$valueThe barcode to validate
Returns:
boolean

Definition at line 267 of file AdapterAbstract.php.

_gtin ( value) [protected]

Validates the checksum (Modulo 10) GTIN implementation factor 3

Parameters:
string$valueThe barcode to validate
Returns:
boolean

Definition at line 207 of file AdapterAbstract.php.

_identcode ( value) [protected]

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

Parameters:
string$valueThe barcode to validate
Returns:
boolean

Definition at line 237 of file AdapterAbstract.php.

_postnet ( value) [protected]

Validates the checksum () POSTNET implementation

Parameters:
string$valueThe barcode to validate
Returns:
boolean

Definition at line 297 of file AdapterAbstract.php.

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.

Reimplemented in Zend_Validate_Barcode_Royalmail, and Zend_Validate_Barcode_Issn.

Definition at line 106 of file AdapterAbstract.php.

Here is the call graph for this function:

checkLength ( value)

Checks the length of a barcode

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

Implements Zend_Validate_Barcode_AdapterInterface.

Reimplemented in Zend_Validate_Barcode_Ean8, and Zend_Validate_Barcode_Upce.

Definition at line 66 of file AdapterAbstract.php.

Here is the call graph for this function:

checksum ( value)

Validates the checksum

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

Implements Zend_Validate_Barcode_AdapterInterface.

Reimplemented in Zend_Validate_Barcode_Issn.

Definition at line 137 of file AdapterAbstract.php.

Here is the call graph for this function:

Returns the allowed characters

Returns:
integer|string

Definition at line 164 of file AdapterAbstract.php.

Here is the caller graph for this function:

getCheck ( )

Returns if barcode uses checksum

Returns:
boolean

Implements Zend_Validate_Barcode_AdapterInterface.

Definition at line 183 of file AdapterAbstract.php.

Returns the checksum function name

Definition at line 173 of file AdapterAbstract.php.

Here is the caller graph for this function:

getLength ( )

Returns the allowed barcode length

Returns:
string

Definition at line 154 of file AdapterAbstract.php.

Here is the caller graph for this function:

setCheck ( check)

Sets the checksum validation

Parameters:
boolean$check
Returns:
Zend_Validate_Barcode_AdapterAbstract

Implements Zend_Validate_Barcode_AdapterInterface.

Definition at line 194 of file AdapterAbstract.php.

Here is the caller graph for this function:


Field Documentation

$_hasChecksum = true [protected]

Definition at line 58 of file AdapterAbstract.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations