\ForumCountryDropdownField
A simple extension to dropdown field, pre-configured to list countries.
It will default to the country of the current visitor.
Synopsis
class ForumCountryDropdownField
extends DropdownField
{
- // members
- private static bool $default_to_locale = true;
- private static string $default_country = 'NZ';
- // methods
- protected string locale()
- public void __construct()
- public void Field()
Hierarchy
Extends
- DropdownField
Members
private
- $default_country — string
- $default_to_locale — bool
Methods
protected
- locale() — Get the locale of the Member, or if we're not logged in or don't have a locale, use the default one