Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Memory value container
Movable (may be swapped with specified backend and unloaded).
LOADED = '1'
Value states
Details SWAPPED = '2'
Details LOCKED = '4'
Detailsinteger $_id = ''Internal object Id
DetailsZend_Memory_Manager $_memManager = ''Memory manager reference
Detailsinteger $_state = ''Value state (LOADED/SWAPPED/LOCKED)
DetailsZend_Memory_Value $_value = ''Value object
Details__construct(
Zend_Memory_Manager $memoryManager, integer $id, string $value
)
:
Object constructor
Details__get(
string $property
)
:
stringGet 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.
Details__set(
string $property, string $value
)
:
Set handler
Detailsdestroy(
)
:
Destroy memory container and remove it from memory manager list
DetailsgetId(
)
:
integerGet object id
DetailsgetRef(
)
:
stringGet string value reference
Must be used for value access before PHP v 5.2 or may be used for performance considerations
DetailsisLocked(
)
:
booleanReturn true if object is locked
DetailsisSwapped(
)
:
booleanCheck if object is marked as swapped
Detailslock(
)
:
Lock object in memory.
DetailsmarkAsSwapped(
)
:
Mark, that object is swapped
DetailsprocessUpdate(
)
:
Process container value update.
Must be called only by value object
DetailssetValue(
$value
)
:
Set value (used by memory manager when value is loaded)
DetailsstartTrace(
)
:
Start modifications trace
Detailstouch(
)
:
Signal, that value is updated by external code.
Should be used together with getRef()
DetailsunloadValue(
)
:
Clear value (used by memory manager when value is swapped)
Detailsunlock(
)
:
Unlock object
Details