dolibarr 21.0.0-beta
ModeleBarCode Class Reference
Inheritance diagram for ModeleBarCode:

Public Member Functions

 isEnabled ()
 Return if a model can be used or not.
 
 info ($langs)
 Return description.
 
 writeBarCode ($code, $encoding, $readable='Y', $scale=1, $nooutputiferror=0)
 Save an image file on disk (with no output)
 
 encodingIsSupported ($encoding)
 Return true if encoding is supported.
 

Detailed Description

Definition at line 35 of file modules_barcode.class.php.

Member Function Documentation

◆ encodingIsSupported()

ModeleBarCode::encodingIsSupported ( $encoding)
abstract

Return true if encoding is supported.

Parameters
string$encodingEncoding norm
Returns
int >0 if supported, 0 if not

Reimplemented in modPhpbarcode, and modTcpdfbarcode.

◆ info()

ModeleBarCode::info ( $langs)
abstract

Return description.

Parameters
Translate$langsLang object to use for output
Returns
string Descriptive text

Reimplemented in modPhpbarcode, and modTcpdfbarcode.

◆ isEnabled()

ModeleBarCode::isEnabled ( )

Return if a model can be used or not.

Returns
boolean true if model can be used

Reimplemented in modPhpbarcode, and modTcpdfbarcode.

Definition at line 48 of file modules_barcode.class.php.

◆ writeBarCode()

ModeleBarCode::writeBarCode ( $code,
$encoding,
$readable = 'Y',
$scale = 1,
$nooutputiferror = 0 )

Save an image file on disk (with no output)

Parameters
string$codeValue to encode
string$encodingMode of encoding ('QRCODE', 'EAN13', ...)
string$readableCode can be read
integer$scaleScale (not used with this engine)
integer$nooutputiferrorNo output if error (not used with this engine)
Returns
int Return integer <0 if KO, >0 if OK

Reimplemented in modPhpbarcode, and modTcpdfbarcode.

Definition at line 73 of file modules_barcode.class.php.


The documentation for this class was generated from the following file: