SilverShop\Shipping\Model\Zone
A zone is a collection of regions. Zones can cross over each other.
Zone matching is prioritised by specificity. For example, a matching post code
will take priority over a matching country.
Synopsis
class Zone
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_many = ;
- private static array $summary_fields = ;
- private static string $table_name = 'SilverShop_Zone';
- // methods
- public static void get_zones_for_address()
- public static void cache_zone_ids()
- public static void get_zone_ids()
- public void getCMSFields()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $db
- $has_many
- $summary_fields
- $table_name
Methods
public
- cache_zone_ids()
- getCMSFields()
- get_zone_ids() — Get cached ids as array
- get_zones_for_address()