Свойство | Type | Description | |
---|---|---|---|
$tokens |
Свойство | Type | Description | |
---|---|---|---|
$data | object |
Méthode | Description | |
---|---|---|
__construct ( Pantheon\Terminus\DataStore\DataStoreInterface $data_store ) | Instantiates object, sets session data, instantiates a SavedTokens instance | |
destroy ( ) | Removes the session from the cache | |
get ( string $key ) : mixed | Returns given data property or default if DNE. | |
getTokens ( ) : |
||
getUser ( ) : |
Returns a user with the current session user id | |
isActive ( ) : boolean | Responds with the status of this session (i.e. whether the client is logged in) | |
setData ( array $data ) | Saves session data to cache | |
setDataStore ( Pantheon\Terminus\DataStore\DataStoreInterface $data_store ) |
public __construct ( Pantheon\Terminus\DataStore\DataStoreInterface $data_store ) | ||
$data_store | Pantheon\Terminus\DataStore\DataStoreInterface | An object to persist the session data. |
public getTokens ( ) : |
||
Résultat |
public getUser ( ) : |
||
Résultat | [user] $session user |
public setDataStore ( Pantheon\Terminus\DataStore\DataStoreInterface $data_store ) | ||
$data_store | Pantheon\Terminus\DataStore\DataStoreInterface |