## Zend_Memory_Container

Description

Implements interfaces:

- Zend_Memory_Container_Interface

Memory value container

- license: New BSD License
- copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Memory/Container.php (line 38)

Class Constant Summary
LOADED = 1
LOCKED = 4
SWAPPED = 2
Method Summary
integer getId ()
string &getRef ()
boolean isLocked ()
Zend_Memory_Container __construct ( $memoryManager, $id, $value)
void __destruct ()
void lock ([boolean $writeLock = true])
void processUpdate ()
void touch ()
void unlock ()
string __get (string $property)
void __set (string $property, string $value)
Methods
getId (line 144)

Get memory object id

- access: public

integer getId ()
getRef (line 207)

Get string value reference

_Must_ be used for value access before PHP v 5.2 or _may_ be used for performance considerations

- access: public

string &getRef ()

Implementation of:

Zend_Memory_Container_Interface::getRef()
  Get string value reference

isLocked (line 134)

Return true if object is locked

- access: public

boolean isLocked ()
Constructor __construct (line 80)

- access: public

Zend_Memory_Container __construct ( $memoryManager, $id, $value)

- $memoryManager
- $id
- $value

Destructor __destruct (line 89)

- access: public

void __destruct ()
lock (line 104)

Lock object in memory.

If writeLock is true, than object is locked for writing Otherwise only read lock is obtained. (Write lock also discards swapped data)

- access: public

void lock ([boolean $writeLock = true])

- boolean $writeLock

processUpdate (line 231)

Zend_Memory_Container interface

Process container value update. Must be called only by value object

- access: public

void processUpdate ()

Implementation of:

Zend_Memory_Container_Interface::processUpdate()
  Process container value update

touch (line 217)

Signal, that value is updated by external code.

Should be used together with getRef()

- access: public

void touch ()

Implementation of:

Zend_Memory_Container_Interface::touch()
  Signal, that value is updated by external code.

unlock (line 124)

Unlock object

- access: public

void unlock ()
__get (line 159)

Get handler

Loads object if necessary and moves it to the top of loaded objects list. Swaps objects from the bottom of loaded objects list, if necessary.

- access: public
- throws: Zend_Memory_Exception

string __get (string $property)

- string $property

__set (line 181)

Set handler

- access: public
- throws: Zend_Exception

void __set (string $property, string $value)

- string $property
- string $value

Class Constants
LOADED = 1 (line 69)

Value states

LOCKED = 4 (line 71)
SWAPPED = 2 (line 70)

Documentation generated on Wed, 21 Feb 2007 12:02:20 -0800 by phpDocumentor 1.3.1