Свойство | Type | Description | |
---|---|---|---|
$_sessionLiveTime | Session live time | ||
$_sessionStorage | Session storage |
Méthode | Description | |
---|---|---|
__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 |
Méthode | Description | |
---|---|---|
_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 |
public __construct ( array $config ) | ||
$config | array |
protected _getTokenRequest ( ) : false | string | ||
Résultat | false | string |
protected _prepareIdentity ( $identity ) : array | ||
Résultat | array |
protected _setSessionKey ( string $key ) : false | string | ||
$key | string | |
Résultat | false | string |
protected _setSessionLiveTime ( integer $time ) : false | integer | ||
$time | integer | |
Résultat | false | integer |
protected _setTokenRequest ( string $tokenRequest ) : string | ||
$tokenRequest | string | |
Résultat | string |
protected _unsetTokenRequest ( ) |
public getSessionKey ( ) : string | ||
Résultat | string |
public getSessionLiveTime ( ) : integer | ||
Résultat | integer |
public getSessionStorage ( ) : Zend_Session_Namespace | ||
Résultat | Zend_Session_Namespace |
public parseResponseJson ( string $body ) : array | false | ||
$body | string | |
Résultat | array | false |
public parseResponseUrl ( string $url ) : array | false | ||
$url | string | |
Résultat | array | false |
public setUpSessionStorage ( ) : Zend_Session_Namespace | ||
Résultat | Zend_Session_Namespace |