TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
SplitStorage Class Reference
Inheritance diagram for SplitStorage:
AbstractStorage

Public Member Functions

 __construct (DatabaseConnection $databaseConnection=null)
 
 get ()
 
 put ($key)
 
- Public Member Functions inherited from 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 ( 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 SplitStorage\$databaseConnection, and $GLOBALS.

Member Function Documentation

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 MathUtility\canBeInterpretedAsInteger().

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 MathUtility\canBeInterpretedAsInteger().

Member Data Documentation

$databaseConnection
protected

Definition at line 29 of file SplitStorage.php.

Referenced by SplitStorage\__construct().