26require_once DOL_DOCUMENT_ROOT.
'/core/class/commondocgenerator.class.php';
109 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
151 $langs->load(
"projects");
152 return $langs->trans(
"NoDescription");
163 $langs->load(
"projects");
164 return $langs->trans(
"NoExample");
188 return $langs->trans(
"NotAvailable");
199 $langs->load(
"admin");
201 if ($this->version ==
'development') {
202 return $langs->trans(
"VersionDevelopment");
203 } elseif ($this->version ==
'experimental') {
204 return $langs->trans(
"VersionExperimental");
205 } elseif ($this->version ==
'dolibarr') {
207 } elseif ($this->version) {
208 return $this->version;
210 return $langs->trans(
"NotAvailable");
Parent class for documents generators.
Classe mere des modeles de numerotation des references de projets.
canBeActivated()
Checks if the numbers already in the database do not cause conflicts that would prevent this numberin...
getVersion()
Renvoi version du module numerotation.
getExample()
Return an example of numbering.
isEnabled()
Return if a module can be used or not.
info()
Returns the default description of the numbering pattern.
getNextValue($objsoc, $project)
Renvoi prochaine valeur attribuee.
Parent class for projects models.
static liste_modeles($db, $maxfilenamelength=0)
Return list of active generation modules.
getListOfModels($db, $type, $maxfilenamelength=0)
Return list of activated modules usable for document generation.