Memory value container.
More...
|
| __construct (Memory\MemoryManager $memoryManager, $id, $value) |
| Object constructor.
|
|
| lock () |
| Lock object in memory.
|
|
| unlock () |
| Unlock object.
|
|
| isLocked () |
| Return true if object is locked.
|
|
| __get ($property) |
| Get handler.
|
|
| __set ($property, $value) |
| Set handler.
|
|
& | getRef () |
| Get string value reference.
|
|
| touch () |
| Signal, that value is updated by external code.
|
|
| processUpdate () |
| Process container value update.
|
|
| startTrace () |
| Start modifications trace.
|
|
| setValue ($value) |
| Set value (used by memory manager when value is loaded)
|
|
| unloadValue () |
| Clear value (used by memory manager when value is swapped)
|
|
| markAsSwapped () |
| Mark, that object is swapped.
|
|
| isSwapped () |
| Check if object is marked as swapped.
|
|
| getId () |
| Get object id.
|
|
| destroy () |
| Destroy memory container and remove it from memory manager list.
|
|
Memory value container.
Movable (may be swapped with specified backend and unloaded).
Object constructor.
- Parameters
-
\Zend\Memory\MemoryManager | $memoryManager | |
int | $id | |
string | $value | |
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
-
- Returns
- string
- Exceptions
-
Exception\InvalidArgumentException | |
__set |
( |
|
$property, |
|
|
|
$value |
|
) |
| |
Set handler.
- Parameters
-
string | $property | |
string | $value | |
- Exceptions
-
Exception\InvalidArgumentException | |
Destroy memory container and remove it from memory manager list.
We don't clean up swap because of performance considerations Cleaning is performed by Memory Manager destructor
Get string value reference.
_Must_ be used for value access before PHP v 5.2 or _may_ be used for performance considerations
- Returns
- &string
Implements ContainerInterface.
Check if object is marked as swapped.
Lock object in memory.
- Todo:
- It's possible to set "value" container attribute to avoid modification tracing, while it's locked Check, if it's more effective
Implements ContainerInterface.
Mark, that object is swapped.
Process container value update.
Must be called only by value object
Set value (used by memory manager when value is loaded)
Start modifications trace.
Clear value (used by memory manager when value is swapped)