FormBarCode
class FormBarCode (View source)
Class to manage barcode HTML
Properties
| DoliDB | $db | ||
| string | $error |
Methods
Constructor
Return HTML select with list of bar code generators
Print form to select type of barcode
Return html form to select type of barcode
Show form to select type of barcode
Return html form to select type of barcode
Details
__construct($db)
Constructor
@param DoliDB $db Database handler
setBarcodeEncoder($selected, array<string, string> $barcodelist, $code_id, $idForm = 'formbarcode')
Return HTML select with list of bar code generators
@param int $selected Id code pre-selected
select_barcode_type($selected = 0, string $htmlname = 'barcodetype_id', $useempty = 0)
Print form to select type of barcode
@param int $selected Id code pre-selected
selectBarcodeType($selected = 0, string $htmlname = 'barcodetype_id', $useempty = 0)
Return html form to select type of barcode
@param int $selected Id code pre-selected
form_barcode_type($page, int $selected = 0, $htmlname = 'barcodetype_id')
Show form to select type of barcode
@param string $page Page
formBarcodeType($page, int $selected = 0, $htmlname = 'barcodetype_id')
Return html form to select type of barcode
@param string $page Page