PHP Класс ShopConfig, silvershop-core

Наследование: extends CActiveRecord
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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