web/lib/Zend/Validate/Barcode.php
changeset 1230 68c69c656a2c
parent 807 877f952ae2bd
equal deleted inserted replaced
1229:5a6b6e770365 1230:68c69c656a2c
    12  * obtain it through the world-wide-web, please send an email
    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.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_Validate
    16  * @package    Zend_Validate
    17  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    17  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    18  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @version    $Id: Barcode.php 24593 2012-01-05 20:35:02Z matthew $
    19  * @version    $Id$
    20  */
    20  */
    21 
    21 
    22 /**
    22 /**
    23  * @see Zend_Validate_Abstract
    23  * @see Zend_Validate_Abstract
    24  */
    24  */
    30 require_once 'Zend/Loader.php';
    30 require_once 'Zend/Loader.php';
    31 
    31 
    32 /**
    32 /**
    33  * @category   Zend
    33  * @category   Zend
    34  * @package    Zend_Validate
    34  * @package    Zend_Validate
    35  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    35  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
    36  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    36  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    37  */
    37  */
    38 class Zend_Validate_Barcode extends Zend_Validate_Abstract
    38 class Zend_Validate_Barcode extends Zend_Validate_Abstract
    39 {
    39 {
    40     const INVALID        = 'barcodeInvalid';
    40     const INVALID        = 'barcodeInvalid';
    75     /**
    75     /**
    76      * Generates the standard validator object
    76      * Generates the standard validator object
    77      *
    77      *
    78      * @param  string|Zend_Config|
    78      * @param  string|Zend_Config|
    79      *         Zend_Validate_Barcode_BarcodeAdapter $adapter Barcode adapter to use
    79      *         Zend_Validate_Barcode_BarcodeAdapter $adapter Barcode adapter to use
    80      * @return void
       
    81      * @throws Zend_Validate_Exception
    80      * @throws Zend_Validate_Exception
    82      */
    81      */
    83     public function __construct($adapter)
    82     public function __construct($adapter)
    84     {
    83     {
    85         if ($adapter instanceof Zend_Config) {
    84         if ($adapter instanceof Zend_Config) {
   124     /**
   123     /**
   125      * Sets a new barcode adapter
   124      * Sets a new barcode adapter
   126      *
   125      *
   127      * @param  string|Zend_Validate_Barcode $adapter Barcode adapter to use
   126      * @param  string|Zend_Validate_Barcode $adapter Barcode adapter to use
   128      * @param  array  $options Options for this adapter
   127      * @param  array  $options Options for this adapter
   129      * @return void
   128      * @return $this
   130      * @throws Zend_Validate_Exception
   129      * @throws Zend_Validate_Exception
   131      */
   130      */
   132     public function setAdapter($adapter, $options = null)
   131     public function setAdapter($adapter, $options = null)
   133     {
   132     {
   134         $adapter = ucfirst(strtolower($adapter));
   133         $adapter = ucfirst(strtolower($adapter));