Source for file Barcode.php
Documentation is available at Barcode.php
/* vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2001 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 3.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/3_0.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Author: Marcelo Subtil Marcal <jason@unleashed.com.br> |
// +----------------------------------------------------------------------+
// $Id: Barcode.php,v 1.1.1.1 2002/11/28 19:28:34 jason Exp $
require_once("PEAR.php");
* The Image_Barcode class provides method to create barcode using GD library.
* @author Marcelo Subtil Marcal <jason@conectiva.com.br>
class Image_Barcode extends PEAR
* @param string $text A text that should be in the image barcode
* @param string $type The barcode type
* @param string $imgtype The image type that will be generated
* @return image The corresponding image barcode
* @author Marcelo Subtil Marcal <jason@conectiva.com.br>
function draw ($text, $type = 'int25', $imgtype = 'png') {
@include_once(" Image/Barcode/${type}.php" );
$classname = " Image_Barcode_${type}";
return PEAR ::raiseError (" Unable to include the Image/Barcode/${type}.php file" );
return PEAR ::raiseError (" Unable to find create method in '$classname' class" );
$obj->draw ($text, $imgtype);
Documentation generated on Mon, 11 Mar 2019 14:21:07 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|