PHP Class PayPal\Core\PPConfigManager

Show file Open project: paypal/sdk-core-php Class Usage Examples

Public Properties

Property Type Description
$defaults default config values

Public Methods

Method Description
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

Private Methods

Method Description
__construct ( )
getConfigHashmap ( ) returns the config file hashmap
load ( $fileName ) used to load the file

Method Details

get() public method

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() public static method

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

getIniPrefix() public method

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

getInstance() public static method

create singleton object for PPConfigManager
public static getInstance ( )

Property Details

$defaults public static property

default config values
public static $defaults