Zend Framework
3.0
|
String value object. More...
Public Member Functions | |
__construct ($value, Container\Movable $container) | |
Object constructor. | |
count () | |
Countable. | |
offsetExists ($offset) | |
ArrayAccess interface method returns true if string offset exists. | |
offsetGet ($offset) | |
ArrayAccess interface method Get character at $offset position. | |
offsetSet ($offset, $char) | |
ArrayAccess interface method Set character at $offset position. | |
offsetUnset ($offset) | |
ArrayAccess interface method Unset character at $offset position. | |
__toString () | |
To string conversion. | |
& | getRef () |
Get string value reference. | |
startTrace () | |
Start modifications trace. | |
String value object.
It's an OO string wrapper. Used to intercept string updates.
__construct | ( | $value, | |
Container\Movable | $container | ||
) |
Object constructor.
string | $value | |
\Zend\Memory\Container\Movable | $container |
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 number of calls necessary to modification trace
__toString | ( | ) |
To string conversion.
count | ( | ) |
Countable.
& getRef | ( | ) |
Get string value reference.
_Must_ be used for value access before PHP v 5.2 or _may_ be used for performance considerations
offsetExists | ( | $offset | ) |
ArrayAccess interface method returns true if string offset exists.
int | $offset |
offsetGet | ( | $offset | ) |
ArrayAccess interface method Get character at $offset position.
int | $offset |
offsetSet | ( | $offset, | |
$char | |||
) |
ArrayAccess interface method Set character at $offset position.
int | $offset | |
string | $char |
offsetUnset | ( | $offset | ) |
ArrayAccess interface method Unset character at $offset position.
int | $offset |
startTrace | ( | ) |
Start modifications trace.
_Must_ be used for value access before PHP v 5.2 or _may_ be used for performance considerations