dolibarr 21.0.0-beta
modules_cards.php File Reference

File of parent class of document generator for members cards. More...

Go to the source code of this file.

Classes

class  ModelePDFCards
 Parent class of document generator for members cards. More...
 

Functions

 members_card_pdf_create ($db, $arrayofmembers, $modele, $outputlangs, $outputdir='', $template='standard', $filename='tmp_cards')
 Cree un fichier de cartes de visites en fonction du modele de ADHERENT_CARDS_ADDON_PDF.
 

Detailed Description

File of parent class of document generator for members cards.

Definition in file modules_cards.php.

Function Documentation

◆ members_card_pdf_create()

members_card_pdf_create ( $db,
$arrayofmembers,
$modele,
$outputlangs,
$outputdir = '',
$template = 'standard',
$filename = 'tmp_cards' )

Cree un fichier de cartes de visites en fonction du modele de ADHERENT_CARDS_ADDON_PDF.

Parameters
DoliDB$dbDatabase handler
array<array{textleft:string,textheader:string,textfooter:string,textright:string,id:int,ref:string,photo:string}>$arrayofmembers Array of members
string$modeleForce modele to use ('' to not force)
Translate$outputlangsObject langs to use for translation
string$outputdirOutput directory
string$templatepdf generenate document class to use default 'standard'
string$filenameName of output file (without extension)
Returns
int Return integer <0 if KO, >0 if OK

Definition at line 80 of file modules_cards.php.

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