API Documentation

Barcode/Object/Upce.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Barcode
subpackage
Object
version
$Id: Upce.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Barcode_Object_Upce

Description

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.

Zend_Barcode_Object_Upce

Extends from
Zend_Barcode_Object_Ean13
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Barcode
Properties
$_parities
Methods
_getDefaultOptions
getText
_calculateBarcodeWidth
_prepareBarcode
_drawText
_validateText
getChecksum

Description

Class for generate UpcA barcode

Properties

$_parities

 $_parities = 'array'

Details

visibility
protected
default
array
final
false
static
false

Methods

_calculateBarcodeWidth

_calculateBarcodeWidth( ) : integer

Width of the barcode (in pixels)

Output
integer
Details
visibility
protected
final
false
static
false

_drawText

_drawText( ) : void

Partial function to draw text

Details
visibility
protected
final
false
static
false

_getDefaultOptions

_getDefaultOptions( ) : void

Default options for Postnet barcode

Details
visibility
protected
final
false
static
false

_prepareBarcode

_prepareBarcode( ) : array

Prepare array to draw barcode

Output
array
Details
visibility
protected
final
false
static
false

_validateText

_validateText( string $value, array $options = array ) :

Particular validation for Upce barcode objects (to suppress checksum character substitution)

Arguments
$value
string
$options
array
Details
visibility
protected
final
false
static
false

getChecksum

getChecksum( string $text ) : int

Get barcode checksum

Arguments
$text
string
Output
int
Details
visibility
public
final
false
static
false

getText

getText( ) : string

Retrieve text to encode

Output
string
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.