Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
zendframework1
library
Zend
Validate
Barcode
Ean8.php
Go to the documentation of this file.
1
<?php
25
#require_once 'Zend/Validate/Barcode/AdapterAbstract.php';
26
33
class
Zend_Validate_Barcode_Ean8
extends
Zend_Validate_Barcode_AdapterAbstract
34
{
39
protected
$_length
= array(7, 8);
40
45
protected
$_characters
=
'0123456789'
;
46
51
protected
$_checksum
=
'_gtin'
;
52
59
public
function
checkLength
(
$value
)
60
{
61
if
(strlen(
$value
) == 7) {
62
$this->
setCheck
(
false
);
63
}
else
{
64
$this->
setCheck
(
true
);
65
}
66
67
return
parent::checkLength(
$value
);
68
}
69
}
Zend_Validate_Barcode_Ean8\$_checksum
$_checksum
Definition:
Ean8.php:51
Zend_Validate_Barcode_AdapterAbstract
Definition:
AdapterAbstract.php:33
$value
$value
Definition:
gender.phtml:16
Zend_Validate_Barcode_AdapterAbstract\setCheck
setCheck($check)
Definition:
AdapterAbstract.php:194
Zend_Validate_Barcode_Ean8\$_length
$_length
Definition:
Ean8.php:39
Zend_Validate_Barcode_Ean8\checkLength
checkLength($value)
Definition:
Ean8.php:59
Zend_Validate_Barcode_Ean8\$_characters
$_characters
Definition:
Ean8.php:45
Zend_Validate_Barcode_Ean8
Definition:
Ean8.php:33