web/lib/Zend/Barcode/Object/Code128.php
changeset 1230 68c69c656a2c
parent 807 877f952ae2bd
equal deleted inserted replaced
1229:5a6b6e770365 1230:68c69c656a2c
    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_Barcode
    16  * @package    Zend_Barcode
    17  * @subpackage Object
    17  * @subpackage Object
    18  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    20  * @version    $Id: Code25.php 20096 2010-01-06 02:05:09Z bkarwin $
    20  * @version    $Id: Code25.php 20096 2010-01-06 02:05:09Z bkarwin $
    21  */
    21  */
    22 
    22 
    23 /**
    23 /**
    33 /**
    33 /**
    34  * Class for generate Code128 barcode
    34  * Class for generate Code128 barcode
    35  *
    35  *
    36  * @category   Zend
    36  * @category   Zend
    37  * @package    Zend_Barcode
    37  * @package    Zend_Barcode
    38  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    38  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
    39  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    39  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    40  */
    40  */
    41 class Zend_Barcode_Object_Code128 extends Zend_Barcode_Object_ObjectAbstract
    41 class Zend_Barcode_Object_Code128 extends Zend_Barcode_Object_ObjectAbstract
    42 {
    42 {
    43     /**
    43     /**
   257         return true;
   257         return true;
   258     }
   258     }
   259 
   259 
   260     /**
   260     /**
   261      * Convert string to barcode string
   261      * Convert string to barcode string
       
   262      *
       
   263      * @param $string
   262      * @return array
   264      * @return array
   263      */
   265      */
   264     protected function _convertToBarcodeChars($string)
   266     protected function _convertToBarcodeChars($string)
   265     {
   267     {
   266         $string = (string) $string;
   268         $string = (string) $string;
   378         return $checksum;
   380         return $checksum;
   379     }
   381     }
   380 
   382 
   381     /**
   383     /**
   382      * Standard validation for most of barcode objects
   384      * Standard validation for most of barcode objects
       
   385      *
   383      * @param string $value
   386      * @param string $value
   384      * @param array  $options
   387      * @param array  $options
       
   388      * @return bool
   385      */
   389      */
   386     protected function _validateText($value, $options = array())
   390     protected function _validateText($value, $options = array())
   387     {
   391     {
   388         // @TODO: add code128 validator
   392         // @TODO: add code128 validator
   389         return true;
   393         return true;