TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Rsaauth\Storage\SplitStorage Class Reference
Inheritance diagram for TYPO3\CMS\Rsaauth\Storage\SplitStorage:
TYPO3\CMS\Rsaauth\Storage\AbstractStorage

Public Member Functions

 __construct (DatabaseConnection $databaseConnection=null)
 
 get ()
 
 put ($key)
 
- Public Member Functions inherited from TYPO3\CMS\Rsaauth\Storage\AbstractStorage
 get ()
 
 put ($key)
 

Protected Attributes

 $databaseConnection
 

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 24 of file SplitStorage.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Rsaauth\Storage\SplitStorage::__construct ( DatabaseConnection  $databaseConnection = null)

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

Parameters
DatabaseConnection$databaseConnectionA database connection may be injected here

Definition at line 37 of file SplitStorage.php.

References TYPO3\CMS\Rsaauth\Storage\SplitStorage\$databaseConnection, and $GLOBALS.

Member Function Documentation

◆ get()

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

Obtains a key from the database

Returns
string The key or NULL
See also
::get()

Definition at line 51 of file SplitStorage.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger().

◆ put()

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

Adds a key to the storage or removes existing key

Parameters
string$keyThe key
Returns
void
See also
::put()

Definition at line 74 of file SplitStorage.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger().

Member Data Documentation

◆ $databaseConnection

TYPO3\CMS\Rsaauth\Storage\SplitStorage::$databaseConnection
protected

Definition at line 29 of file SplitStorage.php.

Referenced by TYPO3\CMS\Rsaauth\Storage\SplitStorage\__construct().