API Documentation

Barcode.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Barcode
version
$Id: Barcode.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Barcode

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Barcode

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Barcode
Methods
factory
makeBarcode
makeRenderer
render
draw
setBarcodeFont

Description

Class for generate Barcode

Methods

draw

draw( string $barcode, string $renderer, array $barcodeConfig = array, array $rendererConfig = array ) : mixed

Proxy to renderer draw() method

Arguments
$barcode
string
| Zend_Barcode_Object | array | Zend_Config $barcode
$renderer
string
| Zend_Barcode_Renderer $renderer
$barcodeConfig
array
| Zend_Config $barcodeConfig
$rendererConfig
array
| Zend_Config $rendererConfig
Output
mixed
Details
visibility
public
final
false
static
true

factory

factory( mixed $barcode, mixed $renderer = image, mixed $barcodeConfig = array, mixed $rendererConfig = array, boolean $automaticRenderError = true ) : Zend_Barcode

Factory for Zend_Barcode classes.

First argument may be a string containing the base of the adapter class name, e.g. 'int25' corresponds to class Zend_Barcode_Object_Int25. This is case-insensitive.

First argument may alternatively be an object of type Zend_Config. The barcode class base name is read from the 'barcode' property. The barcode config parameters are read from the 'params' property.

Second argument is optional and may be an associative array of key-value pairs. This is used as the argument to the barcode constructor.

If the first argument is of type Zend_Config, it is assumed to contain all parameters, and the second argument is ignored.

Arguments
$barcode
mixed
String name of barcode class, or Zend_Config object.
$renderer
mixed
String name of renderer class
$barcodeConfig
mixed
OPTIONAL; an array or Zend_Config object with barcode parameters.
$rendererConfig
mixed
OPTIONAL; an array or Zend_Config object with renderer parameters.
$automaticRenderError
boolean
OPTIONAL; set the automatic rendering of exception
Output
Zend_Barcode
Details
visibility
public
final
false
static
true
throws

makeBarcode

makeBarcode( mixed $barcode, mixed $barcodeConfig = array ) : Zend_Barcode_Object

Barcode Constructor

Arguments
$barcode
mixed
String name of barcode class, or Zend_Config object.
$barcodeConfig
mixed
OPTIONAL; an array or Zend_Config object with barcode parameters.
Output
Zend_Barcode_Object
Details
visibility
public
final
false
static
true

makeRenderer

makeRenderer( mixed $renderer = image, mixed $rendererConfig = array ) : Zend_Barcode_Renderer

Renderer Constructor

Arguments
$renderer
mixed
String name of renderer class, or Zend_Config object.
$rendererConfig
mixed
OPTIONAL; an array or Zend_Config object with renderer parameters.
Output
Zend_Barcode_Renderer
Details
visibility
public
final
false
static
true

render

render( string $barcode, string $renderer, array $barcodeConfig = array, array $rendererConfig = array ) :

Proxy to renderer render() method

Arguments
$barcode
string
| Zend_Barcode_Object | array | Zend_Config $barcode
$renderer
string
| Zend_Barcode_Renderer $renderer
$barcodeConfig
array
| Zend_Config $barcodeConfig
$rendererConfig
array
| Zend_Config $rendererConfig
Details
visibility
public
final
false
static
true

setBarcodeFont

setBarcodeFont( string $font ) :

Proxy for setBarcodeFont of Zend_Barcode_Object

Arguments
$font
string
Details
visibility
public
final
false
static
true
eturn
void
Documentation was generated by DocBlox.