PHP 클래스 RegionRestriction, silvershop-core

상속: extends DataObject
파일 보기 프로젝트 열기: burnbright/silverstripe-shop 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

address_filter() 공개 정적인 메소드

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 get_table_field_types ( )

onBeforeWrite() 공개 메소드

public onBeforeWrite ( )

parse_uk_postcode() 공개 정적인 메소드

Parses a UK postcode to give you the different sections
public static parse_uk_postcode ( str $postcode ) : array
$postcode str
리턴 array

wildcard_sort() 공개 정적인 메소드

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