dolibarr  7.0.0-beta
Classes | Functions
modules_don.php File Reference

File of class to manage donation document generation. More...

Go to the source code of this file.

Classes

class  ModeleDon
 Parent class of subscription templates. More...
 
class  ModeleNumRefDons
 Parent class of donation numbering templates. More...
 

Functions

 don_create ($db, $id, $message, $modele, $outputlangs, $hidedetails=0, $hidedesc=0, $hideref=0)
 Cree un don sur disque en fonction du modele de DON_ADDON_PDF. More...
 

Detailed Description

File of class to manage donation document generation.

Definition in file modules_don.php.

Function Documentation

don_create (   $db,
  $id,
  $message,
  $modele,
  $outputlangs,
  $hidedetails = 0,
  $hidedesc = 0,
  $hideref = 0 
)

Cree un don sur disque en fonction du modele de DON_ADDON_PDF.

Parameters
DoliDB$dbDatabse handler
int$idId donation
string$messageMessage
string$modeleForce le modele a utiliser ('' par defaut)
Translate$outputlangsObject langs
int$hidedetailsHide details of lines
int$hidedescHide description
int$hiderefHide ref
Returns
int 0 if KO, 1 if OK

Definition at line 156 of file modules_don.php.

References dol_buildpath(), dol_delete_preview(), dol_print_error(), dol_strlen(), dol_syslog(), and print.