49 public $errors = array();
65 return empty($this->
name) ? get_class($this) : $this->name;
75 return empty($this->
name) ? get_class($this) : $this->name;
94 public function info($langs)
96 return $langs->trans(
"NoDescription");
119 $langs->load(
"admin");
121 if ($this->version ==
'development') {
122 return $langs->trans(
"VersionDevelopment");
124 if ($this->version ==
'experimental') {
125 return $langs->trans(
"VersionExperimental");
127 if ($this->version ==
'dolibarr') {
130 if ($this->version) {
131 return $this->version;
133 return $langs->trans(
"NotAvailable");
Parent class for number ref generators.
getVersion()
Returns version of numbering module.
isEnabled()
Return if a module can be used or not.
getNom($langs)
Return model name TODO Replace with getName()
getName($langs)
Return model name.
canBeActivated($object)
Checks if the numbers already in the database do not cause conflicts that would prevent this numberin...
info($langs)
Returns the default description of the numbering template.
$conf db name
Only used if Module[ID]Name translation string is not found.