dolibarr 21.0.0-beta
modules_labels.php File Reference

File of parent class of document generator for members labels sheets. More...

Go to the source code of this file.

Classes

class  ModelePDFLabels
 Parent class of document generator for address sheet. More...
 

Functions

 doc_label_pdf_create ($db, $arrayofrecords, $modele, $outputlangs, $outputdir='', $template='standardlabel', $filename='tmp_address_sheet.pdf')
 Create a document onto disk according to template module.
 

Detailed Description

File of parent class of document generator for members labels sheets.

Definition in file modules_labels.php.

Function Documentation

◆ doc_label_pdf_create()

doc_label_pdf_create ( $db,
$arrayofrecords,
$modele,
$outputlangs,
$outputdir = '',
$template = 'standardlabel',
$filename = 'tmp_address_sheet.pdf' )

Create a document onto disk according to template module.

Parameters
DoliDB$dbDatabase handler
array{}$arrayofrecords Array of records
string$modeleForce le modele a utiliser ('' to not force)
Translate$outputlangsObject lang a utiliser pour traduction
string$outputdirOutput directory
string$templatepdf generenate document class to use default 'standardlabel'
string$filenameShort file name of PDF output file
Returns
int Return integer <0 if KO, >0 if OK

Definition at line 79 of file modules_labels.php.

References $conf, dol_buildpath(), dol_mimetype(), dol_print_error(), dol_strlen(), dol_syslog(), and getDolGlobalString().