__construct()
checkParams()
draw()
getBackgroundColor()
getBarHeight()
getBarThickWidth()
getBarThinWidth()
getBarcodeNamespace()
getDrawText()
getFactor()
getFont()
getFontSize()
getForeColor()
getHeight()
getInstructions()
getOffsetLeft()
getOffsetTop()
getOrientation()
getQuietZone()
getRawText()
getStretchText()
getText()
getTextToDisplay()
getType()
getWidth()
getWithBorder()
getWithChecksum()
getWithChecksumInText()
getWithQuietZones()
setBackgroundColor()
setBarHeight()
setBarThickWidth()
setBarThinWidth()
setBarcodeNamespace()
setDrawText()
setFactor()
setFont()
setFontSize()
setForeColor()
setOptions()
setOrientation()
setReverseColor()
setStretchText()
setText()
setWithBorder()
setWithChecksum()
setWithChecksumInText()
setWithQuietZones()
validateText()
addInstruction()
addLeadingZeros()
addPolygon()
addText()
calculateBarcodeHeight()
calculateBarcodeWidth()
calculateHeight()
calculateWidth()
checkFontAndOrientation()
checkRatio()
checkSpecificParams()
checkText()
drawBarcode()
drawBorder()
drawText()
getDefaultOptions()
postDrawBarcode()
preDrawBarcode()
prepareBarcode()
rotate()
validateSpecificText()
$addLeadingZeros
$backgroundColor
$barHeight
$barThickWidth
$barThinWidth
$barcodeLength
$barcodeNamespace
$drawText
$factor
$font
$fontSize
$foreColor
$height
$instructions
$mandatoryChecksum
$mandatoryQuietZones
$offsetLeft
$offsetTop
$orientation
$stretchText
$substituteChecksumCharacter
$text
$type
$width
$withBorder
$withChecksum
$withChecksumInText
$withQuietZones
Class for generate Barcode
__construct(array | \Traversable $options)
array\Traversable
checkParams() : bool
booldraw() : array
arrayTable of instructionsgetBackgroundColor() : int
intgetBarHeight() : int
intgetBarThickWidth() : int
intgetBarThinWidth() : int
intgetBarcodeNamespace() : string
stringgetDrawText() : bool
boolgetFactor() : int
intgetFont() : int | string
intstring
getFontSize() : float
floatgetForeColor() : int
intgetHeight(bool $recalculate) : int
bool
intgetInstructions() : array
arraygetOffsetLeft(bool $recalculate) : float
bool
floatgetOffsetTop(bool $recalculate) : float
bool
floatgetOrientation() : float
floatgetQuietZone() : int
intgetRawText() : string
stringgetStretchText() : bool
boolgetText() : string
stringgetTextToDisplay() : string
stringgetType() : string
stringgetWidth(bool $recalculate) : int
bool
intgetWithBorder() : bool
boolgetWithChecksum() : bool
boolgetWithChecksumInText() : bool
boolgetWithQuietZones() : bool
boolsetBackgroundColor(int $value) : \Zend\Barcode\Object\ObjectInterface
setBarHeight(int $value) : \Zend\Barcode\Object\ObjectInterface
setBarThickWidth(int $value) : \Zend\Barcode\Object\ObjectInterface
setBarThinWidth(int $value) : \Zend\Barcode\Object\ObjectInterface
setBarcodeNamespace(string $namespace) : \Zend\Barcode\Object\ObjectInterface
setDrawText(bool $value) : \Zend\Barcode\Object\ObjectInterface
setFactor(int | float | string | bool $value) : \Zend\Barcode\Object\ObjectInterface
intfloatstringbool
\Zend\Barcode\Object\Exception\ExceptionInterface |
|---|
setFont(int | string $value) : \Zend\Barcode\Object\ObjectInterface
setFontSize(float $value) : \Zend\Barcode\Object\ObjectInterface
setForeColor(string $value) : \Zend\Barcode\Object\ObjectInterface
setOptions(array $options) : \Zend\Barcode\Object\ObjectInterface
setOrientation(int | float | string | bool $value) : \Zend\Barcode\Object\ObjectInterface
intfloatstringbool
\Zend\Barcode\Object\Exception\ExceptionInterface |
|---|
setReverseColor() : \Zend\Barcode\Object\ObjectInterface
setStretchText(bool $value) : \Zend\Barcode\Object\ObjectInterface
setWithBorder(bool $value) : \Zend\Barcode\Object\ObjectInterface
setWithChecksum(bool $value) : \Zend\Barcode\Object\ObjectInterface
setWithChecksumInText(bool $value) : \Zend\Barcode\Object\ObjectInterface
setWithQuietZones(bool $value) : \Zend\Barcode\Object\AbstractObject
validateText(string $value) : void
stringText to be checked
addInstruction(array $instruction)
array
addLeadingZeros(string $text, bool $withoutChecksum) : string
string
bool
stringaddPolygon(array $points, int $color, bool $filled)
array
int
bool
addText(string $text, float $size, int[] $position, string $font, int $color, string $alignment, float | int $orientation)
string
float
int[]
string
int
string
floatint
calculateBarcodeHeight() : int
intcalculateBarcodeWidth() : int
intcalculateHeight() : int
intcalculateWidth() : int
intcheckFontAndOrientation()
checkRatio(int $min, int $max)
checkSpecificParams()
checkText(string | null $value)
drawBarcode()
drawBorder()
drawText()
getDefaultOptions()
postDrawBarcode()
preDrawBarcode()
prepareBarcode() : array
.. )
arrayrotate(float $x1, float $y1) : array
floatx-position before rotation
floaty-position before rotation
arrayArray of two elements corresponding to the new XY pointvalidateSpecificText(string $value, array $options)
string
array
$addLeadingZeros : bool
$backgroundColor : int
$drawText : bool
$factor : int
$font : int | string
$fontSize : float
$foreColor : int
$height : int
$instructions : array
$mandatoryChecksum : bool
$mandatoryQuietZones : bool
$offsetLeft : int
$offsetTop : int
$orientation : float
$stretchText : bool
$substituteChecksumCharacter : mixed
$text : string
$type : string
$width : int
$withBorder : bool
$withChecksum : bool
$withChecksumInText : bool
$withQuietZones : bool