web/lib/Zend/Barcode/Object/Identcode.php
author Nicolas Sauret <nicolas.sauret@iri.centrepompidou.fr>
Tue, 08 Apr 2014 13:23:54 +0200
changeset 1098 23200ef9c00a
parent 807 877f952ae2bd
child 1230 68c69c656a2c
permissions -rw-r--r--
Added tag V02.82 for changeset 059cd2938015

<?php
/**
 * Zend Framework
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://framework.zend.com/license/new-bsd
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@zend.com so we can send you a copy immediately.
 *
 * @category   Zend
 * @package    Zend_Barcode
 * @subpackage Object
 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 * @version    $Id: Identcode.php 24593 2012-01-05 20:35:02Z matthew $
 */

/**
 * @see Zend_Barcode_Object_Code25interleaved
 */
require_once 'Zend/Barcode/Object/Code25interleaved.php';

/**
 * @see Zend_Validate_Barcode
 */
require_once 'Zend/Validate/Barcode.php';

/**
 * Class for generate Identcode barcode
 *
 * @category   Zend
 * @package    Zend_Barcode
 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 */
class Zend_Barcode_Object_Identcode extends Zend_Barcode_Object_Code25interleaved
{

    /**
     * Default options for Identcode barcode
     * @return void
     */
    protected function _getDefaultOptions()
    {
        $this->_barcodeLength = 12;
        $this->_mandatoryChecksum = true;
    }

    /**
     * Retrieve text to display
     * @return string
     */
    public function getTextToDisplay()
    {
        return preg_replace('/([0-9]{2})([0-9]{3})([0-9]{3})([0-9]{3})([0-9])/',
                            '$1.$2 $3.$4 $5',
                            $this->getText());
    }

    /**
     * Check allowed characters
     * @param string $value
     * @return string
     * @throw Zend_Barcode_Object_Exception
     */
    public function validateText($value)
    {
        $this->_validateText($value, array('validator' => $this->getType()));
    }

    /**
     * Get barcode checksum
     *
     * @param  string $text
     * @return int
     */
    public function getChecksum($text)
    {
        $this->_checkText($text);
        $checksum = 0;

        for ($i = strlen($text); $i > 0; $i --) {
            $checksum += intval($text{$i - 1}) * (($i % 2) ? 4 : 9);
        }

        $checksum = (10 - ($checksum % 10)) % 10;

        return $checksum;
    }
}
PKČ^pAgS\rx, €theend-V01.10/metadataplayer/dailymotion.htmUTA)ŠPPKČ^pAdôŃ{N4 €Őtheend-V01.10/metadataplayer/docs/architecture.fr.mdUTA)ŠPPKČ^pAšŐ_Ê ›$0 €»theend-V01.10/metadataplayer/docs/data-api.fr.mdUTA)ŠPPKČ^pA™žACqÓ3 €9(theend-V01.10/metadataplayer/docs/integration.fr.mdUTA)ŠPPKČ^pAyŸŰ č 2 €/theend-V01.10/metadataplayer/docs/widget-api.fr.mdUTA)ŠPPKČ^pAáWWááÚ& €U;theend-V01.10/metadataplayer/index.htmUTA)ŠPPKČ^pAq=CČ«Ż6.6 €“=theend-V01.10/metadataplayer/json/ldt-dailymotion.jsonUTA)ŠPPKČ^pAuTAŃŻ‘.3 €«ítheend-V01.10/metadataplayer/json/ldt-jwplayer.jsonUTA)ŠPPKČ^pA wö!› dP. €ætheend-V01.10/metadataplayer/json/ldt-ogv.jsonUTA)ŠPPKČ^pA.śŽŻ9.2 €æ«theend-V01.10/metadataplayer/json/ldt-youtube.jsonUTA)ŠPPKČ^pAĘúYc*f2 €\theend-V01.10/metadataplayer/json/return-data.jsonUTA)ŠPPKČ^pAn“ÏK7û ) €–]theend-V01.10/metadataplayer/jwplayer.htmUTA)ŠPPKČ^pAZûłôÂr, €-btheend-V01.10/metadataplayer/libs/LAB.min.jsUTA)ŠPPKČ^pAĂ$} 8&2 €Rktheend-V01.10/metadataplayer/libs/ZeroClipboard.jsUTA)ŠPPKČ^pA;GéÉ4/3 €Äxtheend-V01.10/metadataplayer/libs/ZeroClipboard.swfUTA)ŠPPKČ^pAn#.ƒ22Ś8 €b}theend-V01.10/metadataplayer/libs/backbone-relational.jsUTA)ŠPPKČ^pAB"ŽĐ:ŁÏ- €T°theend-V01.10/metadataplayer/libs/backbone.jsUTA)ŠPPKČ^pAœdÄÍfŽG €ˆëtheend-V01.10/metadataplayer/libs/images/ui-bg_flat_0_aaaaaa_40x100.pngUTA)ŠPPKČ^pAY˜odČH €lìtheend-V01.10/metadataplayer/libs/images/ui-bg_flat_75_ffffff_40x100.pngUTA)ŠPPKČ^pAò;\wxH €Oítheend-V01.10/metadataplayer/libs/images/ui-bg_glass_55_fbf9ee_1x400.pngUTA)ŠPPKČ^pA‘«¶giH €Eîtheend-V01.10/metadataplayer/libs/images/ui-bg_glass_65_ffffff_1x400.pngUTA)ŠPPKČ^pAČۇmoH €+ïtheend-V01.10/metadataplayer/libs/images/ui-bg_glass_75_dadada_1x400.pngUTA)ŠPPKČ^pAš-nlnH €đtheend-V01.10/metadataplayer/libs/images/ui-bg_glass_75_e6e6e6_1x400.pngUTA)ŠPPKČ^pAžeńŁvwH €ńtheend-V01.10/metadataplayer/libs/images/ui-bg_glass_95_fef1ec_1x400.pngUTA)ŠPPKČ^pA,XIbeQ €śńtheend-V01.10/metadataplayer/libs/images/ui-bg_highlight-soft_75_cccccc_1x100.pngUTA)ŠPPKČ^pATxî(D €áòtheend-V01.10/metadataplayer/libs/images/ui-icons_222222_256x240.pngUTA)ŠPPKČ^pAü`Š»+D €„theend-V01.10/metadataplayer/libs/images/ui-icons_2e83ff_256x240.pngUTA)ŠPPKČ^pAȚ‘…n'D €*theend-V01.10/metadataplayer/libs/images/ui-icons_454545_256x240.pngUTA)ŠPPKČ^pAČè˜(D €Ì$theend-V01.10/metadataplayer/libs/images/ui-icons_888888_256x240.pngUTA)ŠPPKČ^pAžp.*D €o5theend-V01.10/metadataplayer/libs/images/ui-icons_cd0a0a_256x240.pngUTA)ŠPPKČ^pAƒY“eG­ˆ/ €Ftheend-V01.10/metadataplayer/libs/jquery-ui.cssUTA)ŠPPKČ^pAš†­ ŐÌ4/2 €Á]theend-V01.10/metadataplayer/libs/jquery-ui.min.jsUTA)ŠPPKČ^pATE-ńŹn/ €ÿ*theend-V01.10/metadataplayer/libs/jquery.min.jsUTA)ŠPPKČ^pAŚwÁșp: €őŹtheend-V01.10/metadataplayer/libs/jquery.mousewheel.min.jsUTA)ŠPPKČ^pA·I&ÉqD* € °theend-V01.10/metadataplayer/libs/json2.jsUTA)ŠPPKČ^pAÂJhe©„‹\- €”Ćtheend-V01.10/metadataplayer/libs/jwplayer.jsUTA)ŠPPKČ^pA‡?)ôŸÀ0- €Ąktheend-V01.10/metadataplayer/libs/mustache.jsUTA)ŠPPKČ^pAڇĂŰÛóU* €€ztheend-V01.10/metadataplayer/libs/paper.jsUTA)ŠPPKČ^pAŸâ˜ș», € Vtheend-V01.10/metadataplayer/libs/player.swfUTA)ŠPPKČ^pAÖdn=Âû<9 €theend-V01.10/metadataplayer/libs/popcorn-complete.min.jsUTA)ŠPPKČ^pATïÒxzb0 €ČÓtheend-V01.10/metadataplayer/libs/raphael-min.jsUTA)ŠPPKČ^pAd”–éyìy0 €6N theend-V01.10/metadataplayer/libs/record_mic.swfUTA)ŠPPKČ^pA€h°z[Ž3 €†È theend-V01.10/metadataplayer/libs/renkan-publish.jsUTA)ŠPPKČ^pAĄ ÁVì'. €Kæ theend-V01.10/metadataplayer/libs/swfobject.jsUTA)ŠPPKČ^pA}ïÒ )ÂO1 €ö theend-V01.10/metadataplayer/libs/tracemanager.jsUTA)ŠPPKČ^pAĆSőë23 €— theend-V01.10/metadataplayer/libs/underscore-min.jsUTA)ŠPPKČ^pA˜ę‰€– HD € theend-V01.10/metadataplayer/mashup/bab_files/mashup-local-html.jsonUTA)ŠPPKČ^pAìC†< ł > €"% theend-V01.10/metadataplayer/mashup/bab_files/mashup-local.xmlUTA)ŠPPKČ^pA+ϟ1š íH9 €Ą, theend-V01.10/metadataplayer/mashup/bab_files/mashup.jsonUTA)ŠPPKČ^pAńâRX!8 €«6 theend-V01.10/metadataplayer/mashup/bab_files/mashup.xmlUTA)ŠPPKČ^pAšyĘ%“€ƒ„@ €7> theend-V01.10/metadataplayer/mashup/bab_files/player_bab_ldt.swfUTA)ŠPPKČ^pAÀ&Û?‰I3 €Aă theend-V01.10/metadataplayer/mashup/fonts/DINBd.ttfUTA)ŠPPKČ^pAÿHMû>č$±3 €êl theend-V01.10/metadataplayer/mashup/fonts/DINRg.ttfUTA)ŠPPKČ^pAZŠú!’ê6 €’& theend-V01.10/metadataplayer/mashup/img/background.pngUTA)ŠPPKČ^pAșEì»R¶1 €‘) theend-V01.10/metadataplayer/mashup/img/barbg.pngUTA)ŠPPKČ^pA芑&’5 €K, theend-V01.10/metadataplayer/mashup/img/mashupbar.pngUTA)ŠPPKČ^pA~‡~l{« 1 €čœ theend-V01.10/metadataplayer/mashup/img/title.pngUTA)ŠPPKČ^pAšŹ/™7g , €œÆ theend-V01.10/metadataplayer/mashup/moon.htmUTA)ŠPPKČ^pAŐh‰3 €6Ë theend-V01.10/metadataplayer/mashup/moon/apollo.jpgUTA)ŠPPK;;Ÿ)Ò