dolibarr  13.0.2
Public Member Functions | List of all members
FormBarCode Class Reference

Class to manage barcode HTML. More...

Public Member Functions

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

Detailed Description

Class to manage barcode HTML.

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

Constructor & Destructor Documentation

FormBarCode::__construct (   $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

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

References db.

Member Function Documentation

FormBarCode::form_barcode_type (   $page,
  $selected = '',
  $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 195 of file html.formbarcode.class.php.

References formBarcodeType(), and print.

FormBarCode::formBarcodeType (   $page,
  $selected = '',
  $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 209 of file html.formbarcode.class.php.

References selectBarcodeType().

Referenced by form_barcode_type().

FormBarCode::select_barcode_type (   $selected = '',
  $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 126 of file html.formbarcode.class.php.

References print, and selectBarcodeType().

FormBarCode::selectBarcodeType (   $selected = '',
  $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 140 of file html.formbarcode.class.php.

References ajax_combobox(), db, and dol_print_error().

Referenced by formBarcodeType(), and select_barcode_type().

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

Return HTML select with list of bar code generators.

Parameters
int$selectedId code pre-selected
array$barcodelistArray of barcodes generators
int$code_idId du code barre
int$idFormId du formulaire
Returns
string HTML select string

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

References print.


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