dolibarr 19.0.3
ModeleNumRefBarCode Class Reference

Parent class for barcode numbering models. More...

Inheritance diagram for ModeleNumRefBarCode:
Collaboration diagram for ModeleNumRefBarCode:

Public Member Functions

 getNextValue ($objproduct, $type='')
 Return next value available.
 
 getToolTip ($langs, $soc, $type)
 Return description of module parameters.
 
- Public Member Functions inherited from CommonNumRefGenerator
 getNom ($langs)
 Return model name TODO Replace with getName()
 
 getName ($langs)
 Return model name.
 
 isEnabled ()
 Return if a module can be used or not.
 
 info ($langs)
 Returns the default description of the numbering template.
 
 canBeActivated ($object)
 Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working.
 
 getVersion ()
 Returns version of numbering module.
 

Detailed Description

Parent class for barcode numbering models.

Definition at line 54 of file modules_barcode.class.php.

Member Function Documentation

◆ getNextValue()

ModeleNumRefBarCode::getNextValue ( $objproduct,
$type = '' )

Return next value available.

Parameters
Product$objproductObject Product
string$typeType of barcode (EAN, ISBN, ...)
Returns
string Value

Reimplemented in mod_barcode_product_standard, and mod_barcode_thirdparty_standard.

Definition at line 74 of file modules_barcode.class.php.

Referenced by getToolTip().

◆ getToolTip()

ModeleNumRefBarCode::getToolTip ( $langs,
$soc,
$type )

Return description of module parameters.

Parameters
Translate$langsOutput language
Societe$socThird party object
int$type-1=Nothing, 0=Product, 1=Service
Returns
string HTML translated description

Definition at line 88 of file modules_barcode.class.php.

References getDolGlobalString(), getNextValue(), CommonNumRefGenerator\getNom(), CommonNumRefGenerator\getVersion(), name, and yn().


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