*
*/
class CRM_Event_Badge {
+ /**
+ *
+ */
function __construct() {
$this->style = array('width' => 0.1, 'cap' => 'round', 'join' => 'round', 'dash' => '2,2', 'color' => array(0, 0, 200));
$this->format = '5160';
$this->setDebug(FALSE);
}
+ /**
+ * @param bool $debug
+ */
function setDebug($debug = TRUE) {
if (!$debug) {
$this->debug = FALSE;
CRM_Utils_System::civiExit(1);
}
+ /**
+ * @param $eventID
+ *
+ * @return CRM_Event_BAO_Event|null
+ */
protected function retrieveEvent($eventID) {
$bao = new CRM_Event_BAO_Event();
if ($bao->get('id', $eventID)) {
return NULL;
}
+ /**
+ * @param $eventID
+ * @param bool $img
+ *
+ * @return string
+ */
function getImageFileName($eventID, $img = FALSE) {
global $civicrm_root;
$path = "CRM/Event/Badge";
return $imgFile;
}
+ /**
+ * @param bool $img
+ */
function printBackground($img = FALSE) {
$x = $this->pdf->GetAbsX();
$y = $this->pdf->GetY();