Definition at line 35 of file Value.php.
◆ __construct()
Object constructor
- Parameters
-
Object is marked as just modified by memory manager So we don't need to trace followed object modifications and object is processed (and marked as traced) when another memory object is modified.
It reduces overall numberr of calls necessary to modification trace
Definition at line 64 of file Value.php.
66 $this->_container = $container;
68 $this->_value = (string)
$value;
78 $this->_trace =
false;
◆ __toString()
To string conversion
- Returns
- string
Definition at line 145 of file Value.php.
147 return $this->_value;
◆ getRef()
Get string value reference
Must be used for value access before PHP v 5.2 or may be used for performance considerations
Definition at line 160 of file Value.php.
162 return $this->_value;
◆ offsetExists()
ArrayAccess interface method returns true if string offset exists
- Parameters
-
- Returns
- boolean
Definition at line 89 of file Value.php.
91 return $offset >= 0 && $offset < strlen($this->_value);
◆ offsetGet()
ArrayAccess interface method Get character at $offset position
- Parameters
-
- Returns
- string
Definition at line 101 of file Value.php.
103 return $this->_value[$offset];
◆ offsetSet()
offsetSet |
( |
|
$offset, |
|
|
|
$char |
|
) |
| |
ArrayAccess interface method Set character at $offset position
- Parameters
-
integer | $offset | |
string | $char | |
Definition at line 113 of file Value.php.
115 $this->_value[$offset] = $char;
118 $this->_trace =
false;
119 $this->_container->processUpdate();
◆ offsetUnset()
ArrayAccess interface method Unset character at $offset position
- Parameters
-
Definition at line 129 of file Value.php.
131 unset($this->_value[$offset]);
134 $this->_trace =
false;
135 $this->_container->processUpdate();
◆ startTrace()
Start modifications trace
Must be used for value access before PHP v 5.2 or may be used for performance considerations
Definition at line 173 of file Value.php.
175 $this->_trace =
true;
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Memory/Value.php