\CountryPrice_EcommerceCountry
Adds fields to individual countries.
Synopsis
class CountryPrice_EcommerceCountry
extends DataExtension
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $has_many = ;
- private static array $searchable_fields = ;
- private static array $default_sort = ;
- private static array $indexes = ;
- private static array $casting = ;
- private static array $_get_real_country_cache = ;
- // methods
- public void updateCMSFields()
- public static void get_real_countries_list()
- public static DataList get_sibling_countries()
- public static EcommerceCountry get_distributor_country()
- public static EcommerceCountry get_distributor_primary_country()
- public static EcommerceCountry get_real_country()
- public static void countries_belong_to_same_group()
- public static EcommerceCountry get_backup_country()
- public boolean hasDistributor()
- public void requireDefaultRecords()
- public string ComputedLanguageAndCountryCode()
Hierarchy
Extends
- DataExtension
Members
private
- $_get_real_country_cache
- $casting
- $db
- $default_sort
- $has_many
- $has_one
- $indexes
- $searchable_fields
Methods
public
- ComputedLanguageAndCountryCode()
- countries_belong_to_same_group()
- get_backup_country()
- get_distributor_country() — checks if the country has a distributor and returns it. If not, returns the default country.
- get_distributor_primary_country() — checks if the country has a distributor and returns the primary country for the distributor.
- get_real_countries_list()
- get_real_country() — returns the 'always the same as' (parent) country if necessary
- get_sibling_countries()
- hasDistributor()
- requireDefaultRecords() — make sure there is always a backup country ...
- updateCMSFields()