Class Zend_Memory_AccessController

Description

Implements interfaces:

Memory object container access controller.

Memory manager stores a list of generated objects to control them. So container objects always have at least one reference and can't be automatically destroyed.

This class is intended to be an userland proxy to memory container object. It's not referenced by memory manager and class destructor is invoked immidiately after gouing out of scope or unset operation.

Class also provides Zend_Memory_Container_Interface interface and works as proxy for such cases.

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

Located in /Memory/AccessController.php (line 37)


	
			
Method Summary
 Zend_Memory_AccessController __construct (Zend_Memory_Container_Movable $memContainer, Zend_Memory_Container_Movable $memoryManager)
 void __destruct ()
 &string &getRef ()
 boolean isLocked ()
 void lock ()
 void touch ()
 void unlock ()
 string __get (string $property)
 void __set (string $property, string $value)
Methods
Constructor __construct (line 52)

Object constructor

  • access: public
Zend_Memory_AccessController __construct (Zend_Memory_Container_Movable $memContainer, Zend_Memory_Container_Movable $memoryManager)
Destructor __destruct (line 60)

Object destructor

  • access: public
void __destruct ()
getRef (line 74)

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 111)

Return true if object is locked

  • access: public
boolean isLocked ()

Implementation of:
Zend_Memory_Container_Interface::isLocked()
Return true if object is locked
lock (line 92)

Lock object in memory.

  • access: public
void lock ()

Implementation of:
Zend_Memory_Container_Interface::lock()
Lock object in memory.
touch (line 84)

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 101)

Unlock object

  • access: public
void unlock ()

Implementation of:
Zend_Memory_Container_Interface::unlock()
Unlock object
__get (line 126)

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.

  • throws: Zend_Memory_Exception
  • access: public
string __get (string $property)
  • string $property
__set (line 138)

Set handler

  • throws: Zend_Exception
  • access: public
void __set (string $property, string $value)
  • string $property
  • string $value

Documentation generated on Sun, 27 May 2007 23:20:22 -0700 by phpDocumentor 1.3.2