Class: I2CE MagicDataStorage: Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
Line 22: Line 22:
*Signature: abstract public function destroy($node)
*Signature: abstract public function destroy($node)
*Parameters:
*Parameters:
*$node  
**$node  
===getHash()===
===getHash()===
Return the md5 Hash of the path of this object.
Return the md5 Hash of the path of this object.

Revision as of 13:08, 17 October 2009

This article desrcibes the1 class I2CE_MagicDataStorage.

Configuration class to lookup and save configuration options.

Variables

$name

The name associated with this storage object.

Methods

__construct()

Create a new instance for magic data storage.

  • Signature: public function __construct($name)
  • Parameters:
    • string $name
      The name assigned to this storage object

clear()

Clear the all keys/values associated with this storage

  • Signature: abstract public function clear()
  • Returns: boolean

destroy()

Erases the given I2CE_MagicDataNode from the storage mechanism @param I2CE_MagicDataNode @param boolean. True on sucess

  • Signature: abstract public function destroy($node)
  • Parameters:
    • $node

getHash()

Return the md5 Hash of the path of this object.

isAvailable()

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

  • Signature: abstract public function isAvailable()

retrieve()

Retrieve the given I2CE_MagicDataNode value and type.

store()

Store the given I2CE_MagicDataNode into the database.

  • Signature: abstract public function store($node)
  • Parameters:
  • Returns: boolean.
    True on sucess