Validate/Barcode/Ean8.php

Show: PublicProtectedPrivateinherited
Table of Contents
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.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Validate  
Version
$Id: Ean8.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Validate_Barcode_Ean8

Package: Zend\Validate
Parent(s)
\Zend_Validate_Barcode_AdapterAbstract
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedstring $_characters = '0123456789'
Allowed barcode characters
Default value'0123456789'Details
Type
string
>VPropertyprotectedstring $_checksum = '_gtin'
Checksum function
Default value'_gtin'Details
Type
string
>VPropertyprotectedboolean $_hasChecksum = true
inherited
Is a checksum value included?
Inherited from: \Zend_Validate_Barcode_AdapterAbstract::$$_hasChecksum
Default valuetrueDetails
Type
boolean
Inherited_from
\Zend_Validate_Barcode_AdapterAbstract::$$_hasChecksum  
>VPropertyprotectedinteger $_length = array(7, 8)
Allowed barcode lengths
Default valuearray(7, 8)Details
Type
integer

Methods

methodprotected_code25(string $value) : boolean
inherited

Validates the checksum (Modulo 10) CODE25 implementation factor 3

Inherited from: \Zend_Validate_Barcode_AdapterAbstract::_code25()
Parameters
NameTypeDescription
$valuestring

The barcode to validate

Returns
TypeDescription
boolean
methodprotected_gtin(string $value) : boolean
inherited

Validates the checksum (Modulo 10) GTIN implementation factor 3

Inherited from: \Zend_Validate_Barcode_AdapterAbstract::_gtin()
Parameters
NameTypeDescription
$valuestring

The barcode to validate

Returns
TypeDescription
boolean
methodprotected_identcode(string $value) : boolean
inherited

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

Inherited from: \Zend_Validate_Barcode_AdapterAbstract::_identcode()
Parameters
NameTypeDescription
$valuestring

The barcode to validate

Returns
TypeDescription
boolean
methodprotected_postnet(string $value) : boolean
inherited

Validates the checksum () POSTNET implementation

Inherited from: \Zend_Validate_Barcode_AdapterAbstract::_postnet()
Parameters
NameTypeDescription
$valuestring

The barcode to validate

Returns
TypeDescription
boolean
methodpubliccheckChars(string $value) : boolean
inherited

Checks for allowed characters within the barcode

Inherited from: \Zend_Validate_Barcode_AdapterAbstract::checkChars()
Parameters
NameTypeDescription
$valuestring

The barcode to check for allowed characters

Returns
TypeDescription
boolean
methodpubliccheckLength(string $value) : boolean

Overrides parent checkLength

Parameters
NameTypeDescription
$valuestring

Value

Returns
TypeDescription
boolean
methodpublicchecksum(string $value) : boolean
inherited

Validates the checksum

Inherited from: \Zend_Validate_Barcode_AdapterAbstract::checksum()
Parameters
NameTypeDescription
$valuestring

The barcode to check the checksum for

Returns
TypeDescription
boolean
methodpublicgetCharacters() : integer | string
inherited

Returns the allowed characters

Inherited from: \Zend_Validate_Barcode_AdapterAbstract::getCharacters()
Returns
TypeDescription
integer | string
methodpublicgetCheck() : boolean
inherited

Returns if barcode uses checksum

Inherited from: \Zend_Validate_Barcode_AdapterAbstract::getCheck()
Returns
TypeDescription
boolean
methodpublicgetChecksum() : void
inherited

Returns the checksum function name

Inherited from: \Zend_Validate_Barcode_AdapterAbstract::getChecksum()
methodpublicgetLength() : string
inherited

Returns the allowed barcode length

Inherited from: \Zend_Validate_Barcode_AdapterAbstract::getLength()
Returns
TypeDescription
string
methodpublicsetCheck(boolean $check) : \Zend_Validate_Barcode_AdapterAbstract
inherited

Sets the checksum validation

Inherited from: \Zend_Validate_Barcode_AdapterAbstract::setCheck()
Parameters
NameTypeDescription
$checkboolean
Returns
TypeDescription
\Zend_Validate_Barcode_AdapterAbstract
Documentation was generated by phpDocumentor 2.0.0a12.