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

Allows start and stop tag within checked chars

hasValidCharacters(string $value) : bool

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

Validates the checksum ()

royalmail(string $value) : bool

Parameters

$value

string

The barcode to validate

Returns

bool

Sets the allowed characters of this barcode

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

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

Parameters

$characters

int

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

 

$columns

$columns 

 

Allowed options for this adapter

$options : array
Inherited

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

$rows

$rows