dolibarr 21.0.0-alpha
ModeleNumRefBarCode Class Reference

Parent class for barcode numbering models. More...

Inheritance diagram for ModeleNumRefBarCode:
Collaboration diagram for ModeleNumRefBarCode:

Public Member Functions

 getNextValue ($objcommon=null, $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.
 
 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 71 of file modules_barcode.class.php.

Member Function Documentation

◆ getNextValue()

ModeleNumRefBarCode::getNextValue ( $objcommon = null,
$type = '' )

Return next value available.

Parameters
?CommonObject$objcommonObject Product, Thirdparty
string$typeType of barcode (EAN, ISBN, ...)
Returns
string Value

Reimplemented in mod_barcode_product_standard, and mod_barcode_thirdparty_standard.

Definition at line 84 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 98 of file modules_barcode.class.php.

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


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