dolibarr 20.0.0
ModeleNumRefKnowledgeRecord Class Reference

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

Inheritance diagram for ModeleNumRefKnowledgeRecord:

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

Definition at line 68 of file modules_knowledgerecord.php.

Member Function Documentation

◆ canBeActivated()

ModeleNumRefKnowledgeRecord::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_knowledgerecord_standard.

Definition at line 116 of file modules_knowledgerecord.php.

◆ getExample()

ModeleNumRefKnowledgeRecord::getExample ( )

Returns an example of numbering.

Returns
string Example

Reimplemented in mod_knowledgerecord_advanced, and mod_knowledgerecord_standard.

Definition at line 102 of file modules_knowledgerecord.php.

◆ getNextValue()

ModeleNumRefKnowledgeRecord::getNextValue ( $object)

Returns next assigned value.

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

Reimplemented in mod_knowledgerecord_advanced, and mod_knowledgerecord_standard.

Definition at line 127 of file modules_knowledgerecord.php.

◆ getVersion()

ModeleNumRefKnowledgeRecord::getVersion ( )

Returns version of numbering module.

Returns
string Valeur

Definition at line 138 of file modules_knowledgerecord.php.

◆ info()

ModeleNumRefKnowledgeRecord::info ( )

Returns the default description of the numbering template.

Returns
string Descriptive text

Reimplemented in mod_knowledgerecord_advanced, and mod_knowledgerecord_standard.

Definition at line 90 of file modules_knowledgerecord.php.

◆ isEnabled()

ModeleNumRefKnowledgeRecord::isEnabled ( )

Return if a module can be used or not.

Returns
boolean true if module can be used

Definition at line 80 of file modules_knowledgerecord.php.


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