|
dolibarr 21.0.4
|
Parent class for third parties code generators. More...


Public Member Functions | |
| __construct ($db) | |
| Constructor. | |
| getNextValue ($objsoc='', $type=-1) | |
| Return an example of result returned by getNextValue. | |
| getToolTip ($langs, $soc, $type) | |
| Return description of module parameters. | |
| verif_prefixIsUsed () | |
| Check if mask/numbering use prefix. | |
| verif ($db, &$code, $soc, $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. | |
Static Public Member Functions | |
| static | liste_modeles ($dbs, $maxfilenamelength=0) |
| Return list of active generation modules. | |
Parent class for third parties code generators.
Definition at line 78 of file modules_societe.class.php.
|
abstract |
Constructor.
Reimplemented in mod_codeclient_elephant, mod_codeclient_leopard, and mod_codeclient_monkey.
| ModeleThirdPartyCode::getNextValue | ( | $objsoc = '', | |
| $type = -1 ) |
Return an example of result returned by getNextValue.
| ?Translate | $langs | Object langs |
| Societe | string | $objsoc | Object thirdparty |
| int<-1,2> | $type Type of third party (1:customer, 2:supplier, -1:autodetect) |
| Societe | string | $objsoc | Object thirdparty |
| int | $type | Type |
Reimplemented in mod_codeclient_elephant, mod_codeclient_leopard, and mod_codeclient_monkey.
Definition at line 106 of file modules_societe.class.php.
Referenced by getToolTip().
| ModeleThirdPartyCode::getToolTip | ( | $langs, | |
| $soc, | |||
| $type ) |
Return description of module parameters.
| Translate | $langs | Output language |
| Societe | $soc | Third party object |
| int | $type | -1=Nothing, 0=Customer, 1=Supplier |
Definition at line 151 of file modules_societe.class.php.
References getDolGlobalString(), CommonNumRefGenerator\getName(), getNextValue(), and yn().
|
static |
Return list of active generation modules.
Definition at line 121 of file modules_societe.class.php.
|
abstract |
Check validity of code according to its rules.
| DoliDB | $db | Database handler |
| string | $code | Code to check/correct |
| Societe | $soc | Object third party |
| int<0,1> | $type 0 = customer/prospect , 1 = supplier |
Reimplemented in mod_codeclient_elephant, mod_codeclient_leopard, and mod_codeclient_monkey.
| ModeleThirdPartyCode::verif_prefixIsUsed | ( | ) |
Check if mask/numbering use prefix.
Reimplemented in mod_codeclient_elephant.
Definition at line 217 of file modules_societe.class.php.