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

Public Member Functions

 Header ()
 
 __construct (Db $zdb, Preferences $prefs, array $data=[])
 
 init ()
 
 drawSheet (array $members)
 
 withImages ()
 
- Public Member Functions inherited from Galette\IO\Pdf
 __construct (Preferences $prefs, ?PdfModel $model=null)
 
 showPagination ()
 
 __destruct ()
 
 Error (mixed $msg)
 
 colorHex2Dec (string $hex6)
 
 Footer (TCPDF $pdf=null)
 
 PageHeader (string $title=null)
 
 PageBody ()
 
 getFilename ()
 
 download ()
 

Public Attributes

const SHEET_FONT = self::FONT_SIZE - 2
 
const ATT_SHEET_MODEL = 100
 
string $doc_title = null
 
string $sheet_title = null
 
string $sheet_sub_title = null
 
DateTime $sheet_date = null
 
- Public Attributes inherited from Galette\IO\Pdf
const FONT = 'DejaVuSans'
 
const FONT_SIZE = 10
 

Additional Inherited Members

- 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

Attendance sheet

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

Constructor & Destructor Documentation

◆ __construct()

Galette\IO\PdfAttendanceSheet::__construct ( Db  $zdb,
Preferences  $prefs,
array  $data = [] 
)

Main constructor, set creator and author

Parameters
Db$zdbDatabase instance
Preferences$prefsPreferences
array<string,mixed>$data Data to set

Member Function Documentation

◆ drawSheet()

Galette\IO\PdfAttendanceSheet::drawSheet ( array  $members)

Draw members cards

Parameters
array<Adherent>$members Members
Returns
void

◆ Header()

Galette\IO\PdfAttendanceSheet::Header ( )

Page header

Returns
void

Reimplemented from Galette\IO\Pdf.

◆ init()

Galette\IO\PdfAttendanceSheet::init ( )

Initialize PDF

Returns
void

Reimplemented from Galette\IO\Pdf.

◆ withImages()

Galette\IO\PdfAttendanceSheet::withImages ( )

Add images to file

Returns
self

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