dolibarr 21.0.0-beta
|
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 34 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 137 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 82 of file phpbarcode.modules.php.
modPhpbarcode::encodingIsSupported | ( | $encoding | ) |
Return true if encoding is supported.
string | $encoding | Encoding norm |
Reimplemented from ModeleBarCode.
Definition at line 96 of file phpbarcode.modules.php.
Referenced by buildBarCode().
modPhpbarcode::info | ( | $langs | ) |
Return description.
Translate | $langs | Lang object to use for output |
Reimplemented from ModeleBarCode.
Definition at line 65 of file phpbarcode.modules.php.
modPhpbarcode::isEnabled | ( | ) |
Return if a module can be used or not.
Reimplemented from ModeleBarCode.
Definition at line 53 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 188 of file phpbarcode.modules.php.
References $conf, buildBarCode(), dol_hash(), dol_mkdir(), dol_strlen(), and dol_syslog().