dolibarr 21.0.0-alpha
|
Class to manage third party code with elephant rule. More...
Public Member Functions | |
__construct ($db) | |
Constructor. | |
info ($langs) | |
Return description of module. | |
getExample ($langs=null, $objsoc='', $type=-1) | |
Return an example of result returned by getNextValue. | |
getNextValue ($objsoc='', $type=-1) | |
Return next value. | |
verif_prefixIsUsed () | |
Check if mask/numbering use prefix. | |
verif ($db, &$code, $soc, $type) | |
Check validity of code according to its rules. | |
verif_dispo ($db, $code, $soc, $type=0) | |
Indicate if the code is available or not (by another third party) | |
Public Member Functions inherited from ModeleThirdPartyCode | |
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. | |
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. | |
Additional Inherited Members | |
Static Public Member Functions inherited from ModeleThirdPartyCode | |
static | liste_modeles ($dbs, $maxfilenamelength=0) |
Return list of active generation modules. | |
Class to manage third party code with elephant rule.
Definition at line 38 of file mod_codeclient_elephant.php.
mod_codeclient_elephant::__construct | ( | $db | ) |
Constructor.
Reimplemented from ModeleThirdPartyCode.
Definition at line 62 of file mod_codeclient_elephant.php.
mod_codeclient_elephant::getExample | ( | $langs = null, | |
$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) |
Definition at line 168 of file mod_codeclient_elephant.php.
References getDolGlobalString(), and getNextValue().
mod_codeclient_elephant::getNextValue | ( | $objsoc = '', | |
$type = -1 ) |
Return next value.
Societe | string | $objsoc | Object third party |
int | $type | Client ou fournisseur (0:customer, 1:supplier) |
Reimplemented from ModeleThirdPartyCode.
Definition at line 226 of file mod_codeclient_elephant.php.
References dol_now(), get_next_value(), and getDolGlobalString().
Referenced by getExample().
mod_codeclient_elephant::info | ( | $langs | ) |
Return description of module.
Translate | $langs | Object langs |
Reimplemented from CommonNumRefGenerator.
Definition at line 81 of file mod_codeclient_elephant.php.
References dol_now(), dolibarr_set_const(), getDolGlobalString(), GETPOST(), and GETPOSTDATE().
mod_codeclient_elephant::verif | ( | $db, | |
& | $code, | ||
$soc, | |||
$type ) |
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 from ModeleThirdPartyCode.
Definition at line 305 of file mod_codeclient_elephant.php.
References check_value(), dol_syslog(), getDolGlobalString(), and verif_dispo().
mod_codeclient_elephant::verif_dispo | ( | $db, | |
$code, | |||
$soc, | |||
$type = 0 ) |
Indicate if the code is available or not (by another third party)
DoliDB | $db | Handler access base |
string | $code | Code a verifier |
Societe | $soc | Object societe |
int | $type | 0 = customer/prospect , 1 = supplier |
Definition at line 361 of file mod_codeclient_elephant.php.
Referenced by verif().
mod_codeclient_elephant::verif_prefixIsUsed | ( | ) |
Check if mask/numbering use prefix.
Reimplemented from ModeleThirdPartyCode.
Definition at line 271 of file mod_codeclient_elephant.php.
References getDolGlobalString().