|
dolibarr 20.0.5
|
Class to generate barcode images using tcpdf barcode generator. More...


Public Member Functions | |
| info ($langs) | |
| Return description of numbering model. | |
| isEnabled () | |
| Return if a module can be used or not. | |
| canBeActivated ($object) | |
| Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working. | |
| encodingIsSupported ($encoding) | |
| Return true if encoding is supported. | |
| buildBarCode ($code, $encoding, $readable='Y', $scale=1, $nooutputiferror=0, $filebarcode='') | |
| Return an image file on the fly (no need to write on disk) with the HTTP content-type (generated by TCPDF) of image. | |
| writeBarCode ($code, $encoding, $readable='Y', $scale=1, $nooutputiferror=0) | |
| Save an image file on disk (with no output) | |
| getTcpdfEncodingType ($dolEncodingType) | |
| get available output_modes for tcpdf class with its translated description | |
Class to generate barcode images using tcpdf barcode generator.
Definition at line 33 of file tcpdfbarcode.modules.php.
| modTcpdfbarcode::buildBarCode | ( | $code, | |
| $encoding, | |||
| $readable = 'Y', | |||
| $scale = 1, | |||
| $nooutputiferror = 0, | |||
| $filebarcode = '' ) |
Return an image file on the fly (no need to write on disk) with the HTTP content-type (generated by TCPDF) of image.
| string | $code | Value to encode |
| string | $encoding | Mode of encoding |
| string | $readable | Code can be read (What is this ? is this used ?) |
| integer | $scale | Scale (not used with this engine) |
| integer | $nooutputiferror | No output if error (not used with this engine) |
| string | $filebarcode | Filename to store barcode image file (instead of output it). Not supported by this driver. |
Definition at line 108 of file tcpdfbarcode.modules.php.
References dol_syslog(), and getTcpdfEncodingType().
| modTcpdfbarcode::canBeActivated | ( | $object | ) |
Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working.
| Object | $object | Object we need next value for |
Definition at line 76 of file tcpdfbarcode.modules.php.
| modTcpdfbarcode::encodingIsSupported | ( | $encoding | ) |
Return true if encoding is supported.
| string | $encoding | Encoding norm |
Definition at line 87 of file tcpdfbarcode.modules.php.
References getTcpdfEncodingType().
| modTcpdfbarcode::getTcpdfEncodingType | ( | $dolEncodingType | ) |
get available output_modes for tcpdf class with its translated description
| string | $dolEncodingType | dolibarr barcode encoding type |
Definition at line 237 of file tcpdfbarcode.modules.php.
Referenced by buildBarCode(), encodingIsSupported(), and writeBarCode().
| modTcpdfbarcode::info | ( | $langs | ) |
Return description of numbering model.
| Translate | $langs | Lang object to use for output |
Definition at line 54 of file tcpdfbarcode.modules.php.
| modTcpdfbarcode::isEnabled | ( | ) |
Return if a module can be used or not.
Reimplemented from ModeleBarCode.
Definition at line 64 of file tcpdfbarcode.modules.php.
| modTcpdfbarcode::writeBarCode | ( | $code, | |
| $encoding, | |||
| $readable = 'Y', | |||
| $scale = 1, | |||
| $nooutputiferror = 0 ) |
Save an image file on disk (with no output)
| string | $code | Value to encode |
| string | $encoding | Mode of encoding ('QRCODE', 'EAN13', ...) |
| string | $readable | Code can be read |
| integer | $scale | Scale (not used with this engine) |
| integer | $nooutputiferror | No output if error (not used with this engine) |
Reimplemented from ModeleBarCode.
Definition at line 154 of file tcpdfbarcode.modules.php.
References dol_hash(), dol_mkdir(), dol_strlen(), dol_syslog(), and getTcpdfEncodingType().