PHP Класс New_Device_Notification_VIP_Go, vip-mu-plugins-public

Customisations for the VIP Go platform.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( ) New_Device_Notification_VIP_Go constructor.
country_code_to_long ( string $code ) : string Convert a two letter country code to a country name.
filter_ndn_location ( object $location ) : object Hooks the ndn_location filter to supply the location of the current remote address.
instance ( ) : New_Device_Notification_VIP_Go Get the singleton instance of this class

Описание методов

__construct() публичный Метод

New_Device_Notification_VIP_Go constructor.
public __construct ( )

country_code_to_long() публичный Метод

Convert a two letter country code to a country name.
public country_code_to_long ( string $code ) : string
$code string A two letter country code
Результат string The name of a country, or an empty string if nothing matches the supplied code

filter_ndn_location() публичный Метод

Hooks the ndn_location filter to supply the location of the current remote address.
public filter_ndn_location ( object $location ) : object
$location object A stdClass object, detailing a location (possibly unknown)
Результат object A stdClass object, detailing the location of the remote address

instance() публичный статический Метод

Get the singleton instance of this class
public static instance ( ) : New_Device_Notification_VIP_Go
Результат New_Device_Notification_VIP_Go