Zend\Memory\Container\AccessController
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 immediately after going
out of scope or unset operation.
Class also provides Zend\Memory\Container interface and works as proxy for such cases.
Synopsis
class AccessController
implements
ContainerInterface
{
- // members
- private Movable $memContainer;
- // methods
- public void __construct()
- public void __destruct()
- public &string getRef()
- public void touch()
- public void lock()
- public void unlock()
- public bool isLocked()
- public string __get()
- public void __set()
Hierarchy
Implements
Members
private
- $memContainer
—
Zend\Memory\Container\Movable
Memory container object
Methods
public
- __construct() — Object constructor
- __destruct() — Object destructor
- __get() — Get handler
- __set() — Set handler
- getRef() — Get string value reference
- isLocked() — Return true if object is locked
- lock() — Lock object in memory.
- touch() — Signal, that value is updated by external code.
- unlock() — Unlock object