|
dolibarr
13.0.2
|
Classe permettant la gestion monkey des codes tiers. More...
Inheritance diagram for mod_codeclient_monkey:
Collaboration diagram for mod_codeclient_monkey:Public Member Functions | |
| __construct () | |
| Constructor. | |
| info ($langs) | |
| Return description of module. More... | |
| getExample ($langs, $objsoc=0, $type=-1) | |
| Return an example of result returned by getNextValue. More... | |
| getNextValue ($objsoc=0, $type=-1) | |
| Return next value. More... | |
| verif ($db, &$code, $soc, $type) | |
| Check validity of code according to its rules. More... | |
| verif_dispo ($db, $code, $soc, $type=0) | |
| Renvoi si un code est pris ou non (par autre tiers) More... | |
| verif_syntax ($code) | |
| Renvoi si un code respecte la syntaxe. More... | |
Public Member Functions inherited from ModeleThirdPartyCode | |
| info ($langs) | |
| Renvoi la description par defaut du modele de numerotation. More... | |
| getNom ($langs) | |
| Return name of module. More... | |
| getExample ($langs) | |
| Return an example of numbering. More... | |
| canBeActivated () | |
| Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working. More... | |
| getNextValue ($objsoc=0, $type=-1) | |
| Return next value available. More... | |
| getVersion () | |
| Return version of module. More... | |
| getToolTip ($langs, $soc, $type) | |
| Return description of module parameters. More... | |
| verif_prefixIsUsed () | |
| Check if mask/numbering use prefix. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from ModeleThirdPartyCode | |
| static | liste_modeles ($db, $maxfilenamelength=0) |
| Renvoie la liste des modeles de numérotation. More... | |
Classe permettant la gestion monkey des codes tiers.
Definition at line 33 of file mod_codeclient_monkey.php.
| mod_codeclient_monkey::getExample | ( | $langs, | |
$objsoc = 0, |
|||
$type = -1 |
|||
| ) |
Return an example of result returned by getNextValue.
| Translate | $langs | Object langs |
| societe | $objsoc | Object thirdparty |
| int | $type | Type of third party (1:customer, 2:supplier, -1:autodetect) |
Definition at line 103 of file mod_codeclient_monkey.php.
| mod_codeclient_monkey::getNextValue | ( | $objsoc = 0, |
|
$type = -1 |
|||
| ) |
Return next value.
Definition at line 116 of file mod_codeclient_monkey.php.
References $resql, dol_now(), and dol_syslog().
| mod_codeclient_monkey::info | ( | $langs | ) |
Return description of module.
| Translate | $langs | Object langs |
Definition at line 89 of file mod_codeclient_monkey.php.
| mod_codeclient_monkey::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 | $type | 0 = customer/prospect , 1 = supplier |
Definition at line 175 of file mod_codeclient_monkey.php.
References dol_strlen(), dol_syslog(), verif_dispo(), and verif_syntax().
| mod_codeclient_monkey::verif_dispo | ( | $db, | |
| $code, | |||
| $soc, | |||
$type = 0 |
|||
| ) |
Renvoi si un code est pris ou non (par autre tiers)
| DoliDB | $db | Handler acces base |
| string | $code | Code a verifier |
| Societe | $soc | Objet societe |
| int | $type | 0 = customer/prospect , 1 = supplier |
Definition at line 223 of file mod_codeclient_monkey.php.
References $resql, and dol_syslog().
Referenced by verif().
| mod_codeclient_monkey::verif_syntax | ( | $code | ) |
Renvoi si un code respecte la syntaxe.
| string | $code | Code a verifier |
Definition at line 257 of file mod_codeclient_monkey.php.
References dol_strlen().
Referenced by verif().