PHP 클래스 PayPal\Cache\AuthorizationCache

파일 보기 프로젝트 열기: paypal/rest-api-sdk-php 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$CACHE_PATH

공개 메소드들

메소드 설명
cachePath ( $config ) : string Returns the cache file path
isEnabled ( $config ) : boolean Determines from the Configuration if caching is currently enabled/disabled
pull ( array | null $config = null, string $clientId = null ) : mixed | null A pull method which would read the persisted data based on clientId.
push ( array | null $config = null, $clientId, $accessToken, $tokenCreateTime, $tokenExpiresIn ) Persists the data into a cache file provided in $CACHE_PATH

비공개 메소드들

메소드 설명
getConfigValue ( $key, $config ) : null | string Returns the Value of the key if found in given config, or from PayPal Config Manager Returns null if not found

메소드 상세

cachePath() 공개 정적인 메소드

Returns the cache file path
public static cachePath ( $config ) : string
$config
리턴 string

isEnabled() 공개 정적인 메소드

Determines from the Configuration if caching is currently enabled/disabled
public static isEnabled ( $config ) : boolean
$config
리턴 boolean

pull() 공개 정적인 메소드

If clientId is not provided, an array with all the tokens would be passed.
public static pull ( array | null $config = null, string $clientId = null ) : mixed | null
$config array | null
$clientId string
리턴 mixed | null

push() 공개 정적인 메소드

Persists the data into a cache file provided in $CACHE_PATH
public static push ( array | null $config = null, $clientId, $accessToken, $tokenCreateTime, $tokenExpiresIn )
$config array | null
$clientId
$accessToken
$tokenCreateTime
$tokenExpiresIn

프로퍼티 상세

$CACHE_PATH 공개적으로 정적으로 프로퍼티

public static $CACHE_PATH