CRM_Event_Badge_Simple
extends CRM_Event_Badge
in package
This class print the name badges for the participants It isn't supposed to be called directly, but is the parent class of the classes in CRM/Event/Badges/XXX.php
Table of Contents
Methods
- __construct() : mixed
- createLabels() : mixed
- Create labels (pdf).
- generateLabel() : mixed
- This is supposed to be overridden.
- getImageFileName() : string
- pdfExtraFormat() : mixed
- printBackground() : mixed
- run() : mixed
- Create the labels (pdf).
- setDebug() : mixed
- retrieveEvent() : CRM_Event_BAO_Event|null
Methods
__construct()
public
__construct() : mixed
createLabels()
Create labels (pdf).
public
createLabels(array<string|int, mixed> &$participants) : mixed
Parameters
- $participants : array<string|int, mixed>
generateLabel()
This is supposed to be overridden.
public
generateLabel(array<string|int, mixed> $participant) : mixed
Parameters
- $participant : array<string|int, mixed>
getImageFileName()
public
getImageFileName(int $eventID[, bool $img = FALSE ]) : string
Parameters
- $eventID : int
- $img : bool = FALSE
Return values
stringpdfExtraFormat()
public
pdfExtraFormat() : mixed
printBackground()
public
printBackground([bool $img = FALSE ]) : mixed
Parameters
- $img : bool = FALSE
run()
Create the labels (pdf).
public
run(array<string|int, mixed> &$participants) : mixed
It assumes the participants are from the same event
Parameters
- $participants : array<string|int, mixed>
setDebug()
public
setDebug([bool $debug = TRUE ]) : mixed
Parameters
- $debug : bool = TRUE
retrieveEvent()
protected
retrieveEvent(int $eventID) : CRM_Event_BAO_Event|null
Parameters
- $eventID : int