Class: I2CE MagicDataStorageMongoDB (4.0.9)

From IHRIS Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


This article describes the class I2CE_MagicDataStorageMongoDB .

Configuration class to lookup and save configuration options.

Variables

$mongo

The mongo instance.

$mongodb

The mongo DB instance.

$collection

The mongo db instance collection for this storage.

Methods

__construct()

Construct the storage object @param $db_name The name of the database to use @param $name The name of the storage

clear()

Delete the whole MongoDB collection

destroy()

Erases the given I2CE_MagicDataNode from the storage mechanism @param I2CE_MagicDataNode

isAvailable()

Returns true if this storage mechanism is ready to be used. false otherwise.

retrieve()

Retrieve the given I2CE_MagicDataNode value and type.

store()

Store the given I2CE_MagicDataNode into MongoDB

Inherited Methods

getHash()

This public method is inherited from I2CE_MagicDataStorage->getHash()

Inherited Variables

$name

Theis protected variable is inherited from I2CE_MagicDataStorage->$name