Galette API documentation
Gestionnaire d’Adhérents en Ligne Extrêmement Tarabiscoté mais Tellement Efficace
1.0.0
Galette\IO\PdfContribution Class Reference
Inheritance diagram for Galette\IO\PdfContribution:
Collaboration diagram for Galette\IO\PdfContribution:

Public Member Functions

 __construct (Contribution $contrib, Db $zdb, Preferences $prefs)
 
 download ()
 
 store (string $path)
 
 getPath ()
 
 getFilename ()
 
- Public Member Functions inherited from Galette\IO\Pdf
 __construct (Preferences $prefs, ?PdfModel $model=null)
 
 init ()
 
 showPagination ()
 
 __destruct ()
 
 Error (mixed $msg)
 
 colorHex2Dec (string $hex6)
 
 Header ()
 
 Footer (TCPDF $pdf=null)
 
 PageHeader (string $title=null)
 
 PageBody ()
 

Additional Inherited Members

- Public Attributes inherited from Galette\IO\Pdf
const FONT = 'DejaVuSans'
 
const FONT_SIZE = 10
 
- Protected Member Functions inherited from Galette\IO\Pdf
 setNoHeader ()
 
 setNoFooter ()
 
 modelPageHeader (string $title=null)
 
 standardPageHeader (string $title=null)
 
 fixSize (string $text, int $maxsize, int $fontsize, string $fontstyle='', string $fontname=null)
 
 cut (string $str, int $length)
 
 stretchHead (string $str, int $length)
 
- Protected Attributes inherited from Galette\IO\Pdf
Preferences $preferences
 
I18n $i18n
 
string $filename
 
float $footer_height
 

Detailed Description

Contribution PDF: invoices and receipts

Author
Johan Cwiklinski johan.nosp@m.@x-t.nosp@m.nd.be

Constructor & Destructor Documentation

◆ __construct()

Galette\IO\PdfContribution::__construct ( Contribution  $contrib,
Db  $zdb,
Preferences  $prefs 
)

Main constructor

Parameters
Contribution$contribContribution
Db$zdbDatabase instance
Preferences$prefsPreferences instance

Member Function Documentation

◆ download()

Galette\IO\PdfContribution::download ( )

Download PDF from browser

Returns
string

Reimplemented from Galette\IO\Pdf.

◆ getFilename()

Galette\IO\PdfContribution::getFilename ( )

Get filename

Returns
string

Reimplemented from Galette\IO\Pdf.

◆ getPath()

Galette\IO\PdfContribution::getPath ( )

Get store path

Returns
string

◆ store()

Galette\IO\PdfContribution::store ( string  $path)

Store PDF

Parameters
string$pathPath
Returns
boolean

The documentation for this class was generated from the following file: