Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
Zend_Memory_AccessController Class Reference
Inheritance diagram for Zend_Memory_AccessController:
Zend_Memory_Container_Interface

Public Member Functions

 __construct (Zend_Memory_Container_Movable $memContainer)
 
 __destruct ()
 
getRef ()
 
 touch ()
 
 lock ()
 
 unlock ()
 
 isLocked ()
 
 __get ($property)
 
 __set ($property, $value)
 

Detailed Description

Definition at line 44 of file AccessController.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( Zend_Memory_Container_Movable  $memContainer)

Object constructor

Parameters
Zend_Memory_Container_Movable$memoryManager

Definition at line 59 of file AccessController.php.

60  {
61  $this->_memContainer = $memContainer;
62  }

◆ __destruct()

__destruct ( )

Object destructor

Definition at line 67 of file AccessController.php.

68  {
69  $this->_memContainer->destroy();
70  }

Member Function Documentation

◆ __get()

__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.

Parameters
string$property
Returns
string
Exceptions
Zend_Memory_Exception

Definition at line 133 of file AccessController.php.

134  {
135  return $this->_memContainer->$property;
136  }

◆ __set()

__set (   $property,
  $value 
)

Set handler

Parameters
string$property
string$value
Exceptions
Zend_Exception

Definition at line 145 of file AccessController.php.

146  {
147  $this->_memContainer->$property = $value;
148  }
$value
Definition: gender.phtml:16

◆ 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 81 of file AccessController.php.

82  {
83  return $this->_memContainer->getRef();
84  }

◆ isLocked()

isLocked ( )

Return true if object is locked

Returns
boolean

Implements Zend_Memory_Container_Interface.

Definition at line 118 of file AccessController.php.

119  {
120  return $this->_memContainer->isLocked();
121  }

◆ lock()

lock ( )

Lock object in memory.

Implements Zend_Memory_Container_Interface.

Definition at line 99 of file AccessController.php.

100  {
101  $this->_memContainer->lock();
102  }

◆ touch()

touch ( )

Signal, that value is updated by external code.

Should be used together with getRef()

Implements Zend_Memory_Container_Interface.

Definition at line 91 of file AccessController.php.

92  {
93  $this->_memContainer->touch();
94  }

◆ unlock()

unlock ( )

Unlock object

Implements Zend_Memory_Container_Interface.

Definition at line 108 of file AccessController.php.

109  {
110  $this->_memContainer->unlock();
111  }

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