/** * Display the test form result * * @param Country $country * @param CountryZone $countryZone * @param Language $language * @return string HTML code presenting the localized data */ public function testFormResultAction(Country $country = NULL, CountryZone $countryZone = NULL, Language $language = NULL) { $this->view->assign('country', $country); $currencies = $this->currencyRepository->findByCountry($country); if ($currencies->count()) { $this->view->assign('currency', $currencies[0]); } if (is_object($countryZone)) { $this->view->assign('countryZone', $countryZone); } $this->view->assign('language', $language); $territories = $this->territoryRepository->findByCountry($country); if ($territories->count()) { $this->view->assign('territory', $territories[0]); } }