Class: I2CE MagicDataStorageMongoDB (4.0.21)

From IHRIS Wiki


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

getChildPath()

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

getHash()

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

renameChild()

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

Inherited Variables

$name

Theis protected variable is inherited from I2CE_MagicDataStorage->$name