Barcode/Object/Leitcode.php

Show: PublicProtectedPrivateinherited
Table of Contents
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.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Barcode  
Subpackage
Object  
Version
$Id: Leitcode.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Barcode_Object_Leitcode

Package: Zend\Barcode
Class for generate Identcode barcode
Parent(s)
\Zend_Barcode_Object_Identcode < \Zend_Barcode_Object_Code25interleaved < \Zend_Barcode_Object_Code25 < \Zend_Barcode_Object_ObjectAbstract
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedarray $_codingMap = array('0' => '00110', '1' => '10001', '2' => '01001', '3' => '11000', '4' => '00101', '5' => '10100', '6' => '01100', '7' => '00011', '8' => '10010', '9' => '01010')
Default valuearray('0' => '00110', '1' => '10001', '2' => '01001', '3' => '11000', '4' => '00101', '5' => '10100', '6' => '01100', '7' => '00011', '8' => '10010', '9' => '01010')Details
Type
array
Inherited_from
\Zend_Barcode_Object_Code25::$$_codingMap  
Inherited_from
\Zend_Barcode_Object_Code25interleaved::$$_codingMap  
Inherited_from
\Zend_Barcode_Object_Identcode::$$_codingMap  
>VPropertyprotectedinteger $_factor = 1
inherited
Factor to multiply bar and font measure (barHeight, barThinWidth, barThickWidth & fontSize)
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_factor\Zend_Barcode_Object_Code25::$$_factor\Zend_Barcode_Object_Code25interleaved::$$_factor\Zend_Barcode_Object_Identcode::$$_factor
>VPropertyprotectedinteger|string $_font = null
inherited
Font resource - integer (1 to 5): corresponds to GD included fonts - string: corresponds to path of a TTF font
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_font\Zend_Barcode_Object_Code25::$$_font\Zend_Barcode_Object_Code25interleaved::$$_font\Zend_Barcode_Object_Identcode::$$_font
Default valuenullDetails
Type
integer | string
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_font  
Inherited_from
\Zend_Barcode_Object_Code25::$$_font  
Inherited_from
\Zend_Barcode_Object_Code25interleaved::$$_font  
Inherited_from
\Zend_Barcode_Object_Identcode::$$_font  
>VPropertyprivateboolean $_withBearerBars = false
Default valuefalseDetails
Type
boolean
Inherited_from
\Zend_Barcode_Object_Code25interleaved::$$_withBearerBars  
Inherited_from
\Zend_Barcode_Object_Identcode::$$_withBearerBars  

Methods

methodprotected_addInstruction(array $instruction) : void
Parameters
NameTypeDescription
$instructionarray
methodprotected_addLeadingZeros(string $text, boolean $withoutChecksum = false) : void
Parameters
NameTypeDescription
$textstring
$withoutChecksumboolean
methodprotected_addPolygon(array $points, integer $color = null, boolean $filled = true) : void
Parameters
NameTypeDescription
$pointsarray
$colorinteger
$filledboolean
methodprotected_addText(string $text, float $size, array $position, string $font, integer $color, string $alignment = 'center', float $orientation = 0) : void
Parameters
NameTypeDescription
$textstring
$sizefloat
$positionarray
$fontstring
$colorinteger
$alignmentstring
$orientationfloat
methodprotected_calculateBarcodeWidth() : integer
Returns
TypeDescription
integer
methodprotected_checkRatio(integer $min = 2, integer $max = 3) : void
Parameters
NameTypeDescription
$mininteger
$maxinteger
Details
Throw
 
methodprotected_checkText( $value = null) : void
Parameters
NameTypeDescription
$value
Details
Throw
 
methodprotected_getDefaultOptions() : void

Default options for Leitcode barcode

methodprotected_postDrawBarcode() : void
methodprotected_prepareBarcode() : array

.. )

Returns
TypeDescription
array
methodprotected_rotate(float $x1, float $y1) : array
Parameters
NameTypeDescription
$x1float

x-position before rotation

$y1float

y-position before rotation

Returns
TypeDescription
arrayArray of two elements corresponding to the new XY point
methodprotected_validateText(string $value, array $options = array()) : void
Parameters
NameTypeDescription
$valuestring
$optionsarray
methodpublicdraw() : array
Returns
TypeDescription
arrayTable of instructions
methodpublicgetChecksum(string $text) : int
inherited

Get barcode checksum

Inherited from: \Zend_Barcode_Object_Identcode::getChecksum()
Parameters
NameTypeDescription
$textstring
Returns
TypeDescription
int
methodpublicgetFactor() : integer
Returns
TypeDescription
integer
methodpublicgetHeight( $recalculate = false) : integer
Parameters
NameTypeDescription
$recalculate
Returns
TypeDescription
integer
methodpublicgetOffsetLeft(boolean $recalculate = false) : float
Parameters
NameTypeDescription
$recalculateboolean
Returns
TypeDescription
float
methodpublicgetOffsetTop(boolean $recalculate = false) : float
Parameters
NameTypeDescription
$recalculateboolean
Returns
TypeDescription
float
methodpublicgetStretchText() : boolean
Returns
TypeDescription
boolean
methodpublicgetTextToDisplay() : string

Retrieve text to display

Returns
TypeDescription
string
methodpublicgetWidth( $recalculate = false) : integer
Parameters
NameTypeDescription
$recalculate
Returns
TypeDescription
integer
methodpublicgetWithBearerBars() : boolean
Returns
TypeDescription
boolean
methodpublicgetWithChecksum() : boolean
Returns
TypeDescription
boolean
methodpublicgetWithChecksumInText() : boolean
Returns
TypeDescription
boolean
methodpublicsetBackgroundColor(integer $value) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$valueinteger
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetBarHeight(integer $value) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$valueinteger
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetBarThickWidth(integer $value) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$valueinteger
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetBarThinWidth(integer $value) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$valueinteger
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetBarcodeFont(string $font) : void
Parameters
NameTypeDescription
$fontstring
methodpublicsetBarcodeNamespace(string $namespace) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$namespacestring
Returns
TypeDescription
\Zend_Barcode_Object
methodpublicsetConfig(\Zend_Config $config) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$config\Zend_Config
Returns
TypeDescription
\Zend_Barcode_Object
methodpublicsetDrawText(boolean $value) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$valueboolean
Returns
TypeDescription
\Zend_Barcode_Object
methodpublicsetFactor(float $value) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$valuefloat
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetFont(integer | string $value) : \Zend_Barcode_Object
inherited

Set the font: - if integer between 1 and 5, use gd built-in fonts - if string, $value is assumed to be the path to a TTF font

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setFont()\Zend_Barcode_Object_Code25::setFont()\Zend_Barcode_Object_Code25interleaved::setFont()\Zend_Barcode_Object_Identcode::setFont()
Parameters
NameTypeDescription
$valueinteger | string
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetFontSize(float $value) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$valuefloat
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetForeColor(string $value) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$valuestring
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetOptions(array $options) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$optionsarray
Returns
TypeDescription
\Zend_Barcode_Object
methodpublicsetOrientation(float $value) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$valuefloat
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetReverseColor() : \Zend_Barcode_Object
Returns
TypeDescription
\Zend_Barcode_Object
methodpublicsetStretchText(boolean $value) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$valueboolean
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetText(string $value) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$valuestring
Returns
TypeDescription
\Zend_Barcode_Object
methodpublicsetWithBearerBars(boolean $value) : \Zend_Barcode_Object_Int25
Parameters
NameTypeDescription
$valueboolean
Returns
TypeDescription
\Zend_Barcode_Object_Int25
methodpublicsetWithBorder(boolean $value) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$valueboolean
Returns
TypeDescription
\Zend_Barcode_Object
methodpublicsetWithChecksum(boolean $value) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$valueboolean
Returns
TypeDescription
\Zend_Barcode_Object
methodpublicsetWithChecksumInText(boolean $value) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$valueboolean
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetWithQuietZones(boolean $value) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$valueboolean
Returns
TypeDescription
\Zend_Barcode_Object
methodpublicvalidateText(string $value) : string
inherited

Check allowed characters

Inherited from: \Zend_Barcode_Object_Identcode::validateText()
Parameters
NameTypeDescription
$valuestring
Returns
TypeDescription
string
Details
Throw
 
Documentation was generated by phpDocumentor 2.0.0a12.