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

Class: Image_Barcode2_Driver_Upca

Source Location: /Image_Barcode2-0.2.3/Image/Barcode2/Driver/Upca.php

Class Overview

Image_Barcode2_Common
   |
   --Image_Barcode2_Driver_Upca

UPC-A


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2005 The PHP Group

Methods


Inherited Variables

Inherited Methods


Class Details

[line 51]
UPC-A

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_Barcode2 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

__construct (Constructor)   [line 105]

Image_Barcode2_Driver_Upca __construct( Image_Barcode2_Writer $writer)

Class constructor
  • Access: public

Overrides Image_Barcode2_Common::__construct() (Class constructor)

Parameters:

Image_Barcode2_Writer   $writer     Library to use.

[ Top ]

draw   [line 136]

resource draw( )

Draws a UPC-A image barcode

[ Top ]

validate   [line 119]

void validate( )

Validate barcode
  • Throws: Image_Barcode2_Exception
  • Access: public

[ Top ]


Documentation generated on Mon, 25 Feb 2013 13:00:05 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.