SilverShop\Shipping\Tests\RegionRestrictionRate
Synopsis
class RegionRestrictionRate
extends RegionRestriction
implements
TestOnly
{
- // members
- private static array $db = ;
- // 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
- $db
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.