|
dolibarr
x.y.z
|
Class to manage barcode with standard rule. More...


Public Member Functions | |
| __construct () | |
| Constructor. | |
| info ($langs) | |
| Return description of module. More... | |
| getExample ($langs, $objthirdparty=0) | |
| Return an example of result returned by getNextValue. More... | |
| literalBarcodeType ($db, $type='') | |
| Return literal barcode type code from numerical rowid type of barcode. More... | |
| getNextValue ($objthirdparty, $type='') | |
| Return next value. More... | |
| verif ($db, &$code, $thirdparty, $thirdparty_type, $type) | |
| Check validity of code according to its rules. More... | |
| verif_dispo ($db, $code, $thirdparty) | |
| Return if a code is used (by other element) More... | |
| verif_syntax ($codefortest, $typefortest) | |
| Return if a barcode value match syntax. More... | |
Public Member Functions inherited from ModeleNumRefBarCode | |
| getNom ($langs) | |
| Return model name. More... | |
| getExample ($langs) | |
| Return a numbering example. More... | |
| getVersion () | |
| Return version of module. More... | |
| getToolTip ($langs, $soc, $type) | |
| Return description of module parameters. More... | |
Class to manage barcode with standard rule.
Definition at line 35 of file mod_barcode_thirdparty_standard.php.
| mod_barcode_thirdparty_standard::getExample | ( | $langs, | |
$objthirdparty = 0 |
|||
| ) |
Return an example of result returned by getNextValue.
Definition at line 130 of file mod_barcode_thirdparty_standard.php.
| mod_barcode_thirdparty_standard::getNextValue | ( | $objthirdparty, | |
$type = '' |
|||
| ) |
Return next value.
| Societe | $objthirdparty | Object third-party |
| string | $type | Type of barcode (EAN, ISBN, ...) |
Reimplemented from ModeleNumRefBarCode.
Definition at line 180 of file mod_barcode_thirdparty_standard.php.
| mod_barcode_thirdparty_standard::info | ( | $langs | ) |
Return description of module.
| Translate | $langs | Object langs |
Reimplemented from ModeleNumRefBarCode.
Definition at line 84 of file mod_barcode_thirdparty_standard.php.
| mod_barcode_thirdparty_standard::literalBarcodeType | ( | $db, | |
$type = '' |
|||
| ) |
Return literal barcode type code from numerical rowid type of barcode.
Definition at line 150 of file mod_barcode_thirdparty_standard.php.
| mod_barcode_thirdparty_standard::verif | ( | $db, | |
| & | $code, | ||
| $thirdparty, | |||
| $thirdparty_type, | |||
| $type | |||
| ) |
Check validity of code according to its rules.
| DoliDB | $db | Database handler |
| string | $code | Code to check/correct |
| Societe | $thirdparty | Object third-party |
| int | $thirdparty_type | 0 = customer/prospect , 1 = supplier |
| string | $type | type of barcode (EAN, ISBN, ...) |
Definition at line 247 of file mod_barcode_thirdparty_standard.php.
| mod_barcode_thirdparty_standard::verif_dispo | ( | $db, | |
| $code, | |||
| $thirdparty | |||
| ) |
Return if a code is used (by other element)
Definition at line 293 of file mod_barcode_thirdparty_standard.php.
| mod_barcode_thirdparty_standard::verif_syntax | ( | $codefortest, | |
| $typefortest | |||
| ) |
Return if a barcode value match syntax.
| string | $codefortest | Code to check syntax |
| string | $typefortest | Type of barcode (ISBN, EAN, ...) |
Definition at line 322 of file mod_barcode_thirdparty_standard.php.