PHP Class Horde_SessionHandler_Storage_Mongo, horde

Author: Michael Slusarz ([email protected])
Inheritance: extends Horde_SessionHandler_Storage, implements Horde_Mongo_Collection_Index
Datei anzeigen Open project: horde/horde

Protected Properties

Property Type Description
$_db MongoCollection MongoCollection object for the storage table.
$_indices array Indices list.
$_locked boolean Is the session locked.

Public Methods

Method Description
__construct ( array $params = [] ) Constructor.
checkMongoIndices ( )
close ( )
createMongoIndices ( )
destroy ( $id )
gc ( $maxlifetime = 300 )
getSessionIDs ( )
open ( $save_path = null, $session_name = null )
read ( $id )
write ( $id, $session_data )

Method Details

__construct() public method

Constructor.
public __construct ( array $params = [] )
$params array Parameters:
collection: (string) The collection to store data in.
mongo_db: (Horde_Mongo_Client) [REQUIRED] The Mongo client object.

checkMongoIndices() public method

public checkMongoIndices ( )

close() public method

public close ( )

createMongoIndices() public method

public createMongoIndices ( )

destroy() public method

public destroy ( $id )

gc() public method

public gc ( $maxlifetime = 300 )

getSessionIDs() public method

public getSessionIDs ( )

open() public method

public open ( $save_path = null, $session_name = null )

read() public method

public read ( $id )

write() public method

public write ( $id, $session_data )

Property Details

$_db protected_oe property

MongoCollection object for the storage table.
protected MongoCollection $_db
return MongoCollection

$_indices protected_oe property

Indices list.
protected array $_indices
return array

$_locked protected_oe property

Is the session locked.
protected bool $_locked
return boolean