Class for generate Ean2 barcode

category Zend
package Zend_Barcode

 Methods

Constructor

__construct(array | \Traversable $options) 
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::__construct()
inherited_from \Zend\Barcode\Object\Ean13::__construct()
inherited_from \Zend\Barcode\Object\Ean5::__construct()

Parameters

$options

array\Traversable

Checking of parameters after all settings

checkParams() : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::checkParams()
inherited_from \Zend\Barcode\Object\Ean13::checkParams()
inherited_from \Zend\Barcode\Object\Ean5::checkParams()

Returns

bool

Complete drawing of the barcode

draw() : array
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::draw()
inherited_from \Zend\Barcode\Object\Ean13::draw()
inherited_from \Zend\Barcode\Object\Ean5::draw()

Returns

arrayTable of instructions

Retrieve background color of the image

getBackgroundColor() : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getBackgroundColor()
inherited_from \Zend\Barcode\Object\Ean13::getBackgroundColor()
inherited_from \Zend\Barcode\Object\Ean5::getBackgroundColor()

Returns

integer

Get height of the barcode bar

getBarHeight() : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getBarHeight()
inherited_from \Zend\Barcode\Object\Ean13::getBarHeight()
inherited_from \Zend\Barcode\Object\Ean5::getBarHeight()

Returns

integer

Get thickness of thick bar

getBarThickWidth() : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getBarThickWidth()
inherited_from \Zend\Barcode\Object\Ean13::getBarThickWidth()
inherited_from \Zend\Barcode\Object\Ean5::getBarThickWidth()

Returns

integer

Get thickness of thin bar

getBarThinWidth() : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getBarThinWidth()
inherited_from \Zend\Barcode\Object\Ean13::getBarThinWidth()
inherited_from \Zend\Barcode\Object\Ean5::getBarThinWidth()

Returns

integer

Retrieve barcode namespace

getBarcodeNamespace() : string
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getBarcodeNamespace()
inherited_from \Zend\Barcode\Object\Ean13::getBarcodeNamespace()
inherited_from \Zend\Barcode\Object\Ean5::getBarcodeNamespace()

Returns

string

Get barcode checksum

getChecksum(string $text) : int
Inherited

inherited_from \Zend\Barcode\Object\Ean5::getChecksum()

Parameters

$text

string

Returns

int

Retrieve if drawing of text to encode is enabled

getDrawText() : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getDrawText()
inherited_from \Zend\Barcode\Object\Ean13::getDrawText()
inherited_from \Zend\Barcode\Object\Ean5::getDrawText()

Returns

bool

Get factor applying to thinBarWidth - thickBarWidth - barHeight - fontSize

getFactor() : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getFactor()
inherited_from \Zend\Barcode\Object\Ean13::getFactor()
inherited_from \Zend\Barcode\Object\Ean5::getFactor()

Returns

integer

Retrieve the font

getFont() : integer | string
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getFont()
inherited_from \Zend\Barcode\Object\Ean13::getFont()
inherited_from \Zend\Barcode\Object\Ean5::getFont()

Returns

integerstring

Retrieve the size of the font in case of TTF

getFontSize() : float
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getFontSize()
inherited_from \Zend\Barcode\Object\Ean13::getFontSize()
inherited_from \Zend\Barcode\Object\Ean5::getFontSize()

Returns

float

Retrieve color of the barcode and text

getForeColor() : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getForeColor()
inherited_from \Zend\Barcode\Object\Ean13::getForeColor()
inherited_from \Zend\Barcode\Object\Ean5::getForeColor()

Returns

integer

Get height of the result object

getHeight(bool $recalculate) : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getHeight()
inherited_from \Zend\Barcode\Object\Ean13::getHeight()
inherited_from \Zend\Barcode\Object\Ean5::getHeight()

Parameters

$recalculate

bool

Returns

integer

Retrieve the set of drawing instructions

getInstructions() : array
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getInstructions()
inherited_from \Zend\Barcode\Object\Ean13::getInstructions()
inherited_from \Zend\Barcode\Object\Ean5::getInstructions()

Returns

array

Calculate the offset from the left of the object if an orientation is activated

getOffsetLeft(bool $recalculate) : float
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getOffsetLeft()
inherited_from \Zend\Barcode\Object\Ean13::getOffsetLeft()
inherited_from \Zend\Barcode\Object\Ean5::getOffsetLeft()

Parameters

$recalculate

bool

Returns

float

Calculate the offset from the top of the object if an orientation is activated

getOffsetTop(bool $recalculate) : float
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getOffsetTop()
inherited_from \Zend\Barcode\Object\Ean13::getOffsetTop()
inherited_from \Zend\Barcode\Object\Ean5::getOffsetTop()

Parameters

$recalculate

bool

Returns

float

Retrieve orientation of barcode and text

getOrientation() : float
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getOrientation()
inherited_from \Zend\Barcode\Object\Ean13::getOrientation()
inherited_from \Zend\Barcode\Object\Ean5::getOrientation()

Returns

float

Quiet zone before first bar and after the last bar

getQuietZone() : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getQuietZone()
inherited_from \Zend\Barcode\Object\Ean13::getQuietZone()
inherited_from \Zend\Barcode\Object\Ean5::getQuietZone()

Returns

integer

Retrieve text to encode

getRawText() : string
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getRawText()
inherited_from \Zend\Barcode\Object\Ean13::getRawText()
inherited_from \Zend\Barcode\Object\Ean5::getRawText()

Returns

string

Retrieve if the adjustment of the position of the characters to the position of the bars is enabled

getStretchText() : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getStretchText()
inherited_from \Zend\Barcode\Object\Ean13::getStretchText()
inherited_from \Zend\Barcode\Object\Ean5::getStretchText()

Returns

bool

Retrieve text to encode

getText() : string
Inherited

inherited_from \Zend\Barcode\Object\Ean5::getText()

Returns

string

Retrieve text to display

getTextToDisplay() : string
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getTextToDisplay()
inherited_from \Zend\Barcode\Object\Ean13::getTextToDisplay()
inherited_from \Zend\Barcode\Object\Ean5::getTextToDisplay()

Returns

string

Retrieve type of barcode

getType() : string
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getType()
inherited_from \Zend\Barcode\Object\Ean13::getType()
inherited_from \Zend\Barcode\Object\Ean5::getType()

Returns

string

Get width of the result object

getWidth(bool $recalculate) : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getWidth()
inherited_from \Zend\Barcode\Object\Ean13::getWidth()
inherited_from \Zend\Barcode\Object\Ean5::getWidth()

Parameters

$recalculate

bool

Returns

integer

Retrieve if border are draw or not

getWithBorder() : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getWithBorder()
inherited_from \Zend\Barcode\Object\Ean13::getWithBorder()
inherited_from \Zend\Barcode\Object\Ean5::getWithBorder()

Returns

bool

Retrieve if the checksum character is automatically added to the barcode text

getWithChecksum() : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getWithChecksum()
inherited_from \Zend\Barcode\Object\Ean13::getWithChecksum()
inherited_from \Zend\Barcode\Object\Ean5::getWithChecksum()

Returns

bool

Retrieve if the checksum character is automatically added to the barcode text

getWithChecksumInText() : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getWithChecksumInText()
inherited_from \Zend\Barcode\Object\Ean13::getWithChecksumInText()
inherited_from \Zend\Barcode\Object\Ean5::getWithChecksumInText()

Returns

bool

Retrieve if quiet zones are draw or not

getWithQuietZones() : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getWithQuietZones()
inherited_from \Zend\Barcode\Object\Ean13::getWithQuietZones()
inherited_from \Zend\Barcode\Object\Ean5::getWithQuietZones()

Returns

bool

Set the color of the background

setBackgroundColor(integer $value) : \Zend\Barcode\Object\ObjectInterface
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::setBackgroundColor()
inherited_from \Zend\Barcode\Object\Ean13::setBackgroundColor()
inherited_from \Zend\Barcode\Object\Ean5::setBackgroundColor()

Parameters

$value

integer

Exceptions

\Zend\Barcode\Object\Exception\ExceptionInterface

Returns

Set height of the barcode bar

setBarHeight(integer $value) : \Zend\Barcode\Object\ObjectInterface
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::setBarHeight()
inherited_from \Zend\Barcode\Object\Ean13::setBarHeight()
inherited_from \Zend\Barcode\Object\Ean5::setBarHeight()

Parameters

$value

integer

Exceptions

\Zend\Barcode\Object\Exception\ExceptionInterface

Returns

Set thickness of thick bar

setBarThickWidth(integer $value) : \Zend\Barcode\Object\ObjectInterface
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::setBarThickWidth()
inherited_from \Zend\Barcode\Object\Ean13::setBarThickWidth()
inherited_from \Zend\Barcode\Object\Ean5::setBarThickWidth()

Parameters

$value

integer

Exceptions

\Zend\Barcode\Object\Exception\ExceptionInterface

Returns

Set thickness of thin bar

setBarThinWidth(integer $value) : \Zend\Barcode\Object\ObjectInterface
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::setBarThinWidth()
inherited_from \Zend\Barcode\Object\Ean13::setBarThinWidth()
inherited_from \Zend\Barcode\Object\Ean5::setBarThinWidth()

Parameters

$value

integer

Exceptions

\Zend\Barcode\Object\Exception\ExceptionInterface

Returns

Set barcode namespace for autoloading

setBarcodeNamespace(string $namespace) : \Zend\Barcode\Object\ObjectInterface
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::setBarcodeNamespace()
inherited_from \Zend\Barcode\Object\Ean13::setBarcodeNamespace()
inherited_from \Zend\Barcode\Object\Ean5::setBarcodeNamespace()

Parameters

$namespace

string

Returns

Activate/deactivate drawing of text to encode

setDrawText(bool $value) : \Zend\Barcode\Object\ObjectInterface
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::setDrawText()
inherited_from \Zend\Barcode\Object\Ean13::setDrawText()
inherited_from \Zend\Barcode\Object\Ean5::setDrawText()

Parameters

$value

bool

Returns

Set factor applying to thinBarWidth - thickBarWidth - barHeight - fontSize

setFactor(float $value) : \Zend\Barcode\Object\ObjectInterface
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::setFactor()
inherited_from \Zend\Barcode\Object\Ean13::setFactor()
inherited_from \Zend\Barcode\Object\Ean5::setFactor()

Parameters

$value

float

Exceptions

\Zend\Barcode\Object\Exception\ExceptionInterface

Returns

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

setFont(integer | string $value) : \Zend\Barcode\Object\ObjectInterface
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::setFont()
inherited_from \Zend\Barcode\Object\Ean13::setFont()
inherited_from \Zend\Barcode\Object\Ean5::setFont()

Parameters

$value

integerstring

Exceptions

\Zend\Barcode\Object\Exception\ExceptionInterface

Returns

Set the size of the font in case of TTF

setFontSize(float $value) : \Zend\Barcode\Object\ObjectInterface
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::setFontSize()
inherited_from \Zend\Barcode\Object\Ean13::setFontSize()
inherited_from \Zend\Barcode\Object\Ean5::setFontSize()

Parameters

$value

float

Exceptions

\Zend\Barcode\Object\Exception\ExceptionInterface

Returns

Set color of the barcode and text

setForeColor(string $value) : \Zend\Barcode\Object\ObjectInterface
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::setForeColor()
inherited_from \Zend\Barcode\Object\Ean13::setForeColor()
inherited_from \Zend\Barcode\Object\Ean5::setForeColor()

Parameters

$value

string

Exceptions

\Zend\Barcode\Object\Exception\ExceptionInterface

Returns

Set barcode state from options array

setOptions(array $options) : \Zend\Barcode\Object\ObjectInterface
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::setOptions()
inherited_from \Zend\Barcode\Object\Ean13::setOptions()
inherited_from \Zend\Barcode\Object\Ean5::setOptions()

Parameters

$options

array

Returns

Set orientation of barcode and text

setOrientation(float $value) : \Zend\Barcode\Object\ObjectInterface
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::setOrientation()
inherited_from \Zend\Barcode\Object\Ean13::setOrientation()
inherited_from \Zend\Barcode\Object\Ean5::setOrientation()

Parameters

$value

float

Exceptions

\Zend\Barcode\Object\Exception\ExceptionInterface

Returns

Allow fast inversion of font/bars color and background color

setReverseColor() : \Zend\Barcode\Object\ObjectInterface
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::setReverseColor()
inherited_from \Zend\Barcode\Object\Ean13::setReverseColor()
inherited_from \Zend\Barcode\Object\Ean5::setReverseColor()

Returns

Activate/deactivate the adjustment of the position of the characters to the position of the bars

setStretchText(bool $value) : \Zend\Barcode\Object\ObjectInterface
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::setStretchText()
inherited_from \Zend\Barcode\Object\Ean13::setStretchText()
inherited_from \Zend\Barcode\Object\Ean5::setStretchText()

Parameters

$value

bool

Exceptions

\Zend\Barcode\Object\Exception\ExceptionInterface

Returns

Set text to encode

setText(string $value) : \Zend\Barcode\Object\ObjectInterface
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::setText()
inherited_from \Zend\Barcode\Object\Ean13::setText()
inherited_from \Zend\Barcode\Object\Ean5::setText()

Parameters

$value

string

Returns

Activate/deactivate drawing of the bar

setWithBorder(bool $value) : \Zend\Barcode\Object\ObjectInterface
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::setWithBorder()
inherited_from \Zend\Barcode\Object\Ean13::setWithBorder()
inherited_from \Zend\Barcode\Object\Ean5::setWithBorder()

Parameters

$value

bool

Returns

Activate/deactivate the automatic generation of the checksum character added to the barcode text

setWithChecksum(bool $value) : \Zend\Barcode\Object\ObjectInterface
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::setWithChecksum()
inherited_from \Zend\Barcode\Object\Ean13::setWithChecksum()
inherited_from \Zend\Barcode\Object\Ean5::setWithChecksum()

Parameters

$value

bool

Returns

Activate/deactivate the automatic generation of the checksum character added to the barcode text

setWithChecksumInText(bool $value) : \Zend\Barcode\Object\ObjectInterface
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::setWithChecksumInText()
inherited_from \Zend\Barcode\Object\Ean13::setWithChecksumInText()
inherited_from \Zend\Barcode\Object\Ean5::setWithChecksumInText()

Parameters

$value

bool

Exceptions

\Zend\Barcode\Object\Exception\ExceptionInterface

Returns

Activate/deactivate drawing of the quiet zones

setWithQuietZones(bool $value) : \Zend\Barcode\Object\AbstractObject
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::setWithQuietZones()
inherited_from \Zend\Barcode\Object\Ean13::setWithQuietZones()
inherited_from \Zend\Barcode\Object\Ean5::setWithQuietZones()

Parameters

$value

bool

Returns

Check for invalid characters

validateText(string $value) : void
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::validateText()
inherited_from \Zend\Barcode\Object\Ean13::validateText()
inherited_from \Zend\Barcode\Object\Ean5::validateText()

Parameters

$value

string

Text to be checked

Add an instruction in the array of instructions

addInstruction(array $instruction) 
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::addInstruction()
inherited_from \Zend\Barcode\Object\Ean13::addInstruction()
inherited_from \Zend\Barcode\Object\Ean5::addInstruction()

Parameters

$instruction

array

Automatically add leading zeros if barcode length is fixed

addLeadingZeros(string $text, bool $withoutChecksum) : string
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::addLeadingZeros()
inherited_from \Zend\Barcode\Object\Ean13::addLeadingZeros()
inherited_from \Zend\Barcode\Object\Ean5::addLeadingZeros()

Parameters

$text

string

$withoutChecksum

bool

Returns

string

Add a polygon drawing instruction in the set of instructions

addPolygon(array $points, integer $color, bool $filled) 
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::addPolygon()
inherited_from \Zend\Barcode\Object\Ean13::addPolygon()
inherited_from \Zend\Barcode\Object\Ean5::addPolygon()

Parameters

$points

array

$color

integer

$filled

bool

Add a text drawing instruction in the set of instructions

addText(string $text, float $size, array $position, string $font, integer $color, string $alignment, float $orientation) 
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::addText()
inherited_from \Zend\Barcode\Object\Ean13::addText()
inherited_from \Zend\Barcode\Object\Ean5::addText()

Parameters

$text

string

$size

float

$position

array

$font

string

$color

integer

$alignment

string

$orientation

float

Height of the barcode

calculateBarcodeHeight() : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::calculateBarcodeHeight()
inherited_from \Zend\Barcode\Object\Ean13::calculateBarcodeHeight()
inherited_from \Zend\Barcode\Object\Ean5::calculateBarcodeHeight()

Returns

integer

Width of the barcode (in pixels)

calculateBarcodeWidth() : integer
Inherited

inherited_from \Zend\Barcode\Object\Ean5::calculateBarcodeWidth()

Returns

integer

Height of the result object

calculateHeight() : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::calculateHeight()
inherited_from \Zend\Barcode\Object\Ean13::calculateHeight()
inherited_from \Zend\Barcode\Object\Ean5::calculateHeight()

Returns

integer

Width of the result image (before any rotation)

calculateWidth() : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::calculateWidth()
inherited_from \Zend\Barcode\Object\Ean13::calculateWidth()
inherited_from \Zend\Barcode\Object\Ean5::calculateWidth()

Returns

integer

Drawing with an angle is just allow TTF font

checkFontAndOrientation() : void
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::checkFontAndOrientation()
inherited_from \Zend\Barcode\Object\Ean13::checkFontAndOrientation()
inherited_from \Zend\Barcode\Object\Ean5::checkFontAndOrientation()

Exceptions

\Zend\Barcode\Object\Exception\ExceptionInterface

Check the ratio between the thick and the thin bar

checkRatio(integer $min, integer $max) : void
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::checkRatio()
inherited_from \Zend\Barcode\Object\Ean13::checkRatio()
inherited_from \Zend\Barcode\Object\Ean5::checkRatio()

Parameters

$min

integer

$max

integer

Exceptions

\Zend\Barcode\Object\Exception\ExceptionInterface

Partial check of interleaved EAN/UPC barcode

checkSpecificParams() : void
Inherited

inherited_from \Zend\Barcode\Object\Ean13::checkSpecificParams()
inherited_from \Zend\Barcode\Object\Ean5::checkSpecificParams()

Check if a text is really provided to barcode

checkText($value) : void
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::checkText()
inherited_from \Zend\Barcode\Object\Ean13::checkText()
inherited_from \Zend\Barcode\Object\Ean5::checkText()

Parameters

$value

Exceptions

\Zend\Barcode\Object\Exception\ExceptionInterface

Draw the barcode

drawBarcode() : void
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::drawBarcode()
inherited_from \Zend\Barcode\Object\Ean13::drawBarcode()
inherited_from \Zend\Barcode\Object\Ean5::drawBarcode()

Partial function to draw border

drawBorder() : void
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::drawBorder()
inherited_from \Zend\Barcode\Object\Ean13::drawBorder()
inherited_from \Zend\Barcode\Object\Ean5::drawBorder()

drawEan13Text()

drawEan13Text() 
Inherited

inherited_from \Zend\Barcode\Object\Ean13::drawEan13Text()
inherited_from \Zend\Barcode\Object\Ean5::drawEan13Text()

Partial function to draw text

drawText() : void
Inherited

inherited_from \Zend\Barcode\Object\Ean13::drawText()
inherited_from \Zend\Barcode\Object\Ean5::drawText()

Default options for Ean2 barcode

getDefaultOptions() : void

getParity()

getParity($i) 

Parameters

$i

Allow each child to draw something else (ex: bearer bars in interleaved 2 of 5 code)

postDrawBarcode() : void
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::postDrawBarcode()
inherited_from \Zend\Barcode\Object\Ean13::postDrawBarcode()
inherited_from \Zend\Barcode\Object\Ean5::postDrawBarcode()

Allow each child to draw something else

preDrawBarcode() : void
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::preDrawBarcode()
inherited_from \Zend\Barcode\Object\Ean13::preDrawBarcode()
inherited_from \Zend\Barcode\Object\Ean5::preDrawBarcode()

Prepare array to draw barcode

prepareBarcode() : array
Inherited

.. )

inherited_from \Zend\Barcode\Object\Ean5::prepareBarcode()

Returns

array

Apply rotation on a point in X/Y dimensions

rotate(float $x1, float $y1) : array
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::rotate()
inherited_from \Zend\Barcode\Object\Ean13::rotate()
inherited_from \Zend\Barcode\Object\Ean5::rotate()

Parameters

$x1

float

x-position before rotation

$y1

float

y-position before rotation

Returns

arrayArray of two elements corresponding to the new XY point

Standard validation for most of barcode objects

validateSpecificText(string $value, array $options) 
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::validateSpecificText()
inherited_from \Zend\Barcode\Object\Ean13::validateSpecificText()
inherited_from \Zend\Barcode\Object\Ean5::validateSpecificText()

Parameters

$value

string

$options

array

 Properties

 

Activate automatic addition of leading zeros if barcode length is fixed

$addLeadingZeros : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$addLeadingZeros
inherited_from \Zend\Barcode\Object\Ean13::$$addLeadingZeros
inherited_from \Zend\Barcode\Object\Ean5::$$addLeadingZeros
 

Background color of the object

$backgroundColor : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$backgroundColor
inherited_from \Zend\Barcode\Object\Ean13::$$backgroundColor
inherited_from \Zend\Barcode\Object\Ean5::$$backgroundColor
 

Height of the bar

$barHeight : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$barHeight
inherited_from \Zend\Barcode\Object\Ean13::$$barHeight
inherited_from \Zend\Barcode\Object\Ean5::$$barHeight
 

Width of a thick bar

$barThickWidth : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$barThickWidth
inherited_from \Zend\Barcode\Object\Ean13::$$barThickWidth
inherited_from \Zend\Barcode\Object\Ean5::$$barThickWidth
 

Width of a thin bar

$barThinWidth : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$barThinWidth
inherited_from \Zend\Barcode\Object\Ean13::$$barThinWidth
inherited_from \Zend\Barcode\Object\Ean5::$$barThinWidth
 

Fix barcode length (numeric or string like 'even')

$barcodeLength : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$barcodeLength
inherited_from \Zend\Barcode\Object\Ean13::$$barcodeLength
inherited_from \Zend\Barcode\Object\Ean5::$$barcodeLength
 

Namespace of the barcode for autoloading

$barcodeNamespace : string
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$barcodeNamespace
inherited_from \Zend\Barcode\Object\Ean13::$$barcodeNamespace
inherited_from \Zend\Barcode\Object\Ean5::$$barcodeNamespace
 

Coding map - 0 = narrow bar - 1 = wide bar

$codingMap : array
Inherited

inherited_from \Zend\Barcode\Object\Ean13::$$codingMap
inherited_from \Zend\Barcode\Object\Ean5::$$codingMap
 

Display (or not) human readable text

$drawText : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$drawText
inherited_from \Zend\Barcode\Object\Ean13::$$drawText
inherited_from \Zend\Barcode\Object\Ean5::$$drawText
 

Factor to multiply bar and font measure (barHeight, barThinWidth, barThickWidth & fontSize)

$factor : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$factor
inherited_from \Zend\Barcode\Object\Ean13::$$factor
inherited_from \Zend\Barcode\Object\Ean5::$$factor
 

Font resource - integer (1 to 5): corresponds to GD included fonts - string: corresponds to path of a TTF font

$font : integer | string
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$font
inherited_from \Zend\Barcode\Object\Ean13::$$font
inherited_from \Zend\Barcode\Object\Ean5::$$font
 

Font size

$fontSize : float
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$fontSize
inherited_from \Zend\Barcode\Object\Ean13::$$fontSize
inherited_from \Zend\Barcode\Object\Ean5::$$fontSize
 

Font and bars color of the object

$foreColor : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$foreColor
inherited_from \Zend\Barcode\Object\Ean13::$$foreColor
inherited_from \Zend\Barcode\Object\Ean5::$$foreColor
 

Height of the object

$height : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$height
inherited_from \Zend\Barcode\Object\Ean13::$$height
inherited_from \Zend\Barcode\Object\Ean5::$$height
 

Set of drawing instructions

$instructions : array
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$instructions
inherited_from \Zend\Barcode\Object\Ean13::$$instructions
inherited_from \Zend\Barcode\Object\Ean5::$$instructions
 

Activation of mandatory checksum to deactivate unauthorized modification

$mandatoryChecksum : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$mandatoryChecksum
inherited_from \Zend\Barcode\Object\Ean13::$$mandatoryChecksum
inherited_from \Zend\Barcode\Object\Ean5::$$mandatoryChecksum
 

Force quiet zones even if

$mandatoryQuietZones : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$mandatoryQuietZones
inherited_from \Zend\Barcode\Object\Ean13::$$mandatoryQuietZones
inherited_from \Zend\Barcode\Object\Ean5::$$mandatoryQuietZones
 

Offset from the left the object (calculated from the orientation)

$offsetLeft : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$offsetLeft
inherited_from \Zend\Barcode\Object\Ean13::$$offsetLeft
inherited_from \Zend\Barcode\Object\Ean5::$$offsetLeft
 

Offset from the top the object (calculated from the orientation)

$offsetTop : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$offsetTop
inherited_from \Zend\Barcode\Object\Ean13::$$offsetTop
inherited_from \Zend\Barcode\Object\Ean5::$$offsetTop
 

Orientation of the barcode in degrees

$orientation : float
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$orientation
inherited_from \Zend\Barcode\Object\Ean13::$$orientation
inherited_from \Zend\Barcode\Object\Ean5::$$orientation
 

$parities

$parities 

 

Adjust (or not) position of human readable characters with barcode

$stretchText : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$stretchText
inherited_from \Zend\Barcode\Object\Ean13::$$stretchText
inherited_from \Zend\Barcode\Object\Ean5::$$stretchText
 

Character used to substitute checksum character for validation

$substituteChecksumCharacter : mixed
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$substituteChecksumCharacter
inherited_from \Zend\Barcode\Object\Ean13::$$substituteChecksumCharacter
inherited_from \Zend\Barcode\Object\Ean5::$$substituteChecksumCharacter
 

Text to display

$text : string
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$text
inherited_from \Zend\Barcode\Object\Ean13::$$text
inherited_from \Zend\Barcode\Object\Ean5::$$text
 

Barcode type

$type : string
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$type
inherited_from \Zend\Barcode\Object\Ean13::$$type
inherited_from \Zend\Barcode\Object\Ean5::$$type
 

Width of the object

$width : integer
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$width
inherited_from \Zend\Barcode\Object\Ean13::$$width
inherited_from \Zend\Barcode\Object\Ean5::$$width
 

Activate/deactivate border of the object

$withBorder : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$withBorder
inherited_from \Zend\Barcode\Object\Ean13::$$withBorder
inherited_from \Zend\Barcode\Object\Ean5::$$withBorder
 

Drawing of checksum

$withChecksum : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$withChecksum
inherited_from \Zend\Barcode\Object\Ean13::$$withChecksum
inherited_from \Zend\Barcode\Object\Ean5::$$withChecksum
 

Drawing of checksum inside text

$withChecksumInText : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$withChecksumInText
inherited_from \Zend\Barcode\Object\Ean13::$$withChecksumInText
inherited_from \Zend\Barcode\Object\Ean5::$$withChecksumInText
 

Activate/deactivate drawing of quiet zones

$withQuietZones : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$withQuietZones
inherited_from \Zend\Barcode\Object\Ean13::$$withQuietZones
inherited_from \Zend\Barcode\Object\Ean5::$$withQuietZones