dolibarr 21.0.0-alpha
ModeleNumRefAsset Class Reference

Parent class to manage numbering of Asset. More...

Inheritance diagram for ModeleNumRefAsset:
Collaboration diagram for ModeleNumRefAsset:

Public Member Functions

 getNextValue ($object)
 Return next free value.
 
 getExample ()
 Return an example of numbering.
 
- 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.
 

Detailed Description

Parent class to manage numbering of Asset.

Definition at line 83 of file modules_asset.php.

Member Function Documentation

◆ getExample()

ModeleNumRefAsset::getExample ( )
abstract

Return an example of numbering.

Returns
string Example

Reimplemented in mod_asset_advanced, and mod_asset_standard.

◆ getNextValue()

ModeleNumRefAsset::getNextValue ( $object)
abstract

Return next free value.

Parameters
Asset$objectObject we need next value for
Returns
string|int<-1,0> Next value if OK, <=0 if KO

Reimplemented in mod_asset_advanced, and mod_asset_standard.


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