Image_Barcode
[ class tree: Image_Barcode ] [ index: Image_Barcode ] [ all elements ]

Class: Image_Barcode_upca

Source Location: /Image_Barcode-1.1.3/Image/Barcode/upca.php

Class Overview

PEAR
   |
   --Image_Barcode
      |
      --Image_Barcode_upca

Image_Barcode_upca class


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2005 The PHP Group

Methods


Inherited Variables

Inherited Methods

Class: Image_Barcode

Image_Barcode::draw()
Draws a image barcode

Class Details

[line 50]
Image_Barcode_upca class

Package which provides a method to create UPC-A barcode using GD library.

Slightly Modified ean13.php to get upca.php I needed a way to print UPC-A bar codes on a PHP page. The Image_Barcode class seemed like the best way to do it, so I modified ean13 to print in the UPC-A format. Checked the bar code tables against some documentation below (no errors) and validated the changes with my trusty cue-cat. http://www.indiana.edu/~atmat/units/barcodes/bar_t4.htm



[ Top ]


Method Detail

draw   [line 141]

image &draw( string $text, [string $imgtype = 'png'])

Draws a UPC-A image barcode

Overrides Image_Barcode::draw() (Draws a image barcode)

Parameters:

string   $text     A text that should be in the image barcode
string   $imgtype     The image type that will be generated

[ Top ]


Documentation generated on Sat, 24 Mar 2012 06:00:05 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.