Better separation between function to write a barcode on file and function to output a barcode on the fly.

This commit is contained in:
Laurent Destailleur
2009-05-04 09:57:08 +00:00
parent 8855f5dcf2
commit ec7cd0bd04
2 changed files with 12 additions and 12 deletions

View File

@@ -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')
{