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

Class: Image_Barcode_ean8

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

Class Overview

PEAR
   |
   --Image_Barcode
      |
      --Image_Barcode_ean8

Image_Barcode_ean8 class


Author(s):

  • Tobias Frost <tobi at coldtobi.de> , based on EAN13 code by Didier Fournout <didier.fournout at nyc.fr>

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 43]
Image_Barcode_ean8 class

Package which provides a method to create EAN 13 barcode using GD library.



[ Top ]


Method Detail

draw   [line 135]

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

Draws a EAN 8 image barcode
  • Return: The corresponding EAN8 image barcode
  • Author: Tobias Frost tobi@coldtobi.de based on the EAN13 code by Didier Fournout <didier.fournout@nyc.fr>
  • Todo: Check if $text is number and len=8
  • Access: public

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 Mon, 11 Mar 2019 15:47:51 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.