X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FBadge.php;h=104bcff1740dbf2b4764c28f5c3d41dd8425a3f3;hb=0ec03e9fabc23b802ac80cb68c44b5abaf7f8585;hp=974b2a9c7638a249210b301538205bf763f408fe;hpb=66c6206c9d19f2aa13ff0f7051c9952b6fbdad50;p=civicrm-core.git diff --git a/CRM/Event/Badge.php b/CRM/Event/Badge.php index 974b2a9c76..104bcff174 100644 --- a/CRM/Event/Badge.php +++ b/CRM/Event/Badge.php @@ -1,7 +1,7 @@ style = array('width' => 0.1, 'cap' => 'round', 'join' => 'round', 'dash' => '2,2', 'color' => array(0, 0, 200)); $this->format = '5160'; @@ -52,6 +55,9 @@ class CRM_Event_Badge { $this->setDebug(FALSE); } + /** + * @param bool $debug + */ function setDebug($debug = TRUE) { if (!$debug) { $this->debug = FALSE; @@ -82,6 +88,11 @@ class CRM_Event_Badge { 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)) { @@ -90,6 +101,12 @@ class CRM_Event_Badge { return NULL; } + /** + * @param $eventID + * @param bool $img + * + * @return string + */ function getImageFileName($eventID, $img = FALSE) { global $civicrm_root; $path = "CRM/Event/Badge"; @@ -119,6 +136,9 @@ class CRM_Event_Badge { return $imgFile; } + /** + * @param bool $img + */ function printBackground($img = FALSE) { $x = $this->pdf->GetAbsX(); $y = $this->pdf->GetY(); @@ -153,8 +173,10 @@ class CRM_Event_Badge { /** * function to create labels (pdf) * - * @param array $contactRows assciated array of contact data - * @param string $format format in which labels needs to be printed + * @param $participants + * + * @internal param array $contactRows assciated array of contact data + * @internal param string $format format in which labels needs to be printed * * @return null * @access public