Class for generate Identcode barcode

 Methods

Constructor

__construct(array | \Traversable $options) 
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::__construct()
inherited_from \Zend\Barcode\Object\Code25::__construct()
inherited_from \Zend\Barcode\Object\Code25interleaved::__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\Code25::checkParams()
inherited_from \Zend\Barcode\Object\Code25interleaved::checkParams()

Returns

bool

Complete drawing of the barcode

draw() : array
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::draw()
inherited_from \Zend\Barcode\Object\Code25::draw()
inherited_from \Zend\Barcode\Object\Code25interleaved::draw()

Returns

arrayTable of instructions

Retrieve background color of the image

getBackgroundColor() : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getBackgroundColor()
inherited_from \Zend\Barcode\Object\Code25::getBackgroundColor()
inherited_from \Zend\Barcode\Object\Code25interleaved::getBackgroundColor()

Returns

int

Get height of the barcode bar

getBarHeight() : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getBarHeight()
inherited_from \Zend\Barcode\Object\Code25::getBarHeight()
inherited_from \Zend\Barcode\Object\Code25interleaved::getBarHeight()

Returns

int

Get thickness of thick bar

getBarThickWidth() : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getBarThickWidth()
inherited_from \Zend\Barcode\Object\Code25::getBarThickWidth()
inherited_from \Zend\Barcode\Object\Code25interleaved::getBarThickWidth()

Returns

int

Get thickness of thin bar

getBarThinWidth() : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getBarThinWidth()
inherited_from \Zend\Barcode\Object\Code25::getBarThinWidth()
inherited_from \Zend\Barcode\Object\Code25interleaved::getBarThinWidth()

Returns

int

Retrieve barcode namespace

getBarcodeNamespace() : string
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getBarcodeNamespace()
inherited_from \Zend\Barcode\Object\Code25::getBarcodeNamespace()
inherited_from \Zend\Barcode\Object\Code25interleaved::getBarcodeNamespace()

Returns

string

Get barcode checksum

getChecksum(string $text) : int

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\Code25::getDrawText()
inherited_from \Zend\Barcode\Object\Code25interleaved::getDrawText()

Returns

bool

Get factor applying to thinBarWidth - thickBarWidth - barHeight - fontSize

getFactor() : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getFactor()
inherited_from \Zend\Barcode\Object\Code25::getFactor()
inherited_from \Zend\Barcode\Object\Code25interleaved::getFactor()

Returns

int

Retrieve the font

getFont() : int | string
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getFont()
inherited_from \Zend\Barcode\Object\Code25::getFont()
inherited_from \Zend\Barcode\Object\Code25interleaved::getFont()

Returns

intstring

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\Code25::getFontSize()
inherited_from \Zend\Barcode\Object\Code25interleaved::getFontSize()

Returns

float

Retrieve color of the barcode and text

getForeColor() : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getForeColor()
inherited_from \Zend\Barcode\Object\Code25::getForeColor()
inherited_from \Zend\Barcode\Object\Code25interleaved::getForeColor()

Returns

int

Get height of the result object

getHeight(bool $recalculate) : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getHeight()
inherited_from \Zend\Barcode\Object\Code25::getHeight()
inherited_from \Zend\Barcode\Object\Code25interleaved::getHeight()

Parameters

$recalculate

bool

Returns

int

Retrieve the set of drawing instructions

getInstructions() : array
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getInstructions()
inherited_from \Zend\Barcode\Object\Code25::getInstructions()
inherited_from \Zend\Barcode\Object\Code25interleaved::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\Code25::getOffsetLeft()
inherited_from \Zend\Barcode\Object\Code25interleaved::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\Code25::getOffsetTop()
inherited_from \Zend\Barcode\Object\Code25interleaved::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\Code25::getOrientation()
inherited_from \Zend\Barcode\Object\Code25interleaved::getOrientation()

Returns

float

Quiet zone before first bar and after the last bar

getQuietZone() : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getQuietZone()
inherited_from \Zend\Barcode\Object\Code25::getQuietZone()
inherited_from \Zend\Barcode\Object\Code25interleaved::getQuietZone()

Returns

int

Retrieve text to encode

getRawText() : string
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getRawText()
inherited_from \Zend\Barcode\Object\Code25::getRawText()
inherited_from \Zend\Barcode\Object\Code25interleaved::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\Code25::getStretchText()
inherited_from \Zend\Barcode\Object\Code25interleaved::getStretchText()

Returns

bool

Retrieve text to encode

getText() : string
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getText()
inherited_from \Zend\Barcode\Object\Code25::getText()
inherited_from \Zend\Barcode\Object\Code25interleaved::getText()

Returns

string

Retrieve text to display

getTextToDisplay() : string

Returns

string

Retrieve type of barcode

getType() : string
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getType()
inherited_from \Zend\Barcode\Object\Code25::getType()
inherited_from \Zend\Barcode\Object\Code25interleaved::getType()

Returns

string

Get width of the result object

getWidth(bool $recalculate) : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getWidth()
inherited_from \Zend\Barcode\Object\Code25::getWidth()
inherited_from \Zend\Barcode\Object\Code25interleaved::getWidth()

Parameters

$recalculate

bool

Returns

int

Retrieve if bearer bars are enabled

getWithBearerBars() : bool
Inherited

inherited_from \Zend\Barcode\Object\Code25interleaved::getWithBearerBars()

Returns

bool

Retrieve if border are draw or not

getWithBorder() : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::getWithBorder()
inherited_from \Zend\Barcode\Object\Code25::getWithBorder()
inherited_from \Zend\Barcode\Object\Code25interleaved::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\Code25::getWithChecksum()
inherited_from \Zend\Barcode\Object\Code25interleaved::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\Code25::getWithChecksumInText()
inherited_from \Zend\Barcode\Object\Code25interleaved::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\Code25::getWithQuietZones()
inherited_from \Zend\Barcode\Object\Code25interleaved::getWithQuietZones()

Returns

bool

Set the color of the background

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

inherited_from \Zend\Barcode\Object\AbstractObject::setBackgroundColor()
inherited_from \Zend\Barcode\Object\Code25::setBackgroundColor()
inherited_from \Zend\Barcode\Object\Code25interleaved::setBackgroundColor()

Parameters

$value

int

Exceptions

\Zend\Barcode\Object\Exception\ExceptionInterface

Returns

Set height of the barcode bar

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

inherited_from \Zend\Barcode\Object\AbstractObject::setBarHeight()
inherited_from \Zend\Barcode\Object\Code25::setBarHeight()
inherited_from \Zend\Barcode\Object\Code25interleaved::setBarHeight()

Parameters

$value

int

Exceptions

\Zend\Barcode\Object\Exception\ExceptionInterface

Returns

Set thickness of thick bar

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

inherited_from \Zend\Barcode\Object\AbstractObject::setBarThickWidth()
inherited_from \Zend\Barcode\Object\Code25::setBarThickWidth()
inherited_from \Zend\Barcode\Object\Code25interleaved::setBarThickWidth()

Parameters

$value

int

Exceptions

\Zend\Barcode\Object\Exception\ExceptionInterface

Returns

Set thickness of thin bar

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

inherited_from \Zend\Barcode\Object\AbstractObject::setBarThinWidth()
inherited_from \Zend\Barcode\Object\Code25::setBarThinWidth()
inherited_from \Zend\Barcode\Object\Code25interleaved::setBarThinWidth()

Parameters

$value

int

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\Code25::setBarcodeNamespace()
inherited_from \Zend\Barcode\Object\Code25interleaved::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\Code25::setDrawText()
inherited_from \Zend\Barcode\Object\Code25interleaved::setDrawText()

Parameters

$value

bool

Returns

Set factor applying to thinBarWidth - thickBarWidth - barHeight - fontSize

setFactor(int | float | string | bool $value) : \Zend\Barcode\Object\ObjectInterface
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::setFactor()
inherited_from \Zend\Barcode\Object\Code25::setFactor()
inherited_from \Zend\Barcode\Object\Code25interleaved::setFactor()

Parameters

$value

intfloatstringbool

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(int | string $value) : \Zend\Barcode\Object\ObjectInterface
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::setFont()
inherited_from \Zend\Barcode\Object\Code25::setFont()
inherited_from \Zend\Barcode\Object\Code25interleaved::setFont()

Parameters

$value

intstring

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\Code25::setFontSize()
inherited_from \Zend\Barcode\Object\Code25interleaved::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\Code25::setForeColor()
inherited_from \Zend\Barcode\Object\Code25interleaved::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\Code25::setOptions()
inherited_from \Zend\Barcode\Object\Code25interleaved::setOptions()

Parameters

$options

array

Returns

Set orientation of barcode and text

setOrientation(int | float | string | bool $value) : \Zend\Barcode\Object\ObjectInterface
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::setOrientation()
inherited_from \Zend\Barcode\Object\Code25::setOrientation()
inherited_from \Zend\Barcode\Object\Code25interleaved::setOrientation()

Parameters

$value

intfloatstringbool

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\Code25::setReverseColor()
inherited_from \Zend\Barcode\Object\Code25interleaved::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\Code25::setStretchText()
inherited_from \Zend\Barcode\Object\Code25interleaved::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\Code25::setText()
inherited_from \Zend\Barcode\Object\Code25interleaved::setText()

Parameters

$value

string

Returns

Activate/deactivate drawing of bearer bars

setWithBearerBars(bool $value) : \Zend\Barcode\Object\Code25
Inherited

inherited_from \Zend\Barcode\Object\Code25interleaved::setWithBearerBars()

Parameters

$value

bool

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\Code25::setWithBorder()
inherited_from \Zend\Barcode\Object\Code25interleaved::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\Code25::setWithChecksum()
inherited_from \Zend\Barcode\Object\Code25interleaved::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\Code25::setWithChecksumInText()
inherited_from \Zend\Barcode\Object\Code25interleaved::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\Code25::setWithQuietZones()
inherited_from \Zend\Barcode\Object\Code25interleaved::setWithQuietZones()

Parameters

$value

bool

Returns

Check allowed characters

validateText(string $value) : string

Parameters

$value

string

Exceptions

\Zend\Barcode\Object\Exception\BarcodeValidationException

Returns

string

Add an instruction in the array of instructions

addInstruction(array $instruction) 
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::addInstruction()
inherited_from \Zend\Barcode\Object\Code25::addInstruction()
inherited_from \Zend\Barcode\Object\Code25interleaved::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\Code25::addLeadingZeros()
inherited_from \Zend\Barcode\Object\Code25interleaved::addLeadingZeros()

Parameters

$text

string

$withoutChecksum

bool

Returns

string

Add a polygon drawing instruction in the set of instructions

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

inherited_from \Zend\Barcode\Object\AbstractObject::addPolygon()
inherited_from \Zend\Barcode\Object\Code25::addPolygon()
inherited_from \Zend\Barcode\Object\Code25interleaved::addPolygon()

Parameters

$points

array

$color

int

$filled

bool

Add a text drawing instruction in the set of instructions

addText(string $text, float $size, int[] $position, string $font, int $color, string $alignment, float $orientation) 
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::addText()
inherited_from \Zend\Barcode\Object\Code25::addText()
inherited_from \Zend\Barcode\Object\Code25interleaved::addText()

Parameters

$text

string

$size

float

$position

int[]

$font

string

$color

int

$alignment

string

$orientation

float

Height of the barcode

calculateBarcodeHeight() : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::calculateBarcodeHeight()
inherited_from \Zend\Barcode\Object\Code25::calculateBarcodeHeight()
inherited_from \Zend\Barcode\Object\Code25interleaved::calculateBarcodeHeight()

Returns

int

Width of the barcode (in pixels)

calculateBarcodeWidth() : int
Inherited

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

Returns

int

Height of the result object

calculateHeight() : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::calculateHeight()
inherited_from \Zend\Barcode\Object\Code25::calculateHeight()
inherited_from \Zend\Barcode\Object\Code25interleaved::calculateHeight()

Returns

int

Width of the result image (before any rotation)

calculateWidth() : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::calculateWidth()
inherited_from \Zend\Barcode\Object\Code25::calculateWidth()
inherited_from \Zend\Barcode\Object\Code25interleaved::calculateWidth()

Returns

int

Drawing with an angle is just allow TTF font

checkFontAndOrientation() 
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::checkFontAndOrientation()
inherited_from \Zend\Barcode\Object\Code25::checkFontAndOrientation()
inherited_from \Zend\Barcode\Object\Code25interleaved::checkFontAndOrientation()

Exceptions

\Zend\Barcode\Object\Exception\ExceptionInterface

Check the ratio between the thick and the thin bar

checkRatio(int $min, int $max) 
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::checkRatio()
inherited_from \Zend\Barcode\Object\Code25::checkRatio()
inherited_from \Zend\Barcode\Object\Code25interleaved::checkRatio()

Parameters

$min

int

$max

int

Exceptions

\Zend\Barcode\Object\Exception\ExceptionInterface

Partial check of interleaved 2 of 5 barcode

checkSpecificParams() : void
Inherited

inherited_from \Zend\Barcode\Object\Code25::checkSpecificParams()
inherited_from \Zend\Barcode\Object\Code25interleaved::checkSpecificParams()

Check if a text is really provided to barcode

checkText(string | null $value) 
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::checkText()
inherited_from \Zend\Barcode\Object\Code25::checkText()
inherited_from \Zend\Barcode\Object\Code25interleaved::checkText()

Parameters

$value

stringnull

Exceptions

\Zend\Barcode\Object\Exception\ExceptionInterface

Draw the barcode

drawBarcode() 
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::drawBarcode()
inherited_from \Zend\Barcode\Object\Code25::drawBarcode()
inherited_from \Zend\Barcode\Object\Code25interleaved::drawBarcode()

Partial function to draw border

drawBorder() 
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::drawBorder()
inherited_from \Zend\Barcode\Object\Code25::drawBorder()
inherited_from \Zend\Barcode\Object\Code25interleaved::drawBorder()

Partial function to draw text

drawText() 
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::drawText()
inherited_from \Zend\Barcode\Object\Code25::drawText()
inherited_from \Zend\Barcode\Object\Code25interleaved::drawText()

Default options for Identcode barcode

getDefaultOptions() : void

Drawing of bearer bars (if enabled)

postDrawBarcode() : void
Inherited

inherited_from \Zend\Barcode\Object\Code25interleaved::postDrawBarcode()

Allow each child to draw something else

preDrawBarcode() 
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::preDrawBarcode()
inherited_from \Zend\Barcode\Object\Code25::preDrawBarcode()
inherited_from \Zend\Barcode\Object\Code25interleaved::preDrawBarcode()

Prepare array to draw barcode

prepareBarcode() : array
Inherited

.. )

inherited_from \Zend\Barcode\Object\Code25interleaved::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\Code25::rotate()
inherited_from \Zend\Barcode\Object\Code25interleaved::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\Code25::validateSpecificText()
inherited_from \Zend\Barcode\Object\Code25interleaved::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\Code25::$$addLeadingZeros
inherited_from \Zend\Barcode\Object\Code25interleaved::$$addLeadingZeros
 

Background color of the object

$backgroundColor : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$backgroundColor
inherited_from \Zend\Barcode\Object\Code25::$$backgroundColor
inherited_from \Zend\Barcode\Object\Code25interleaved::$$backgroundColor
 

Height of the bar

$barHeight : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$barHeight
inherited_from \Zend\Barcode\Object\Code25::$$barHeight
inherited_from \Zend\Barcode\Object\Code25interleaved::$$barHeight
 

Width of a thick bar

$barThickWidth : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$barThickWidth
inherited_from \Zend\Barcode\Object\Code25::$$barThickWidth
inherited_from \Zend\Barcode\Object\Code25interleaved::$$barThickWidth
 

Width of a thin bar

$barThinWidth : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$barThinWidth
inherited_from \Zend\Barcode\Object\Code25::$$barThinWidth
inherited_from \Zend\Barcode\Object\Code25interleaved::$$barThinWidth
 

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

$barcodeLength : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$barcodeLength
inherited_from \Zend\Barcode\Object\Code25::$$barcodeLength
inherited_from \Zend\Barcode\Object\Code25interleaved::$$barcodeLength
 

Namespace of the barcode for autoloading

$barcodeNamespace : string
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$barcodeNamespace
inherited_from \Zend\Barcode\Object\Code25::$$barcodeNamespace
inherited_from \Zend\Barcode\Object\Code25interleaved::$$barcodeNamespace
 

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

$codingMap : array
Inherited

inherited_from \Zend\Barcode\Object\Code25::$$codingMap
inherited_from \Zend\Barcode\Object\Code25interleaved::$$codingMap
 

Display (or not) human readable text

$drawText : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$drawText
inherited_from \Zend\Barcode\Object\Code25::$$drawText
inherited_from \Zend\Barcode\Object\Code25interleaved::$$drawText
 

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

$factor : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$factor
inherited_from \Zend\Barcode\Object\Code25::$$factor
inherited_from \Zend\Barcode\Object\Code25interleaved::$$factor
 

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

$font : int | string
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$font
inherited_from \Zend\Barcode\Object\Code25::$$font
inherited_from \Zend\Barcode\Object\Code25interleaved::$$font
 

Font size

$fontSize : float
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$fontSize
inherited_from \Zend\Barcode\Object\Code25::$$fontSize
inherited_from \Zend\Barcode\Object\Code25interleaved::$$fontSize
 

Font and bars color of the object

$foreColor : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$foreColor
inherited_from \Zend\Barcode\Object\Code25::$$foreColor
inherited_from \Zend\Barcode\Object\Code25interleaved::$$foreColor
 

Height of the object

$height : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$height
inherited_from \Zend\Barcode\Object\Code25::$$height
inherited_from \Zend\Barcode\Object\Code25interleaved::$$height
 

Set of drawing instructions

$instructions : array
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$instructions
inherited_from \Zend\Barcode\Object\Code25::$$instructions
inherited_from \Zend\Barcode\Object\Code25interleaved::$$instructions
 

Activation of mandatory checksum to deactivate unauthorized modification

$mandatoryChecksum : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$mandatoryChecksum
inherited_from \Zend\Barcode\Object\Code25::$$mandatoryChecksum
inherited_from \Zend\Barcode\Object\Code25interleaved::$$mandatoryChecksum
 

Force quiet zones even if

$mandatoryQuietZones : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$mandatoryQuietZones
inherited_from \Zend\Barcode\Object\Code25::$$mandatoryQuietZones
inherited_from \Zend\Barcode\Object\Code25interleaved::$$mandatoryQuietZones
 

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

$offsetLeft : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$offsetLeft
inherited_from \Zend\Barcode\Object\Code25::$$offsetLeft
inherited_from \Zend\Barcode\Object\Code25interleaved::$$offsetLeft
 

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

$offsetTop : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$offsetTop
inherited_from \Zend\Barcode\Object\Code25::$$offsetTop
inherited_from \Zend\Barcode\Object\Code25interleaved::$$offsetTop
 

Orientation of the barcode in degrees

$orientation : float
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$orientation
inherited_from \Zend\Barcode\Object\Code25::$$orientation
inherited_from \Zend\Barcode\Object\Code25interleaved::$$orientation
 

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\Code25::$$stretchText
inherited_from \Zend\Barcode\Object\Code25interleaved::$$stretchText
 

Character used to substitute checksum character for validation

$substituteChecksumCharacter : mixed
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$substituteChecksumCharacter
inherited_from \Zend\Barcode\Object\Code25::$$substituteChecksumCharacter
inherited_from \Zend\Barcode\Object\Code25interleaved::$$substituteChecksumCharacter
 

Text to display

$text : string
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$text
inherited_from \Zend\Barcode\Object\Code25::$$text
inherited_from \Zend\Barcode\Object\Code25interleaved::$$text
 

Barcode type

$type : string
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$type
inherited_from \Zend\Barcode\Object\Code25::$$type
inherited_from \Zend\Barcode\Object\Code25interleaved::$$type
 

Width of the object

$width : int
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$width
inherited_from \Zend\Barcode\Object\Code25::$$width
inherited_from \Zend\Barcode\Object\Code25interleaved::$$width
 

Activate/deactivate border of the object

$withBorder : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$withBorder
inherited_from \Zend\Barcode\Object\Code25::$$withBorder
inherited_from \Zend\Barcode\Object\Code25interleaved::$$withBorder
 

Drawing of checksum

$withChecksum : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$withChecksum
inherited_from \Zend\Barcode\Object\Code25::$$withChecksum
inherited_from \Zend\Barcode\Object\Code25interleaved::$$withChecksum
 

Drawing of checksum inside text

$withChecksumInText : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$withChecksumInText
inherited_from \Zend\Barcode\Object\Code25::$$withChecksumInText
inherited_from \Zend\Barcode\Object\Code25interleaved::$$withChecksumInText
 

Activate/deactivate drawing of quiet zones

$withQuietZones : bool
Inherited

inherited_from \Zend\Barcode\Object\AbstractObject::$$withQuietZones
inherited_from \Zend\Barcode\Object\Code25::$$withQuietZones
inherited_from \Zend\Barcode\Object\Code25interleaved::$$withQuietZones
 

Drawing of bearer bars

$withBearerBars : bool
Inherited

inherited_from \Zend\Barcode\Object\Code25interleaved::$$withBearerBars