API Documentation

Validate/Barcode/AdapterAbstract.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Validate
version
$Id: Ean13.php 18028 2009-09-08 20:52:23Z thomas $
Classes
Zend_Validate_Barcode_AdapterAbstract

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Validate_Barcode_AdapterAbstract

Implements
Zend_Validate_Barcode_AdapterInterface
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Validate
Properties
$_length
$_characters
$_checksum
$_hasChecksum
Methods
checkLength
checkChars
checksum
getLength
getCharacters
getChecksum
getCheck
setCheck
_gtin
_identcode
_code25
_postnet

Description

Properties

$_characters

string $_characters = ''

Allowed barcode characters

Details

$_characters
string
visibility
protected
default
final
false
static
false

$_checksum

string|array $_checksum = ''

Callback to checksum function

Details

$_checksum
string|array
visibility
protected
default
final
false
static
false

$_hasChecksum

boolean $_hasChecksum = 'true'

Is a checksum value included?

Details

$_hasChecksum
boolean
visibility
protected
default
true
final
false
static
false

$_length

integer|array|string $_length = ''

Allowed barcode lengths

Details

$_length
integer|array|string
visibility
protected
default
final
false
static
false

Methods

_code25

_code25( string $value ) : boolean

Validates the checksum (Modulo 10) CODE25 implementation factor 3

Arguments
$value
string
The barcode to validate
Output
boolean
Details
visibility
protected
final
false
static
false

_gtin

_gtin( string $value ) : boolean

Validates the checksum (Modulo 10) GTIN implementation factor 3

Arguments
$value
string
The barcode to validate
Output
boolean
Details
visibility
protected
final
false
static
false

_identcode

_identcode( string $value ) : boolean

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

Arguments
$value
string
The barcode to validate
Output
boolean
Details
visibility
protected
final
false
static
false

_postnet

_postnet( string $value ) : boolean

Validates the checksum () POSTNET implementation

Arguments
$value
string
The barcode to validate
Output
boolean
Details
visibility
protected
final
false
static
false

checkChars

checkChars( string $value ) : boolean

Checks for allowed characters within the barcode

Arguments
$value
string
The barcode to check for allowed characters
Output
boolean
Details
visibility
public
final
false
static
false

checkLength

checkLength( string $value ) : boolean

Checks the length of a barcode

Arguments
$value
string
The barcode to check for proper length
Output
boolean
Details
visibility
public
final
false
static
false

checksum

checksum( string $value ) : boolean

Validates the checksum

Arguments
$value
string
The barcode to check the checksum for
Output
boolean
Details
visibility
public
final
false
static
false

getCharacters

getCharacters( ) : integer|string

Returns the allowed characters

Output
integer|string
Details
visibility
public
final
false
static
false

getCheck

getCheck( ) : boolean

Returns if barcode uses checksum

Output
boolean
Details
visibility
public
final
false
static
false

getChecksum

getChecksum( ) :

Returns the checksum function name

Details
visibility
public
final
false
static
false

getLength

getLength( ) : string

Returns the allowed barcode length

Output
string
Details
visibility
public
final
false
static
false

setCheck

setCheck( boolean $check ) : Zend_Validate_Barcode_AdapterAbstract

Sets the checksum validation

Arguments
$check
boolean
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.