[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Validate/Barcode/ -> AdapterAbstract.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 315 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 12 functions

  checkLength()
  checkChars()
  checksum()
  getLength()
  getCharacters()
  getChecksum()
  getCheck()
  setCheck()
  _gtin()
  _identcode()
  _code25()
  _postnet()

Functions
Functions that are not part of a class:

checkLength($value)   X-Ref
Checks the length of a barcode

param: string $value The barcode to check for proper length
return: boolean

checkChars($value)   X-Ref
Checks for allowed characters within the barcode

param: string $value The barcode to check for allowed characters
return: boolean

checksum($value)   X-Ref
Validates the checksum

param: string $value The barcode to check the checksum for
return: boolean

getLength()   X-Ref
Returns the allowed barcode length

return: string

getCharacters()   X-Ref
Returns the allowed characters

return: integer|string

getChecksum()   X-Ref
Returns the checksum function name


getCheck()   X-Ref
Returns if barcode uses checksum

return: boolean

setCheck($check)   X-Ref
Sets the checksum validation

param: boolean $check
return: Zend_Validate_Barcode_AdapterAbstract

_gtin($value)   X-Ref
Validates the checksum (Modulo 10)
GTIN implementation factor 3

param: string $value The barcode to validate
return: boolean

_identcode($value)   X-Ref
Validates the checksum (Modulo 10)
IDENTCODE implementation factors 9 and 4

param: string $value The barcode to validate
return: boolean

_code25($value)   X-Ref
Validates the checksum (Modulo 10)
CODE25 implementation factor 3

param: string $value The barcode to validate
return: boolean

_postnet($value)   X-Ref
Validates the checksum ()
POSTNET implementation

param: string $value The barcode to validate
return: boolean



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1