PHP 클래스 PayPal\Core\PayPalConfigManager

PayPalConfigManager loads the SDK configuration file and hands out appropriate config params to other classes
파일 보기 프로젝트 열기: paypal/rest-api-sdk-php 1 사용 예제들

공개 메소드들

메소드 설명
__clone ( ) Disabling __clone call
addConfigFromIni ( string $fileName ) Add Configuration from configuration.ini files
addConfigs ( array $configs = [] ) If a configuration exists in both arrays, then the element from the first array will be used and the matching key's element from the second array will be ignored.
get ( string $searchKey ) : array Simple getter for configuration params If an exact match for key is not found, does a "contains" search on the key
getConfigHashmap ( ) returns the config file hashmap
getIniPrefix ( string | null $userId = null ) : array | string Utility method for handling account configuration return config key corresponding to the API userId passed in
getInstance ( ) Returns the singleton object

비공개 메소드들

메소드 설명
__construct ( ) Private Constructor

메소드 상세

__clone() 공개 메소드

Disabling __clone call
public __clone ( )

addConfigFromIni() 공개 메소드

Add Configuration from configuration.ini files
public addConfigFromIni ( string $fileName )
$fileName string

addConfigs() 공개 메소드

If a configuration exists in both arrays, then the element from the first array will be used and the matching key's element from the second array will be ignored.
public addConfigs ( array $configs = [] )
$configs array

get() 공개 메소드

Simple getter for configuration params If an exact match for key is not found, does a "contains" search on the key
public get ( string $searchKey ) : array
$searchKey string
리턴 array

getConfigHashmap() 공개 메소드

returns the config file hashmap
public getConfigHashmap ( )

getIniPrefix() 공개 메소드

If $userId is null, returns config keys corresponding to all configured accounts
public getIniPrefix ( string | null $userId = null ) : array | string
$userId string | null
리턴 array | string

getInstance() 공개 정적인 메소드

Returns the singleton object
public static getInstance ( )