306.1. Zend\Memory\Container\Movable
Memory value container
Movable (may be swapped with specified backend and unloaded).
306.1.1. Methods
306.1.1.1. __construct
-
__construct()
Object constructor
Parameters: |
- ZendMemoryMemoryManager –
- integer –
- string –
|
306.1.1.2. lock
-
lock()
Lock object in memory.
306.1.1.3. unlock
-
unlock()
Unlock object
306.1.1.4. isLocked
-
isLocked()
Return true if object is locked
306.1.1.5. __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 |
Throws : | ExceptionInvalidArgumentException |
306.1.1.6. __set
-
__set()
Set handler
Parameters: |
|
Throws ExceptionInvalidArgumentException: |
| |
306.1.1.7. getRef
-
getRef()
Get string value reference
_Must_ be used for value access before PHP v 5.2
or _may_ be used for performance considerations
306.1.1.8. touch
-
touch()
Signal, that value is updated by external code.
Should be used together with getRef()
306.1.1.9. processUpdate
-
processUpdate()
Process container value update.
Must be called only by value object
306.1.1.10. startTrace
-
startTrace()
Start modifications trace
306.1.1.11. setValue
-
setValue()
Set value (used by memory manager when value is loaded)
306.1.1.12. unloadValue
-
unloadValue()
Clear value (used by memory manager when value is swapped)
306.1.1.13. markAsSwapped
-
markAsSwapped()
Mark, that object is swapped
306.1.1.14. isSwapped
-
isSwapped()
Check if object is marked as swapped
306.1.1.15. getId
-
getId()
Get object id
306.1.1.16. destroy
-
destroy()
Destroy memory container and remove it from memory manager list
306.1.2. Constants
306.1.2.1. LOADED
Value states */
306.1.2.2. SWAPPED
306.1.2.3. LOCKED