* @param array $layoutInfo
* Associated array which contains meta data about format/layout.
*
- * @return void
+ * @return void
*/
public function createLabels(&$participants, &$layoutInfo) {
$this->pdf = new CRM_Utils_PDF_Label($layoutInfo['format'], 'mm');
* @param array $layout
* Layout meta data.
*
- * @return array $formattedRow row with meta data
+ * @return array
+ * row with meta data
*/
public static function formatLabel(&$row, &$layout) {
$formattedRow = array('labelFormat' => $layout['label_format_name']);
}
if ((CRM_Utils_Array::value('height_image_1', $formattedRow) >
- CRM_Utils_Array::value('height_image_2', $formattedRow)) && !empty($formattedRow['height_image_1'])) {
+ CRM_Utils_Array::value('height_image_2', $formattedRow)) && !empty($formattedRow['height_image_1'])
+ ) {
$startOffset = CRM_Utils_Array::value('height_image_1', $formattedRow);
}
elseif (!empty($formattedRow['height_image_2'])) {
$data = $formattedRow['values'];
if ($formattedRow['barcode']['type'] == 'barcode') {
- $data['current_value'] =
- $formattedRow['values']['contact_id'] . '-' . $formattedRow['values']['participant_id'];
+ $data['current_value'] = $formattedRow['values']['contact_id'] . '-' . $formattedRow['values']['participant_id'];
}
else {
// view participant url
* @param CRM_Core_Form $form
*
* @return void
- * @static
*/
public static function buildBadges(&$params, &$form) {
// get name badge layout info