dolibarr 21.0.0-alpha
|
Public Member Functions | |
getNextValue ($objcommon=null, $type='') | |
Return next value available. | |
getExample ($langs=null, $object=null) | |
Return an example of result returned by getNextValue. | |
getToolTip ($langs, $soc, $type) | |
Return description of module parameters. | |
verif ($db, &$code, $object, $thirdparty_type, $type) | |
Check validity of code according to its rules. | |
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. | |
Definition at line 93 of file modules_barcode.class.php.
|
abstract |
Return an example of result returned by getNextValue.
?Translate | $langs | Object langs |
?CommonObject | $object | Object product |
Reimplemented in mod_barcode_product_standard, and mod_barcode_thirdparty_standard.
ModeleNumRefBarCode::getNextValue | ( | $objcommon = null, | |
$type = '' ) |
Return next value available.
?CommonObject | $objcommon | Object Product, Thirdparty |
string | $type | Type of barcode (EAN, ISBN, ...) |
Reimplemented in mod_barcode_product_standard, and mod_barcode_thirdparty_standard.
Definition at line 109 of file modules_barcode.class.php.
Referenced by getToolTip().
ModeleNumRefBarCode::getToolTip | ( | $langs, | |
$soc, | |||
$type ) |
Return description of module parameters.
Translate | $langs | Output language |
?Societe | $soc | Third party object |
int | $type | -1=Nothing, 0=Product, 1=Service |
Definition at line 134 of file modules_barcode.class.php.
References getDolGlobalString(), CommonNumRefGenerator\getName(), getNextValue(), CommonNumRefGenerator\getVersion(), name, and yn().
|
abstract |
Check validity of code according to its rules.
DoliDB | $db | Database handler |
string | $code | Code to check/correct |
Product | Societe | $object | Object product or ThirdParty |
int<0,1> | $thirdparty_type 0 = customer/prospect , 1 = supplier | |
string | $type | type of barcode (EAN, ISBN, ...) |
Reimplemented in mod_barcode_product_standard, and mod_barcode_thirdparty_standard.