Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Data Fields
Zend_Memory_Container_Locked Class Reference
Inheritance diagram for Zend_Memory_Container_Locked:
Zend_Memory_Container Zend_Memory_Container_Interface

Public Member Functions

 __construct ($value)
 
 lock ()
 
 unlock ()
 
 isLocked ()
 
getRef ()
 
 touch ()
 
 destroy ()
 

Data Fields

 $value
 

Detailed Description

Definition at line 35 of file Locked.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $value)

Object constructor

Parameters
Zend_Memory_Manager$memoryManager
integer$id
string$value

Definition at line 52 of file Locked.php.

53  {
54  $this->value = $value;
55  }
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition: block.php:9

Member Function Documentation

◆ destroy()

destroy ( )

Destroy memory container and remove it from memory manager list

Definition at line 109 of file Locked.php.

110  {
111  /* Do nothing */
112  }

◆ getRef()

& 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 Zend_Memory_Container_Interface.

Definition at line 91 of file Locked.php.

92  {
93  return $this->value;
94  }

◆ isLocked()

isLocked ( )

Return true if object is locked

Returns
boolean

Implements Zend_Memory_Container_Interface.

Definition at line 78 of file Locked.php.

79  {
80  return true;
81  }

◆ lock()

lock ( )

Lock object in memory.

Implements Zend_Memory_Container_Interface.

Definition at line 60 of file Locked.php.

61  {
62  /* Do nothing */
63  }

◆ touch()

touch ( )

Signal, that value is updated by external code.

Should be used together with getRef()

Implements Zend_Memory_Container_Interface.

Definition at line 101 of file Locked.php.

102  {
103  /* Do nothing */
104  }

◆ unlock()

unlock ( )

Unlock object

Implements Zend_Memory_Container_Interface.

Definition at line 68 of file Locked.php.

69  {
70  /* Do nothing */
71  }

Field Documentation

◆ $value

Definition at line 42 of file Locked.php.


The documentation for this class was generated from the following file: