mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Better separation between function to write a barcode on file and function to output a barcode on the fly.
This commit is contained in:
@@ -85,12 +85,12 @@ class modPhpbarcode extends ModeleBarCode
|
||||
return $supported;
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Return an image file on output
|
||||
* \param $code Valeur num<75>rique a coder
|
||||
* \param $encoding Mode de codage
|
||||
* \param $readable Code lisible
|
||||
*/
|
||||
/**
|
||||
* \brief Return an image file on the fly (no need to write on disk)
|
||||
* \param $code Value to encode
|
||||
* \param $encoding Mode of encoding
|
||||
* \param $readable Code can be read
|
||||
*/
|
||||
function buildBarCode($code,$encoding,$readable='Y')
|
||||
{
|
||||
global $_GET,$_ENV,$_SERVER;
|
||||
@@ -117,10 +117,10 @@ class modPhpbarcode extends ModeleBarCode
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Save an image file on disk
|
||||
* \param $code Valeur num<75>rique a coder
|
||||
* \param $encoding Mode de codage
|
||||
* \param $readable Code lisible
|
||||
* \brief Save an image file on disk (with no output)
|
||||
* \param $code Value to encode
|
||||
* \param $encoding Mode of encoding
|
||||
* \param $readable Code can be read
|
||||
*/
|
||||
function writeBarCode($code,$encoding,$readable='Y')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user