ModeleNumRefKnowledgeRecord
abstract class ModeleNumRefKnowledgeRecord (View source)
Parent class to manage numbering of KnowledgeRecord
@property 'development'|'experimental'|'release' $version Version of "module"
Properties
| string | $error | ||
| string | $name | Name of "module" |
Methods
Return if a module can be used or not
Returns the default description of the numbering template
Returns 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
Returns version of numbering module
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()
Returns an example of numbering
bool
canBeActivated(object $object)
Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working.
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