Class: I2CE MagicDataStorageSysV (Development)
This article describes the class I2CE_MagicDataStorageSysV .
- Extends the class: I2CE_MagicDataStorage.
- Location: Part of the module I2CE in the package I2CE 4.0-dev
- Source: Defined in the file lib/I2CE_MagicDataStorageSysV.php on line 34
Variables
$sem_id
The semaphore identifiers. @var protected $shm_id
- Defined in i2ce/lib/I2CE_MagicDataStorageSysV.php on line 69
- Type: protected $sem_id
$shm_id
The array of memory segments @var protected array $seg
- Defined in i2ce/lib/I2CE_MagicDataStorageSysV.php on line 74
- Type: protected $shm_id
$sem_key
The semaphore for keys @var protected $shm_id
- Defined in i2ce/lib/I2CE_MagicDataStorageSysV.php on line 79
- Type: protected $sem_key
$shm_key
The memory segments for keys @var protected array $seg
- Defined in i2ce/lib/I2CE_MagicDataStorageSysV.php on line 84
- Type: protected $shm_key
Methods
__construct()
Create a new instance for magic data storage.
- Defined in i2ce/lib/I2CE_MagicDataStorageSysV.php on line 91
- Signature: public function __construct($name)
- Parameters:
- string $name
The name assigned to this storage object
- string $name
clear()
releases all shared memory segments
- Defined in i2ce/lib/I2CE_MagicDataStorageSysV.php on line 335
- Signature: public function clear()
- Returns: boolean
constructSegments()
- Defined in i2ce/lib/I2CE_MagicDataStorageSysV.php on line 101
- Signature: protected function constructSegments($check_avail)
- Parameters:
- $check_avail
- Default Value: true
- $check_avail
destroy()
Erases the given I2CE_MagicDataNode from the storage mechanism @param I2CE_MagicDataNode
- Defined in i2ce/lib/I2CE_MagicDataStorageSysV.php on line 259
- Signature: public function destroy($node)
- Parameters:
- $node
getKey()
- Defined in i2ce/lib/I2CE_MagicDataStorageSysV.php on line 178
- Signature: protected function getKey($path,$hash,$bucket)
- Parameters:
- $path
- $hash
- $bucket
getNextKey()
- Defined in i2ce/lib/I2CE_MagicDataStorageSysV.php on line 137
- Signature: protected function getNextKey($bucket)
- Parameters:
- $bucket
getSegment()
- Defined in i2ce/lib/I2CE_MagicDataStorageSysV.php on line 129
- Signature: protected function getSegment($hash)
- Parameters:
- $hash
isAvailable()
Returns true if this storage mechanism is ready to be used. false otherwise.
- Defined in i2ce/lib/I2CE_MagicDataStorageSysV.php on line 44
- Signature: public function isAvailable()
retrieve()
Retrieve the given I2CE_MagicDataNode value and type.
- Defined in i2ce/lib/I2CE_MagicDataStorageSysV.php on line 233
- Signature: public function retrieve($node)
- Parameters:
- I2CE_MagicDataNode $node
- Returns: array
store()
Store the given I2CE_MagicDataNode into the database.
- Defined in i2ce/lib/I2CE_MagicDataStorageSysV.php on line 294
- Signature: public function store($node)
- Parameters:
- I2CE_MagicDataNode $node
- Returns: boolean.
True on sucess
Inherited Methods
getHash()
This public method is inherited from I2CE_MagicDataStorage->getHash()
Inherited Variables
$name
Theis protected variable is inherited from I2CE_MagicDataStorage->$name