public function country($options = array())
    {
        $options = new AnConfig($options);

        $options->append(array(
            'id' => 'an-se-selection-countries-'.uniqid(),
            'selected' => null,
            'name' => 'country',
            'use_country_code' => true,
            'prompt' => true,
        ));

        $selected = $options->selected;
        $use_country_code = $options->use_country_code;

        unset($options->selected);
        unset($options->use_country_code);

        $countries = array(
            null => AnTranslator::_('LIB-AN-SELECTOR-SELECT-OPTION'),
        );

        foreach (self::$COUNTRIES as $key => $name) {
            $countries[$use_country_code ? $key : $name] = AnTranslator::_($name);
        }

        return $this->_html->select($options->name, array('options' => $countries, 'selected' => $selected), AnConfig::unbox($options));
    }
public function country($options = array())
    {
        $options = new AnConfig($options);

        $options->append(array(
            'id' => 'an-se-selection-countries-'.uniqid(),
            'selected' => null,
            'name' => 'country',
            'use_country_code' => true,
            'prompt' => true,
        ));

        $selected = $options->selected;
        $use_country_code = $options->use_country_code;

        unset($options->selected);
        unset($options->use_country_code);

        $countries = array(
            null => AnTranslator::_('LIB-AN-SELECTOR-SELECT-OPTION'),
        );

        foreach (self::$COUNTRIES as $key => $name) {
            $countries[$use_country_code ? $key : $name] = AnTranslator::_($name);
        }

        return $this->_html->select($options->name, array('options' => $countries, 'selected' => $selected), AnConfig::unbox($options));
    }
public function country ( $ options = array ( ) ) { $ options = new AnConfig ( $ options ) ; $ options -> append ( array ( 'id' => 'an-se-selection-countries-' . uniqid ( ) , 'selected' => null , 'name' => 'country' , 'use_country_code' => true , 'prompt' => true , ) ) ; $ selected = $ options -> selected ; $ use_country_code = $ options -> use_country_code ; unset ( $ options -> selected ) ; unset ( $ options -> use_country_code ) ; $ countries = array ( null => AnTranslator :: _ ( 'LIB-AN-SELECTOR-SELECT-OPTION' ) , ) ; foreach ( self :: $ COUNTRIES as $ key => $ name ) { $ countries [ $ use_country_code ? $ key : $ name ] = AnTranslator :: _ ( $ name ) ; } return $ this -> _html -> select ( $ options -> name , array ( 'options' => $ countries , 'selected' => $ selected ) , AnConfig :: unbox ( $ options ) ) ; }
Return a selection of countries.

@param array $options

@return LibBaseTemplateTag
Return a selection of countries .