Esempio n. 1
0
 /**
  * @param Affiliation $affiliation
  *
  * @return array
  */
 private function parseExtendedAffiliationOverview(Affiliation $affiliation)
 {
     $rows = [];
     $cols = [];
     $organisationService = $this->getOrganisationService()->setOrganisation($affiliation->getOrganisation());
     $contactService = clone $this->getContactService();
     $contactService->setContact($affiliation->getContact());
     $cols['dt'] = ['width' => 2000, 'align' => ''];
     $cols['dd'] = ['width' => $this->tableWidth - 2000, 'align' => ''];
     $rows[] = ['dt' => $affiliation->getOrganisation()->getCountry()->getCountry(), 'dd' => $organisationService->parseOrganisationWithBranch($affiliation->getBranch())];
     if ($affiliation->getDescription()->count() > 0) {
         $rows[] = ['dt' => 'Description', 'dd' => $this->cleanHTML($affiliation->getDescription()->first()->getDescription())];
     }
     $rows[] = ['dt' => 'Type', 'dd' => $organisationService->getOrganisation()->getType()->getDescription()];
     $rows[] = ['dt' => 'Contact Person', 'dd' => $contactService->parseAttention() . ' ' . $contactService->parseFullname()];
     $rows[] = ['dt' => 'Email Address', 'dd' => $contactService->getContact()->getEmail()];
     $rows[] = ['dt' => 'Main role and added-value for the project', 'dd' => $affiliation->getMainContribution()];
     $rows[] = ['dt' => 'Market access', 'dd' => $affiliation->getMarketAccess()];
     return ['cols' => $cols, 'rows' => $rows];
 }