PHP Class RegionRestriction, silvershop-core

Inheritance: extends DataObject
Afficher le fichier Open project: burnbright/silverstripe-shop Class Usage Examples

Méthodes publiques

Méthode Description
address_filter ( Address $address ) Produce a SQL filter to get matching RegionRestrictions to a given address
get_table_field_types ( )
onBeforeWrite ( )
parse_uk_postcode ( str $postcode ) : array Parses a UK postcode to give you the different sections
wildcard_sort ( $field, $direction = "ASC" ) Produces a sort check to make wildcards come last.

Method Details

address_filter() public static méthode

Produce a SQL filter to get matching RegionRestrictions to a given address
public static address_filter ( Address $address )
$address Address

get_table_field_types() public static méthode

public static get_table_field_types ( )

onBeforeWrite() public méthode

public onBeforeWrite ( )

parse_uk_postcode() public static méthode

Parses a UK postcode to give you the different sections
public static parse_uk_postcode ( str $postcode ) : array
$postcode str
Résultat array

wildcard_sort() public static méthode

Useful because we are only interested in the wildcard, and not sorting of other values.
public static wildcard_sort ( $field, $direction = "ASC" )