dolibarr 18.0.6
ModeleNumRefAsset Class Reference

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

Inheritance diagram for ModeleNumRefAsset:

Public Member Functions

 isEnabled ()
 Return if a module can be used or not.
 
 info ()
 Returns the default description of the numbering template.
 
 getExample ()
 Returns an example of numbering.
 
 canBeActivated ($object)
 Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working.
 
 getNextValue ($object)
 Returns next assigned value.
 
 getVersion ()
 Returns version of numbering module.
 

Detailed Description

Parent class to manage numbering of Asset.

Definition at line 102 of file modules_asset.php.

Member Function Documentation

◆ canBeActivated()

ModeleNumRefAsset::canBeActivated ( $object)

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

Parameters
Object$objectObject we need next value for
Returns
boolean false if conflict, true if ok

Reimplemented in mod_asset_standard.

Definition at line 150 of file modules_asset.php.

◆ getExample()

ModeleNumRefAsset::getExample ( )

Returns an example of numbering.

Returns
string Example

Reimplemented in mod_asset_advanced, and mod_asset_standard.

Definition at line 136 of file modules_asset.php.

◆ getNextValue()

ModeleNumRefAsset::getNextValue ( $object)

Returns next assigned value.

Parameters
Object$objectObject we need next value for
Returns
string Valeur

Reimplemented in mod_asset_advanced, and mod_asset_standard.

Definition at line 161 of file modules_asset.php.

◆ getVersion()

ModeleNumRefAsset::getVersion ( )

Returns version of numbering module.

Returns
string Valeur

Definition at line 172 of file modules_asset.php.

◆ info()

ModeleNumRefAsset::info ( )

Returns the default description of the numbering template.

Returns
string Descriptive text

Reimplemented in mod_asset_advanced, and mod_asset_standard.

Definition at line 124 of file modules_asset.php.

◆ isEnabled()

ModeleNumRefAsset::isEnabled ( )

Return if a module can be used or not.

Returns
boolean true if module can be used

Definition at line 114 of file modules_asset.php.


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