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


Public Member Functions | |
| isEnabled () | |
| Return if a module can be used or not. | |
| info ($langs) | |
| Return description. | |
| 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) | |
| Return an image file on the fly (no need to write on disk) with the HTTP content-type of image. | |
| writeBarCode ($code, $encoding, $readable='Y', $scale=1, $nooutputiferror=0) | |
| Save an image file on disk (with no output) | |
Class to generate barcode images using php barcode generator.
Definition at line 33 of file phpbarcode.modules.php.
| modPhpbarcode::buildBarCode | ( | $code, | |
| $encoding, | |||
| $readable = 'Y', | |||
| $scale = 1, | |||
| $nooutputiferror = 0 ) |
Return an image file on the fly (no need to write on disk) with the HTTP content-type 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 |
| integer | $nooutputiferror | No output if error |
Definition at line 136 of file phpbarcode.modules.php.
References barcode_print(), dol_escape_htmltag(), dol_syslog(), and encodingIsSupported().
Referenced by writeBarCode().
| modPhpbarcode::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 81 of file phpbarcode.modules.php.
| modPhpbarcode::encodingIsSupported | ( | $encoding | ) |
Return true if encoding is supported.
| string | $encoding | Encoding norm |
Definition at line 95 of file phpbarcode.modules.php.
Referenced by buildBarCode().
| modPhpbarcode::info | ( | $langs | ) |
Return description.
| Translate | $langs | Lang object to use for output |
Definition at line 64 of file phpbarcode.modules.php.
| modPhpbarcode::isEnabled | ( | ) |
Return if a module can be used or not.
Reimplemented from ModeleBarCode.
Definition at line 52 of file phpbarcode.modules.php.
| modPhpbarcode::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 |
| string | $readable | Code can be read |
| integer | $scale | Scale |
| integer | $nooutputiferror | No output if error |
Reimplemented from ModeleBarCode.
Definition at line 187 of file phpbarcode.modules.php.
References buildBarCode(), dol_hash(), dol_mkdir(), dol_strlen(), and dol_syslog().