‪TYPO3CMS  9.5
TYPO3\CMS\Rsaauth\Storage\SplitStorage Class Reference
Inheritance diagram for TYPO3\CMS\Rsaauth\Storage\SplitStorage:
TYPO3\CMS\Rsaauth\Storage\AbstractStorage TYPO3\CMS\Core\Http\CookieHeaderTrait

Public Member Functions

 __construct ()
 
string get ()
 
 put ($key)
 

Protected Member Functions

int removeExpiredKeys ()
 

Detailed Description

This class contains a "split" storage for the data. It keeps part of the data in the database, part in the session.

Definition at line 27 of file SplitStorage.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Rsaauth\Storage\SplitStorage::__construct ( )

Creates an instance of this class. It checks and initializes PHP sessions if necessary.

Definition at line 34 of file SplitStorage.php.

References TYPO3\CMS\Core\Http\CookieHeaderTrait\hasSameSiteCookieSupport(), and TYPO3\CMS\Core\Http\CookieHeaderTrait\resendCookieHeader().

Member Function Documentation

◆ get()

string TYPO3\CMS\Rsaauth\Storage\SplitStorage::get ( )

Obtains a key from the database

Returns
‪string The key or NULL
See also
‪\TYPO3\CMS\Rsaauth\Storage\AbstractStorage::get()

Reimplemented from TYPO3\CMS\Rsaauth\Storage\AbstractStorage.

Definition at line 57 of file SplitStorage.php.

References TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger(), and TYPO3\CMS\Rsaauth\Storage\SplitStorage\removeExpiredKeys().

◆ put()

TYPO3\CMS\Rsaauth\Storage\SplitStorage::put (   $key)

Adds a key to the storage or removes existing key

Parameters
string$key‪The key
See also
‪\TYPO3\CMS\Rsaauth\Storage\AbstractStorage::put()

Reimplemented from TYPO3\CMS\Rsaauth\Storage\AbstractStorage.

Definition at line 84 of file SplitStorage.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger(), and TYPO3\CMS\Rsaauth\Storage\SplitStorage\removeExpiredKeys().

◆ removeExpiredKeys()

int TYPO3\CMS\Rsaauth\Storage\SplitStorage::removeExpiredKeys ( )
protected

Remove expired keys (more than 30 minutes old).

Returns
‪int The number of expired keys that have been removed

Definition at line 146 of file SplitStorage.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Rsaauth\Storage\SplitStorage\get(), and TYPO3\CMS\Rsaauth\Storage\SplitStorage\put().