web/lib/Zend/Validate/Barcode/AdapterInterface.php
changeset 64 162c1de6545a
parent 19 1c2f13fd785c
child 68 ecaf28ffe26e
equal deleted inserted replaced
63:5b37998e522e 64:162c1de6545a
       
     1 <?php
       
     2 /**
       
     3  * Zend Framework
       
     4  *
       
     5  * LICENSE
       
     6  *
       
     7  * This source file is subject to the new BSD license that is bundled
       
     8  * with this package in the file LICENSE.txt.
       
     9  * It is also available through the world-wide-web at this URL:
       
    10  * http://framework.zend.com/license/new-bsd
       
    11  * If you did not receive a copy of the license and are unable to
       
    12  * obtain it through the world-wide-web, please send an email
       
    13  * to license@zend.com so we can send you a copy immediately.
       
    14  *
       
    15  * @category   Zend
       
    16  * @package    Zend_Validate
       
    17  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
       
    18  * @license    http://framework.zend.com/license/new-bsd     New BSD License
       
    19  * @version    $Id: AdapterInterface.php 20785 2010-01-31 09:43:03Z mikaelkael $
       
    20  */
       
    21 
       
    22 /**
       
    23  * @category   Zend
       
    24  * @package    Zend_Validate
       
    25  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
       
    26  * @license    http://framework.zend.com/license/new-bsd     New BSD License
       
    27  */
       
    28 interface Zend_Validate_Barcode_AdapterInterface
       
    29 {
       
    30     /**
       
    31      * Checks the length of a barcode
       
    32      *
       
    33      * @param  string $value  The barcode to check for proper length
       
    34      * @return boolean
       
    35      */
       
    36     public function checkLength($value);
       
    37 
       
    38     /**
       
    39      * Checks for allowed characters within the barcode
       
    40      *
       
    41      * @param  string $value The barcode to check for allowed characters
       
    42      * @return boolean
       
    43      */
       
    44     public function checkChars($value);
       
    45 
       
    46     /**
       
    47      * Validates the checksum
       
    48      *
       
    49      * @param string $value The barcode to check the checksum for
       
    50      * @return boolean
       
    51      */
       
    52     public function checksum($value);
       
    53 
       
    54     /**
       
    55      * Returns if barcode uses a checksum
       
    56      *
       
    57      * @return boolean
       
    58      */
       
    59     public function getCheck();
       
    60 
       
    61     /**
       
    62      * Sets the checksum validation
       
    63      *
       
    64      * @param  boolean $check
       
    65      * @return Zend_Validate_Barcode_Adapter Provides fluid interface
       
    66      */
       
    67     public function setCheck($check);
       
    68 }