mod_knowledgerecord_standard
class mod_knowledgerecord_standard extends ModeleNumRefKnowledgeRecord (View source)
Class to manage the knowledgerecord numbering rules standard
Properties
| string | $error | ||
| string | $name | ||
| string | $version | Dolibarr version of the loaded document |
|
| string | $prefix |
Methods
Returns the default description of the numbering template
Return an example of numbering
Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working.
Return next free value
Details
bool
isEnabled()
Return if a module can be used or not
string
info($langs)
Returns the default description of the numbering template
@param Translate $langs Object langs
string
getExample()
Return an example of numbering
@return string Example
bool
canBeActivated(object $object)
Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working.
@param Object $object Object we need next value for
string|int<-1, 0>
getNextValue($object)
Return next free value
@param KnowledgeRecord $object Object we need next value for
string
getVersion()
Returns version of numbering module