PHP Класс PayPal\Core\PPConfigManager

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

Открытые свойства

Свойство Тип Описание
$defaults default config values

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

Метод Описание
get ( $searchKey ) simple getter for configuration params If an exact match for key is not found, does a "contains" search on the key
getConfigWithDefaults ( $config = null ) use the default configuration if it is not passed in hashmap
getIniPrefix ( $userId = null ) Utility method for handling account configuration return config key corresponding to the API userId passed in
getInstance ( ) create singleton object for PPConfigManager

Приватные методы

Метод Описание
__construct ( )
getConfigHashmap ( ) returns the config file hashmap
load ( $fileName ) used to load the file

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

get() публичный метод

simple getter for configuration params If an exact match for key is not found, does a "contains" search on the key
public get ( $searchKey )

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

use the default configuration if it is not passed in hashmap
public static getConfigWithDefaults ( $config = null )

getIniPrefix() публичный метод

If $userId is null, returns config keys corresponding to all configured accounts
public getIniPrefix ( $userId = null )

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

create singleton object for PPConfigManager
public static getInstance ( )

Описание свойств

$defaults публичное статическое свойство

default config values
public static $defaults