32require_once DOL_DOCUMENT_ROOT.
'/core/class/commondocgenerator.class.php';
33require_once DOL_DOCUMENT_ROOT.
'/compta/bank/class/account.class.php';
54 $type =
'knowledgerecord';
57 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
76 abstract public function write_file(
$object, $outputlangs, $srctemplatepath =
'', $hidedetails = 0, $hidedesc = 0, $hideref = 0);
113 $langs->load(
"knowledgemanagement");
114 return $langs->trans(
"NoDescription");
125 $langs->load(
"knowledgemanagement");
126 return $langs->trans(
"NoExample");
150 return $langs->trans(
"NotAvailable");
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
Parent class for documents (PDF, ODT, ...) generators.
getNextValue($object)
Return next free value.
isEnabled()
Return if a module can be used or not.
getExample()
Returns an example of numbering.
info($langs)
Returns the default description of the numbering template.
getVersion()
Returns version of numbering module.
canBeActivated($object)
Checks if the numbers already in the database do not cause conflicts that would prevent this numberin...
Parent class for documents models.
static liste_modeles($db, $maxfilenamelength=0)
Return list of active generation modules.
write_file($object, $outputlangs, $srctemplatepath='', $hidedetails=0, $hidedesc=0, $hideref=0)
Function to build document.
getListOfModels($db, $type, $maxfilenamelength=0)
Return list of activated modules usable for document generation.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...