Definition at line 33 of file Issn.php.
◆ _issn()
Validates the checksum () ISSN implementation (reversed mod11)
- Parameters
-
string | $value | The barcode to validate |
- Returns
- boolean
Definition at line 94 of file Issn.php.
96 $checksum = substr(
$value, -1, 1);
105 $check += (
$token * $multi);
110 $check = 11 - $check;
111 if ($check == $checksum) {
113 }
else if (($check == 10) && ($checksum ==
'X')) {
◆ checkChars()
◆ checksum()
Validates the checksum
- Parameters
-
string | $value | The barcode to check the checksum for |
- Returns
- boolean
Implements Zend_Validate_Barcode_AdapterInterface.
Definition at line 76 of file Issn.php.
79 $this->_checksum =
'_issn';
81 $this->_checksum =
'_gtin';
84 return parent::checksum(
$value);
◆ $_characters
$_characters = '0123456789X' |
|
protected |
◆ $_checksum
◆ $_length
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Validate/Barcode/Issn.php