category Zend
package Zend_Validator

 Methods

Constructor for this barcode adapter

__construct() 

Returns the allowed characters

getCharacters() : integer | string | array
Inherited

inherited_from \Zend\Validator\Barcode\AbstractAdapter::getCharacters()

Returns

integerstringarray

Returns the checksum function name

getChecksum() : bool
Inherited

inherited_from \Zend\Validator\Barcode\AbstractAdapter::getChecksum()

Returns

bool

Returns the allowed barcode length

getLength() : int | array
Inherited

inherited_from \Zend\Validator\Barcode\AbstractAdapter::getLength()

Returns

intarray

Checks for allowed characters within the barcode

hasValidCharacters(string $value) : bool
Inherited

inherited_from \Zend\Validator\Barcode\AbstractAdapter::hasValidCharacters()

Parameters

$value

string

The barcode to check for allowed characters

Returns

bool

Validates the checksum

hasValidChecksum(string $value) : bool
Inherited

inherited_from \Zend\Validator\Barcode\AbstractAdapter::hasValidChecksum()

Parameters

$value

string

The barcode to check the checksum for

Returns

bool

Checks the length of a barcode

hasValidLength(string $value) : bool
Inherited

inherited_from \Zend\Validator\Barcode\AbstractAdapter::hasValidLength()

Parameters

$value

string

The barcode to check for proper length

Returns

bool

Sets the checksum validation, if no value is given, the actual setting is returned

useChecksum(bool $check) : \Zend\Validator\Barcode\AbstractAdapter | bool
Inherited

inherited_from \Zend\Validator\Barcode\AbstractAdapter::useChecksum()

Parameters

$check

bool

Returns

Validates the checksum (Modulo 10) CODE25 implementation factor 3

code25(string $value) : bool
Inherited

inherited_from \Zend\Validator\Barcode\AbstractAdapter::code25()

Parameters

$value

string

The barcode to validate

Returns

bool

Validates the checksum (Modulo 10) GTIN implementation factor 3

gtin(string $value) : bool
Inherited

inherited_from \Zend\Validator\Barcode\AbstractAdapter::gtin()

Parameters

$value

string

The barcode to validate

Returns

bool

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

identcode(string $value) : bool
Inherited

inherited_from \Zend\Validator\Barcode\AbstractAdapter::identcode()

Parameters

$value

string

The barcode to validate

Returns

bool

Validates the checksum () POSTNET implementation

postnet(string $value) : bool
Inherited

inherited_from \Zend\Validator\Barcode\AbstractAdapter::postnet()

Parameters

$value

string

The barcode to validate

Returns

bool

Sets the allowed characters of this barcode

setCharacters(integer $characters) : \Zend\Validator\Barcode\AbstractAdapter
Inherited

inherited_from \Zend\Validator\Barcode\AbstractAdapter::setCharacters()

Parameters

$characters

integer

Returns

Sets the checksum validation method

setChecksum(\Zend\Validator\Barcode\callable $checksum) : \Zend\Validator\Barcode\AbstractAdapter
Inherited

inherited_from \Zend\Validator\Barcode\AbstractAdapter::setChecksum()

Parameters

$checksum

\Zend\Validator\Barcode\callable

Checksum method to call

Returns

Sets the length of this barcode

setLength(int | array $length) : \Zend\Validator\Barcode\AbstractAdapter
Inherited

inherited_from \Zend\Validator\Barcode\AbstractAdapter::setLength()

Parameters

$length

intarray

Returns

 Properties

 

Allowed barcode characters

$characters : string

 

Checksum function

$checksum : string

 

Allowed barcode lengths

$length : integer

 

Allowed options for this adapter

$options : array
Inherited

inherited_from \Zend\Validator\Barcode\AbstractAdapter::$$options