dolibarr  17.0.0
Public Member Functions | Static Public Member Functions | List of all members
ModeleThirdPartyCode Class Reference

Parent class for third parties code generators. More...

Inheritance diagram for ModeleThirdPartyCode:
Inheritance graph
[legend]

Public Member Functions

 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...
 

Static Public Member Functions

static liste_modeles ($dbs, $maxfilenamelength=0)
 Renvoie la liste des modeles de num√©rotation. More...
 

Detailed Description

Parent class for third parties code generators.

Definition at line 65 of file modules_societe.class.php.

Member Function Documentation

◆ canBeActivated()

ModeleThirdPartyCode::canBeActivated ( )

Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working.

Returns
boolean false if conflict, true if ok

Definition at line 117 of file modules_societe.class.php.

◆ getExample()

ModeleThirdPartyCode::getExample (   $langs)

Return an example of numbering.

Parameters
Translate$langsObject langs
Returns
string Example

Definition at line 105 of file modules_societe.class.php.

◆ getNextValue()

ModeleThirdPartyCode::getNextValue (   $objsoc = 0,
  $type = -1 
)

Return next value available.

Parameters
Societe$objsocObject thirdparty
int$typeType
Returns
string Value

Reimplemented in mod_codeclient_elephant, mod_codeclient_monkey, and mod_codeclient_leopard.

Definition at line 129 of file modules_societe.class.php.

◆ getNom()

ModeleThirdPartyCode::getNom (   $langs)

Return name of module.

Parameters
Translate$langsObject langs
Returns
string Nom du module

Definition at line 94 of file modules_societe.class.php.

◆ getToolTip()

ModeleThirdPartyCode::getToolTip (   $langs,
  $soc,
  $type 
)

Return description of module parameters.

Parameters
Translate$langsOutput language
Societe$socThird party object
int$type-1=Nothing, 0=Customer, 1=Supplier
Returns
string HTML translated description

Definition at line 196 of file modules_societe.class.php.

◆ getVersion()

ModeleThirdPartyCode::getVersion ( )

Return version of module.

Returns
string Version

Definition at line 141 of file modules_societe.class.php.

◆ info()

ModeleThirdPartyCode::info (   $langs)

Renvoi la description par defaut du modele de numerotation.

Parameters
Translate$langsObject langs
Returns
string Texte descripif

Reimplemented in mod_codeclient_elephant, mod_codeclient_monkey, and mod_codeclient_leopard.

Definition at line 83 of file modules_societe.class.php.

◆ liste_modeles()

static ModeleThirdPartyCode::liste_modeles (   $dbs,
  $maxfilenamelength = 0 
)
static

Renvoie la liste des modeles de numérotation.

Parameters
DoliDB$dbsDatabase handler
integer$maxfilenamelengthMax length of value to show
Returns
array|int List of numbers

Definition at line 167 of file modules_societe.class.php.

◆ verif_prefixIsUsed()

ModeleThirdPartyCode::verif_prefixIsUsed ( )

Check if mask/numbering use prefix.

Returns
int 0=no, 1=yes

Reimplemented in mod_codeclient_elephant.

Definition at line 266 of file modules_societe.class.php.


The documentation for this class was generated from the following file: