Class: I2CE MagicDataStorageMongoDB (4.0.9)

From IHRIS Wiki
Revision as of 14:34, 21 December 2010 by Litlfred (talk | contribs) (Created page with '{{otherversions|Class: I2CE_MagicDataStorageMongoDB}} This article describes the class ''I2CE_MagicDataStorageMongoDB'' . *Extends the class: [[Class: I2CE_MagicDataStorage (4.0.…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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