1280. Function

1280.1. Zend\Barcode\Object\__construct

ZendBarcodeObject__construct()

Constructor

Parameters:array|Traversable

1281. Function

1281.1. Zend\Barcode\Object\setOptions

ZendBarcodeObjectsetOptions()

Set barcode state from options array

Parameters:array
Return type:ObjectInterface

1282. Function

1282.1. Zend\Barcode\Object\setBarcodeNamespace

ZendBarcodeObjectsetBarcodeNamespace()

Set barcode namespace for autoloading

Parameters:string
Return type:ObjectInterface

1283. Function

1283.1. Zend\Barcode\Object\getBarcodeNamespace

ZendBarcodeObjectgetBarcodeNamespace()

Retrieve barcode namespace

Return type:string

1284. Function

1284.1. Zend\Barcode\Object\getType

ZendBarcodeObjectgetType()

Retrieve type of barcode

Return type:string

1285. Function

1285.1. Zend\Barcode\Object\setBarHeight

ZendBarcodeObjectsetBarHeight()

Set height of the barcode bar

Parameters:integer
Return type:ObjectInterface

1286. Function

1286.1. Zend\Barcode\Object\getBarHeight

ZendBarcodeObjectgetBarHeight()

Get height of the barcode bar

Return type:integer

1287. Function

1287.1. Zend\Barcode\Object\setBarThinWidth

ZendBarcodeObjectsetBarThinWidth()

Set thickness of thin bar

Parameters:integer
Return type:ObjectInterface

1288. Function

1288.1. Zend\Barcode\Object\getBarThinWidth

ZendBarcodeObjectgetBarThinWidth()

Get thickness of thin bar

Return type:integer

1289. Function

1289.1. Zend\Barcode\Object\setBarThickWidth

ZendBarcodeObjectsetBarThickWidth()

Set thickness of thick bar

Parameters:integer
Return type:ObjectInterface

1290. Function

1290.1. Zend\Barcode\Object\getBarThickWidth

ZendBarcodeObjectgetBarThickWidth()

Get thickness of thick bar

Return type:integer

1291. Function

1291.1. Zend\Barcode\Object\setFactor

ZendBarcodeObjectsetFactor()

Set factor applying to thinBarWidth - thickBarWidth - barHeight - fontSize

Parameters:integer
Return type:ObjectInterface

1292. Function

1292.1. Zend\Barcode\Object\getFactor

ZendBarcodeObjectgetFactor()

Get factor applying to thinBarWidth - thickBarWidth - barHeight - fontSize

Return type:integer

1293. Function

1293.1. Zend\Barcode\Object\setForeColor

ZendBarcodeObjectsetForeColor()

Set color of the barcode and text

Parameters:string
Return type:ObjectInterface

1294. Function

1294.1. Zend\Barcode\Object\getForeColor

ZendBarcodeObjectgetForeColor()

Retrieve color of the barcode and text

Return type:integer

1295. Function

1295.1. Zend\Barcode\Object\setBackgroundColor

ZendBarcodeObjectsetBackgroundColor()

Set the color of the background

Parameters:integer
Return type:ObjectInterface

1296. Function

1296.1. Zend\Barcode\Object\getBackgroundColor

ZendBarcodeObjectgetBackgroundColor()

Retrieve background color of the image

Return type:integer

1297. Function

1297.1. Zend\Barcode\Object\setWithBorder

ZendBarcodeObjectsetWithBorder()

Activate/deactivate drawing of the bar

Parameters:bool
Return type:ObjectInterface

1298. Function

1298.1. Zend\Barcode\Object\getWithBorder

ZendBarcodeObjectgetWithBorder()

Retrieve if border are draw or not

Return type:bool

1299. Function

1299.1. Zend\Barcode\Object\setReverseColor

ZendBarcodeObjectsetReverseColor()

Allow fast inversion of font/bars color and background color

Return type:ObjectInterface

1300. Function

1300.1. Zend\Barcode\Object\setOrientation

ZendBarcodeObjectsetOrientation()

Set orientation of barcode and text

Parameters:float
Return type:ObjectInterface

1301. Function

1301.1. Zend\Barcode\Object\getOrientation

ZendBarcodeObjectgetOrientation()

Retrieve orientation of barcode and text

Return type:float

1302. Function

1302.1. Zend\Barcode\Object\setText

ZendBarcodeObjectsetText()

Set text to encode

Parameters:string
Return type:ObjectInterface

1303. Function

1303.1. Zend\Barcode\Object\getText

ZendBarcodeObjectgetText()

Retrieve text to encode

Return type:string

1304. Function

1304.1. Zend\Barcode\Object\getRawText

ZendBarcodeObjectgetRawText()

Retrieve text to encode

Return type:string

1305. Function

1305.1. Zend\Barcode\Object\getTextToDisplay

ZendBarcodeObjectgetTextToDisplay()

Retrieve text to display

Return type:string

1306. Function

1306.1. Zend\Barcode\Object\setDrawText

ZendBarcodeObjectsetDrawText()

Activate/deactivate drawing of text to encode

Parameters:bool
Return type:ObjectInterface

1307. Function

1307.1. Zend\Barcode\Object\getDrawText

ZendBarcodeObjectgetDrawText()

Retrieve if drawing of text to encode is enabled

Return type:bool

1308. Function

1308.1. Zend\Barcode\Object\setStretchText

ZendBarcodeObjectsetStretchText()

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

Parameters:bool
Return type:ObjectInterface

1309. Function

1309.1. Zend\Barcode\Object\getStretchText

ZendBarcodeObjectgetStretchText()

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

Return type:bool

1310. Function

1310.1. Zend\Barcode\Object\setWithChecksum

ZendBarcodeObjectsetWithChecksum()

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

Parameters:bool
Return type:ObjectInterface

1311. Function

1311.1. Zend\Barcode\Object\getWithChecksum

ZendBarcodeObjectgetWithChecksum()

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

Return type:bool

1312. Function

1312.1. Zend\Barcode\Object\setWithChecksumInText

ZendBarcodeObjectsetWithChecksumInText()

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

Parameters:bool
Return type:ObjectInterface

1313. Function

1313.1. Zend\Barcode\Object\getWithChecksumInText

ZendBarcodeObjectgetWithChecksumInText()

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

Return type:bool

1314. Function

1314.1. Zend\Barcode\Object\setFont

ZendBarcodeObjectsetFont()
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
Parameters:integer|string
Return type:ObjectInterface

1315. Function

1315.1. Zend\Barcode\Object\getFont

ZendBarcodeObjectgetFont()

Retrieve the font

Return type:integer|string

1316. Function

1316.1. Zend\Barcode\Object\setFontSize

ZendBarcodeObjectsetFontSize()

Set the size of the font in case of TTF

Parameters:float
Return type:ObjectInterface

1317. Function

1317.1. Zend\Barcode\Object\getFontSize

ZendBarcodeObjectgetFontSize()

Retrieve the size of the font in case of TTF

Return type:float

1318. Function

1318.1. Zend\Barcode\Object\getQuietZone

ZendBarcodeObjectgetQuietZone()

Quiet zone before first bar and after the last bar

Return type:integer

1319. Function

1319.1. Zend\Barcode\Object\getInstructions

ZendBarcodeObjectgetInstructions()

Retrieve the set of drawing instructions

Return type:array

1320. Function

1320.1. Zend\Barcode\Object\checkParams

ZendBarcodeObjectcheckParams()

Checking of parameters after all settings

Return type:void

1321. Function

1321.1. Zend\Barcode\Object\getHeight

ZendBarcodeObjectgetHeight()

Get height of the result object

Parameters:bool
Return type:integer

1322. Function

1322.1. Zend\Barcode\Object\getWidth

ZendBarcodeObjectgetWidth()

Get width of the result object

Parameters:bool
Return type:integer

1323. Function

1323.1. Zend\Barcode\Object\getOffsetLeft

ZendBarcodeObjectgetOffsetLeft()

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

Parameters:bool
Return type:float

1324. Function

1324.1. Zend\Barcode\Object\getOffsetTop

ZendBarcodeObjectgetOffsetTop()

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

Parameters:bool
Return type:float

1325. Function

1325.1. Zend\Barcode\Object\draw

ZendBarcodeObjectdraw()

Complete drawing of the barcode

Return type:array Table of instructions

1326. Function

1326.1. Zend\Barcode\Object\validateText

ZendBarcodeObjectvalidateText()

Check for invalid characters

Parameters:string – Text to be checked
Return type:void

Project Versions

Table Of Contents

Previous topic

1279. Class

Next topic

1327. Class

This Page