Public Member Functions | Data Fields | Protected Attributes

Zend_Validate_Barcode_Ean13 Class Reference

Inheritance diagram for Zend_Validate_Barcode_Ean13:
Zend_Validate_Abstract Zend_Validate_Interface

Public Member Functions

 isValid ($value)

Data Fields

const INVALID = 'invalid'
const INVALID_LENGTH = 'invalidLength'
const NOT_NUMERIC = 'ean13NotNumeric'

Protected Attributes

 $_messageTemplates

Detailed Description

Definition at line 36 of file Ean13.php.


Member Function Documentation

isValid ( value )

Defined by Zend_Validate_Interface

Returns true if and only if $value contains a valid barcode

Parameters:
string$value
Returns:
boolean

Implements Zend_Validate_Interface.

Definition at line 75 of file Ean13.php.


Field Documentation

$_messageTemplates [protected]
Initial value:
 array(
        self::INVALID        => "'%value%' is an invalid EAN-13 barcode",
        self::INVALID_LENGTH => "'%value%' should be 13 characters",
        self::NOT_NUMERIC    => "'%value%' should contain only numeric characters",
    )

Reimplemented from Zend_Validate_Abstract.

Definition at line 61 of file Ean13.php.

const INVALID = 'invalid'

Validation failure message key for when the value is an invalid barcode

Definition at line 42 of file Ean13.php.

const INVALID_LENGTH = 'invalidLength'

Validation failure message key for when the value is not 13 characters long

Definition at line 48 of file Ean13.php.

const NOT_NUMERIC = 'ean13NotNumeric'

Validation failure message key for when the value does not only contain numeric characters

Definition at line 54 of file Ean13.php.


The documentation for this class was generated from the following file: