Finds and displays a Country entity.

@Route("/{iso_code}", name="orkestro_backend_country_show")
@Method("GET")
@Template()
761102
public function showAction($iso_code)
    {
        $em = $this->getDoctrine()->getManager();

        $entity = $em->getRepository('OrkestroCountryBundle:Country')->findOneBy(array(
                'isoCode' => $iso_code,
            ));

        if (!$entity) {
            throw $this->createNotFoundException('Unable to find Country entity.');
        }

        $deleteForm = $this->createDeleteForm($iso_code);

        return array(
            'entity'      => $entity,
            'delete_form' => $deleteForm->createView(),
        );
    }
497516
def fetch(self):
        
        params = values.of({})

        payload = self._version.fetch(
            'GET',
            self._uri,
            params=params,
        )

        return CountryInstance(self._version, payload, iso_code=self._solution['iso_code'], )
1051892
function displayLanguage($iso) {
		if (!$iso)
			return '';
		return class_exists('Locale')?\Locale::getDisplayLanguage($iso,$this->locale()):constant('ISO::LC_'.$iso);
	}
1181211
static function fetchCountry( $value, $fetchBy = false )
    {
        $fetchBy = !$fetchBy ? 'Name' : $fetchBy;

        $allCountries = eZCountryType::fetchCountryList();
        $result = false;
        if ( $fetchBy == 'Alpha2' and isset( $allCountries[strtoupper( $value )] ) )
        {
            $result = $allCountries[$value];
            return $result;
        }

        foreach ( $allCountries as $country )
        {
            if ( isset( $country[$fetchBy] ) and $country[$fetchBy] == $value )
            {
                $result = $country;
                break;
            }
        }

        return $result;
    }
823064
private function createDeleteForm($iso_code)
    {
        return $this->createFormBuilder()
            ->setAction($this->generateUrl('orkestro_backend_country_delete', array('iso_code' => $iso_code)))
            ->setMethod('DELETE')
            ->add('submit', 'submit', array('label' => 'Delete'))
            ->getForm()
        ;
    }
24205
public static function toIso($country)
    {
        $table = array_flip(self::isoCodes());

        if (!array_key_exists($country, $table)) {
            return null;
        }

        return $table[$country];
    }
466404
public function listCountryState($code)
    {
        $this->setCountry($code);
        $this->actionListCountryState();
        $this->setTitleListCountryState();
        $this->setBreadcrumbListCountryState();
        $this->setFilterListCountryState();
        $this->setPagerListCountryState();

        $this->setData('country', $this->data_country);
        $this->setData('states', $this->getListCountryState());

        $this->outputListCountryState();
    }
577653
public function index()
    {
        $model = new Model();
        $pageOptions = Page::Options();
        $countryOptions = Country::options();

        return view('avored-framework::system.configuration.index')
            ->withModel($model)
            ->withPageOptions($pageOptions)
            ->withCountryOptions($countryOptions);
    }
568885
public static function getcountry($code='')
	{
		$name = '';
		if ($code)
		{
			if (!($gdb = self::getGeoDBO()))
			{
				return $name;
			}

			$gdb->setQuery("SELECT name FROM countries WHERE code = " . $gdb->quote($code));
			$name = stripslashes($gdb->loadResult());
		}
		return $name;
	}
164989
function country()
    {
        if ( $this->attribute( 'country_code' ) != '*' )
        {
            $countryINI = eZINI::instance( 'country.ini' );
            $countryName = $countryINI->variable( $this->attribute( 'country_code' ) , 'Name' );
        }
        else
        {
            $countryName = '*';
        }
        return $countryName;
    }
1352946
public function getCurrency( $iso_code ) {

		$currencies = $this->all();
		if ( isset( $currencies[ $iso_code ] ) ) {
			return $currencies[ $iso_code ];
		}

		return null;
	}
803314
public Country getCountry() {
        if (null == _country && null == country) { _country = Country.DE; }
        return null == country ? _country : country.get();
    }
193171
public function administrativeAreas($country_id, Request $request = null)
    {
        $query = AdministrativeArea::where('country_id', $country_id)
            ->with('country');

        if ($request) {
            $resource = new Collection($query, 'administrative_area', $request);
            return $this->respondWithCollection($resource);
        }
        return $query->get();
    }
1034333
public function getCountryTaxes()
    {
        $taxes = null;
        if (!$this->entity->getCountryTaxes()->isEmpty()) {
            foreach ($this->entity->getCountryTaxes() as $countryTax) {
                // If countryId is defined, show only tax of this country
                if (!$this->countryId ||
                    ($this->countryId && $countryTax->getCountry()->getId() === $countryTax->getId())
                ) {
                    $taxes[] = new CountryTax($countryTax, $this->locale);
                    break;
                }
            }
        }

        return $taxes;
    }
1179242
protected function getIdCountryFromDatabase($iso2Code, $iso3Code): int
    {
        $countryQuery = SpyCountryQuery::create();
        $countryQuery->select(SpyCountryTableMap::COL_ID_COUNTRY);

        if ($iso2Code !== null) {
            $countryQuery->filterByIso2Code($iso2Code);
        }

        if ($iso3Code !== null) {
            $countryQuery->filterByIso3Code($iso3Code);
        }

        /** @var int $idCountry */
        $idCountry = $countryQuery->findOne();

        if (!$idCountry) {
            throw new EntityNotFoundException(sprintf('Could not find a country by iso2_code "%s" or iso3_code "%s"!', $iso2Code, $iso3Code));
        }

        $this->addIdCountryToCache($idCountry, $iso2Code, $iso3Code);

        return $idCountry;
    }
34980
def country_select(method, options = {}, html_options = {}, additional_country = nil)
      @countries ||= (additional_country ? [additional_country] : []) + Country.find(:all, :order => 'sort, name asc')
      self.menu_select(method, I18n.t('muck.engine.choose_country'), @countries, options.merge(:prompt => I18n.t('muck.engine.select_country_prompt'), :wrapper_id => 'countries-container'), html_options.merge(:id => 'countries'))
    end
1274487
private function getCountryByIsoCode( $iso_code ) {
		global $wpdb;
		$query          = "SELECT * FROM {$wpdb->base_prefix}geot_countries WHERE iso_code = %s";
		$result         = $wpdb->get_row( $wpdb->prepare( $query, array( $iso_code ) ), ARRAY_A );
		$country        = new \StdClass();
		$country->names = new \StdClass();

		$country->names->en = $result['country'];
		$country->iso_code  = $result['iso_code'];

		return $country;
	}