PHP Class Horde_Prefs_Storage_Mongo, horde

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

Protected Properties

Property Type Description
$_db MongoCollection The MongoDB Collection object for the cache data.
$_indices array Indices list.

Public Methods

Method Description
__construct ( string $user, array $params = [] ) Constructor.
checkMongoIndices ( )
createMongoIndices ( )
get ( $scope_ob )
listScopes ( )
remove ( $scope = null, $pref = null )
store ( $scope_ob )

Method Details

__construct() public method

Constructor.
public __construct ( string $user, array $params = [] )
$user string The username.
$params array Configuration parameters.
  - collection: (string) The collection name.
  - mongo_db: (Horde_Mongo_Client) [REQUIRED] A MongoDB client object.

checkMongoIndices() public method

public checkMongoIndices ( )

createMongoIndices() public method

public createMongoIndices ( )

get() public method

public get ( $scope_ob )

listScopes() public method

public listScopes ( )

remove() public method

public remove ( $scope = null, $pref = null )

store() public method

public store ( $scope_ob )

Property Details

$_db protected_oe property

The MongoDB Collection object for the cache data.
protected MongoCollection $_db
return MongoCollection

$_indices protected_oe property

Indices list.
protected array $_indices
return array