dolibarr  20.0.0-beta
Public Member Functions | List of all members
ModeleNumRefBarCode Class Reference

Parent class for barcode numbering models. More...

Inheritance diagram for ModeleNumRefBarCode:
Inheritance graph
[legend]
Collaboration diagram for ModeleNumRefBarCode:
Collaboration graph
[legend]

Public Member Functions

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

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$objcommon Object Product, Thirdparty
string$typeType of barcode (EAN, ISBN, ...)
Returns
string Value

Reimplemented in mod_barcode_thirdparty_standard, and mod_barcode_product_standard.

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

◆ 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.


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