PHP 클래스 SAuth_Adapter_Abstract, sauth

파일 보기 프로젝트 열기: nnixaa/sauth

보호된 프로퍼티들

프로퍼티 타입 설명
$_sessionLiveTime Session live time
$_sessionStorage Session storage

공개 메소드들

메소드 설명
__construct ( array $config ) Object constructor method
getConfig ( string $key = null ) : array Getting configuration
getSessionKey ( ) : string Getting session key
getSessionLiveTime ( ) : integer Gettion session live time
getSessionStorage ( ) : Zend_Session_Namespace Getting session storage
httpRequest ( string $type, string $url, string $parameters, $headers = [] ) : Zend_Http_Response Send http request
parseResponseJson ( string $body ) : array | false Parse json response
parseResponseUrl ( string $url ) : array | false Parse response url
setConfig ( array $config ) : array Setting configuration
setUpSessionStorage ( ) : Zend_Session_Namespace Setting up session storage

보호된 메소드들

메소드 설명
_getTokenRequest ( ) : false | string Getting token request from session storage
_prepareIdentity ( $identity ) : array Add specified parameters into identity
_setSessionKey ( string $key ) : false | string Setting session key After setSession key you must reset session storage calling setUpSessionStorage
_setSessionLiveTime ( integer $time ) : false | integer Settion session live time
_setTokenRequest ( string $tokenRequest ) : string Setting token request from session storage
_unsetTokenRequest ( ) Unset token request from session storage

메소드 상세

__construct() 공개 메소드

Object constructor method
public __construct ( array $config )
$config array

_getTokenRequest() 보호된 메소드

Getting token request from session storage
protected _getTokenRequest ( ) : false | string
리턴 false | string

_prepareIdentity() 보호된 메소드

Add specified parameters into identity
protected _prepareIdentity ( $identity ) : array
리턴 array

_setSessionKey() 보호된 메소드

Setting session key After setSession key you must reset session storage calling setUpSessionStorage
protected _setSessionKey ( string $key ) : false | string
$key string
리턴 false | string

_setSessionLiveTime() 보호된 메소드

Settion session live time
protected _setSessionLiveTime ( integer $time ) : false | integer
$time integer
리턴 false | integer

_setTokenRequest() 보호된 메소드

Setting token request from session storage
protected _setTokenRequest ( string $tokenRequest ) : string
$tokenRequest string
리턴 string

_unsetTokenRequest() 보호된 메소드

Unset token request from session storage
protected _unsetTokenRequest ( )

getConfig() 공개 메소드

Getting configuration
public getConfig ( string $key = null ) : array
$key string
리턴 array Configuration array

getSessionKey() 공개 메소드

Getting session key
public getSessionKey ( ) : string
리턴 string

getSessionLiveTime() 공개 메소드

Gettion session live time
public getSessionLiveTime ( ) : integer
리턴 integer

getSessionStorage() 공개 메소드

Getting session storage
public getSessionStorage ( ) : Zend_Session_Namespace
리턴 Zend_Session_Namespace

httpRequest() 공개 메소드

Send http request
public httpRequest ( string $type, string $url, string $parameters, $headers = [] ) : Zend_Http_Response
$type string GET or POST
$url string
$parameters string
리턴 Zend_Http_Response

parseResponseJson() 공개 메소드

Parse json response
public parseResponseJson ( string $body ) : array | false
$body string
리턴 array | false

parseResponseUrl() 공개 메소드

Parse response url
public parseResponseUrl ( string $url ) : array | false
$url string
리턴 array | false

setConfig() 공개 메소드

Setting configuration
public setConfig ( array $config ) : array
$config array
리턴 array Configuration array

setUpSessionStorage() 공개 메소드

Setting up session storage
public setUpSessionStorage ( ) : Zend_Session_Namespace
리턴 Zend_Session_Namespace

프로퍼티 상세

$_sessionLiveTime 보호되어 있는 프로퍼티

Session live time
protected $_sessionLiveTime

$_sessionStorage 보호되어 있는 프로퍼티

Session storage
protected $_sessionStorage