dolibarr 21.0.0-beta
FormBarCode Class Reference

Class to manage barcode HTML. More...

Public Member Functions

 __construct ($db)
 Constructor.
 
 setBarcodeEncoder ($selected, $barcodelist, $code_id, $idForm='formbarcode')
 Return HTML select with list of bar code generators.
 
 select_barcode_type ($selected=0, $htmlname='barcodetype_id', $useempty=0)
 Print form to select type of barcode.
 
 selectBarcodeType ($selected=0, $htmlname='barcodetype_id', $useempty=0)
 Return html form to select type of barcode.
 
 form_barcode_type ($page, $selected=0, $htmlname='barcodetype_id')
 Show form to select type of barcode.
 
 formBarcodeType ($page, $selected=0, $htmlname='barcodetype_id')
 Return html form to select type of barcode.
 

Detailed Description

Class to manage barcode HTML.

Definition at line 31 of file html.formbarcode.class.php.

Constructor & Destructor Documentation

◆ __construct()

FormBarCode::__construct ( $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 49 of file html.formbarcode.class.php.

Member Function Documentation

◆ form_barcode_type()

FormBarCode::form_barcode_type ( $page,
$selected = 0,
$htmlname = 'barcodetype_id' )

Show form to select type of barcode.

Parameters
string$pagePage
int$selectedId condition preselected
string$htmlnameNom du formulaire select
Returns
void
Deprecated

Definition at line 191 of file html.formbarcode.class.php.

References formBarcodeType().

◆ formBarcodeType()

FormBarCode::formBarcodeType ( $page,
$selected = 0,
$htmlname = 'barcodetype_id' )

Return html form to select type of barcode.

Parameters
string$pagePage
int$selectedId condition preselected
string$htmlnameNom du formulaire select
Returns
string

Definition at line 205 of file html.formbarcode.class.php.

References $conf, and selectBarcodeType().

Referenced by form_barcode_type().

◆ select_barcode_type()

FormBarCode::select_barcode_type ( $selected = 0,
$htmlname = 'barcodetype_id',
$useempty = 0 )

Print form to select type of barcode.

Parameters
int$selectedId code pre-selected
string$htmlnameName of HTML select field
int$useemptyAffiche valeur vide dans liste
Returns
void
Deprecated

Definition at line 122 of file html.formbarcode.class.php.

References selectBarcodeType().

◆ selectBarcodeType()

FormBarCode::selectBarcodeType ( $selected = 0,
$htmlname = 'barcodetype_id',
$useempty = 0 )

Return html form to select type of barcode.

Parameters
int$selectedId code pre-selected
string$htmlnameName of HTML select field
int$useemptyDisplay empty value in select
Returns
string

Definition at line 136 of file html.formbarcode.class.php.

References $conf, ajax_combobox(), and dol_print_error().

Referenced by formBarcodeType(), and select_barcode_type().

◆ setBarcodeEncoder()

FormBarCode::setBarcodeEncoder ( $selected,
$barcodelist,
$code_id,
$idForm = 'formbarcode' )

Return HTML select with list of bar code generators.

Parameters
int$selectedId code pre-selected
array<string,string>$barcodelist Array of barcodes generators
int$code_idId du code barre
string$idFormId of html form, ex id="idform"
Returns
string HTML select string

Definition at line 64 of file html.formbarcode.class.php.

References $conf, getDolGlobalString(), and getNonce().


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