Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (Zend_Memory_Manager $memoryManager, $id, $value) | |
lock () | |
unlock () | |
isLocked () | |
__get ($property) | |
__set ($property, $value) | |
& | getRef () |
touch () | |
processUpdate () | |
startTrace () | |
setValue ($value) | |
unloadValue () | |
markAsSwapped () | |
isSwapped () | |
getId () | |
destroy () | |
Data Fields | |
const | LOADED = 1 |
const | SWAPPED = 2 |
const | LOCKED = 4 |
Protected Attributes | |
$_id | |
Definition at line 38 of file Movable.php.
__construct | ( | Zend_Memory_Manager | $memoryManager, |
$id, | |||
$value | |||
) |
Object constructor
Zend_Memory_Manager | $memoryManager | |
integer | $id | |
string | $value |
Definition at line 79 of file Movable.php.
__get | ( | $property | ) |
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.
string | $property |
Zend_Memory_Exception |
Definition at line 135 of file Movable.php.
__set | ( | $property, | |
$value | |||
) |
Set handler
string | $property | |
string | $value |
Zend_Exception |
Definition at line 157 of file Movable.php.
destroy | ( | ) |
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
Definition at line 288 of file Movable.php.
getId | ( | ) |
Get object id
Definition at line 279 of file Movable.php.
& getRef | ( | ) |
Get string value reference
Must be used for value access before PHP v 5.2 or may be used for performance considerations
Implements Zend_Memory_Container_Interface.
Definition at line 179 of file Movable.php.
isLocked | ( | ) |
Return true if object is locked
Implements Zend_Memory_Container_Interface.
Definition at line 120 of file Movable.php.
isSwapped | ( | ) |
lock | ( | ) |
Lock object in memory.
Implements Zend_Memory_Container_Interface.
Definition at line 90 of file Movable.php.
markAsSwapped | ( | ) |
processUpdate | ( | ) |
Process container value update. Must be called only by value object
Definition at line 205 of file Movable.php.
setValue | ( | $value | ) |
Set value (used by memory manager when value is loaded)
Definition at line 233 of file Movable.php.
startTrace | ( | ) |
touch | ( | ) |
Signal, that value is updated by external code.
Should be used together with getRef()
Implements Zend_Memory_Container_Interface.
Definition at line 194 of file Movable.php.
unloadValue | ( | ) |
Clear value (used by memory manager when value is swapped)
Definition at line 243 of file Movable.php.
unlock | ( | ) |
Unlock object
Implements Zend_Memory_Container_Interface.
Definition at line 109 of file Movable.php.
|
protected |
Definition at line 44 of file Movable.php.
const LOADED = 1 |
Value states
Definition at line 61 of file Movable.php.
const LOCKED = 4 |
Definition at line 63 of file Movable.php.
const SWAPPED = 2 |
Definition at line 62 of file Movable.php.