![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct (DatabaseConnection $databaseConnection=null) | |
get () | |
put ($key) | |
![]() | |
get () | |
put ($key) | |
Protected Attributes | |
$databaseConnection | |
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.
__construct | ( | DatabaseConnection | $databaseConnection = null | ) |
Creates an instance of this class. It checks and initializes PHP sessions if necessary.
DatabaseConnection | $databaseConnection | A database connection may be injected here |
Definition at line 37 of file SplitStorage.php.
References SplitStorage\$databaseConnection, and $GLOBALS.
get | ( | ) |
Obtains a key from the database
Definition at line 51 of file SplitStorage.php.
References $GLOBALS, and MathUtility\canBeInterpretedAsInteger().
put | ( | $key | ) |
Adds a key to the storage or removes existing key
string | $key | The key |
Definition at line 74 of file SplitStorage.php.
References $GLOBALS, and MathUtility\canBeInterpretedAsInteger().
|
protected |
Definition at line 29 of file SplitStorage.php.
Referenced by SplitStorage\__construct().