Zend Framework  3.0
Public Member Functions | Public Attributes | List of all members
Locked Class Reference

Memory value container. More...

Public Member Functions

 __construct ($value)
 Object constructor.
 
 lock ()
 Lock object in memory.
 
 unlock ()
 Unlock object.
 
 isLocked ()
 Return true if object is locked.
 
getRef ()
 Get string value reference.
 
 touch ()
 Signal, that value is updated by external code.
 
 destroy ()
 Destroy memory container and remove it from memory manager list.
 

Public Attributes

 $value
 

Detailed Description

Memory value container.

Locked (always stored in memory).

Constructor & Destructor Documentation

__construct (   $value)

Object constructor.

Parameters
string$value

Member Function Documentation

destroy ( )

Destroy memory container and remove it from memory manager list.

& getRef ( )

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.

isLocked ( )

Return true if object is locked.

Returns
bool

Implements ContainerInterface.

lock ( )

Lock object in memory.

Implements ContainerInterface.

touch ( )

Signal, that value is updated by external code.

Should be used together with getRef()

Implements ContainerInterface.

unlock ( )

Unlock object.

Implements ContainerInterface.

Member Data Documentation

$value