299. Class

299.1. 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 ZendMemoryContainer interface and works as proxy for such cases.

299.1.1. Methods

299.1.1.1. __construct

__construct()

Object constructor

Parameters:Movable

299.1.1.2. __destruct

__destruct()

Object destructor

299.1.1.3. getRef

getRef()

Get string value reference

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

Return type:&string

299.1.1.4. touch

touch()

Signal, that value is updated by external code.

Should be used together with getRef()

299.1.1.5. lock

lock()

Lock object in memory.

299.1.1.6. unlock

unlock()

Unlock object

299.1.1.7. isLocked

isLocked()

Return true if object is locked

Return type:bool

299.1.1.8. __get

__get()

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.

Parameters:string
Return type:string

299.1.1.9. __set

__set()

Set handler

Parameters:
  • string
  • string