dolibarr  7.0.0-beta
Public Member Functions | List of all members
mod_pacific Class Reference

Class to manage numbering of intervention cards with rule Pacific. More...

+ Inheritance diagram for mod_pacific:
+ Collaboration diagram for mod_pacific:

Public Member Functions

 info ()
 Return description of numbering module. More...
 
 getExample ()
 Renvoi un exemple de numerotation. More...
 
 canBeActivated ()
 Test si les numeros deja en vigueur dans la base ne provoquent pas de de conflits qui empechera cette numerotation de fonctionner. More...
 
 getNextValue ($objsoc=0, $object='')
 Return next free value. More...
 
 getNumRef ($objsoc, $objforref)
 Return next free value. More...
 
- Public Member Functions inherited from ModeleNumRefFicheinter
 isEnabled ()
 Return if a module can be used or not. More...
 
 info ()
 Renvoi la description par defaut du modele de numerotation. More...
 
 getExample ()
 Renvoi un exemple de numerotation. More...
 
 canBeActivated ()
 Test si les numeros deja en vigueur dans la base ne provoquent pas de de conflits qui empechera cette numerotation de fonctionner. More...
 
 getNextValue ()
 Renvoi prochaine valeur attribuee. More...
 
 getVersion ()
 Renvoi version du module numerotation. More...
 

Detailed Description

Class to manage numbering of intervention cards with rule Pacific.

Definition at line 31 of file mod_pacific.php.

Member Function Documentation

mod_pacific::canBeActivated ( )

Test si les numeros deja en vigueur dans la base ne provoquent pas de de conflits qui empechera cette numerotation de fonctionner.

Returns
boolean false si conflit, true si ok

Definition at line 66 of file mod_pacific.php.

References $resql.

mod_pacific::getExample ( )

Renvoi un exemple de numerotation.

Returns
string Example

Definition at line 55 of file mod_pacific.php.

mod_pacific::getNextValue (   $objsoc = 0,
  $object = '' 
)

Return next free value.

Parameters
Societe$objsocObject thirdparty
Object$objectObject we need next value for
Returns
string Value if KO, <0 if KO

Definition at line 105 of file mod_pacific.php.

References $resql.

mod_pacific::getNumRef (   $objsoc,
  $objforref 
)

Return next free value.

Parameters
Societe$objsocObject third party
Object$objforrefObject for number to search
Returns
string Next free value

Definition at line 141 of file mod_pacific.php.

References ModeleNumRefFicheinter\getNextValue().

mod_pacific::info ( )

Return description of numbering module.

Returns
string Text with description

Definition at line 44 of file mod_pacific.php.


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