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

Class: Image_Barcode2_Driver_Upce

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

Class Overview

Image_Barcode2_Common
   |
   --Image_Barcode2_Driver_Upce

UPC-E


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2012 The PHP Group

Methods


Inherited Variables

Inherited Methods


Class Details

[line 48]
UPC-E

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

Slightly Modified Upca.php to get Upce.php I needed a way to print UPC-E bar codes on a PHP page. The Image_Barcode2 class seemed like the best way to do it, so I modified UPC-A to print in the UPC-E format. Checked the bar code tables against some documentation below (no errors) and validated the changes with my phone app "Barcode Scanner"



[ Top ]


Method Detail

__construct (Constructor)   [line 115]

Image_Barcode2_Driver_Upce __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 145]

resource draw( )

Draws a UPC-E image barcode

[ Top ]

validate   [line 129]

void validate( )

Validate barcode
  • Throws: Image_Barcode2_Exception
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:53:03 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.