SilverShop\Shipping\Model\ZoneRegion
Class ZoneRegion
Synopsis
class ZoneRegion
extends RegionRestriction
{
- // members
- private static array $has_one = ;
- private static string $table_name = 'SilverShop_ZoneRegion';
- // Inherited methods from RegionRestriction
- public static array parse_uk_postcode()
- public static void filteredByAddress()
- public static array getAddressFilters()
- public static void get_table_field_types()
- public static void wildcard_sort()
- public void onBeforeWrite()
Hierarchy
Tasks
Line | Task |
---|---|
164 | prevent non-heirarichal entries, eg country = '*', then state = 'blah' |
Members
private
- $has_one
- $table_name
Methods
Inherited from SilverShop\Shipping\Model\RegionRestriction
public
- filteredByAddress() — Produce a SQL filter to get matching RegionRestrictions to a given address
- getAddressFilters()
- get_table_field_types()
- onBeforeWrite()
- parse_uk_postcode() — Parses a UK postcode to give you the different sections TODO: Very specific functionality. Consider moving this to a separate module
- wildcard_sort() — Produces a sort check to make wildcards come last.