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.
category | Zend |
---|---|
package | Zend_Memory |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
__construct(\Zend_Memory_Container_Movable $memContainer)
__destruct()
__get(string $property) : string
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.
string
\Zend_Memory_Exception |
---|
string
__set(string $property, string $value)
string
string
\Zend_Exception |
---|
getRef() : \&string
Must be used for value access before PHP v 5.2 or may be used for performance considerations
inherited_from | \Zend_Memory_Container_Interface::getRef() |
---|
\&string
isLocked() : boolean
inherited_from | \Zend_Memory_Container_Interface::isLocked() |
---|
boolean
lock()
inherited_from | \Zend_Memory_Container_Interface::lock() |
---|
touch()
Should be used together with getRef()
inherited_from | \Zend_Memory_Container_Interface::touch() |
---|
unlock()
inherited_from | \Zend_Memory_Container_Interface::unlock() |
---|
$_memContainer : \Zend_Memory_Container