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
Upce.php
Go to the documentation of this file.
1
<?php
25
#require_once 'Zend/Validate/Barcode/AdapterAbstract.php';
26
33
class
Zend_Validate_Barcode_Upce
extends
Zend_Validate_Barcode_AdapterAbstract
34
{
39
protected
$_length
= array(6, 7, 8);
40
45
protected
$_characters
=
'0123456789'
;
46
51
protected
$_checksum
=
'_gtin'
;
52
59
public
function
checkLength
(
$value
)
60
{
61
if
(strlen(
$value
) != 8) {
62
$this->
setCheck
(
false
);
63
}
else
{
64
$this->
setCheck
(
true
);
65
}
66
67
return
parent::checkLength(
$value
);
68
}
69
}
Zend_Validate_Barcode_Upce
Definition:
Upce.php:33
Zend_Validate_Barcode_Upce\checkLength
checkLength($value)
Definition:
Upce.php:59
Zend_Validate_Barcode_AdapterAbstract
Definition:
AdapterAbstract.php:33
Zend_Validate_Barcode_Upce\$_length
$_length
Definition:
Upce.php:39
Zend_Validate_Barcode_Upce\$_checksum
$_checksum
Definition:
Upce.php:51
$value
$value
Definition:
gender.phtml:16
Zend_Validate_Barcode_AdapterAbstract\setCheck
setCheck($check)
Definition:
AdapterAbstract.php:194
Zend_Validate_Barcode_Upce\$_characters
$_characters
Definition:
Upce.php:45