modPhpbarcode
class modPhpbarcode extends ModeleBarCode (View source)
Class to generate barcode images using php barcode generator
Properties
| string | $error | ||
| string | $version | Dolibarr version of the loaded document |
Methods
Return if a module can be used or not
Return description
Save an image file on disk (with no output)
Return an image file on the fly (no need to write on disk) with the HTTP content-type of image.
Return true if encoding is supported
Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working.
Details
bool
isEnabled()
Return if a module can be used or not
@return boolean true if module can be used
string
info($langs)
Return description
int
writeBarCode(string $code, string $encoding, string $readable = 'Y', int $scale = 1, $nooutputiferror = 0)
Save an image file on disk (with no output)
int
buildBarCode(string $code, string $encoding, string $readable = 'Y', int $scale = 1, $nooutputiferror = 0)
Return an image file on the fly (no need to write on disk) with the HTTP content-type of image.
int
encodingIsSupported($encoding)
Return true if encoding is supported
canBeActivated(object $object)
Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working.