Methods

Constructor for this barcode adapter

__construct() 

Returns the allowed characters

getCharacters() : int | string | array
Inherited

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

Returns

intstringarray

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

hasValidCharacters(string $value) : bool

see \Zend\Validator\Barcode.AbstractAdapter::checkChars()

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

 Properties