PHP 클래스 ShopConfig, silvershop-core

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

공개 메소드들

메소드 설명
config ( ) : Config_ForClass Helper for getting static shop config.
countryCode2name ( $code ) * Convert iso country code to English country name
current ( )
getCountriesList ( boolean $prefixisocode = false ) : array Get list of allowed countries
getSingleCountry ( $fullname = false ) : string For shops that only sell to a single country, this will return the country code, otherwise null.
get_base_currency ( )
get_site_currency ( )
updateCMSFields ( FieldList $fields )

메소드 상세

config() 공개 정적인 메소드

The 'config' static function isn't avaialbe on Extensions.
public static config ( ) : Config_ForClass
리턴 Config_ForClass configuration object

countryCode2name() 공개 정적인 메소드

* Convert iso country code to English country name
public static countryCode2name ( $code )

current() 공개 정적인 메소드

public static current ( )

getCountriesList() 공개 메소드

Get list of allowed countries
public getCountriesList ( boolean $prefixisocode = false ) : array
$prefixisocode boolean - prefix the country code
리턴 array

getSingleCountry() 공개 메소드

For shops that only sell to a single country, this will return the country code, otherwise null.
public getSingleCountry ( $fullname = false ) : string
리턴 string country code

get_base_currency() 공개 정적인 메소드

public static get_base_currency ( )

get_site_currency() 공개 정적인 메소드

public static get_site_currency ( )

updateCMSFields() 공개 메소드

public updateCMSFields ( FieldList $fields )
$fields FieldList