## Zend_Memory_Value

Description

Implements interfaces:

- ArrayAccess (internal interface)

String value object

It's an OO string wrapper. Used to intercept string updates.

- todo: also implement Countable for PHP 5.1 but not yet to stay 5.0 compatible
- license: New BSD License
- copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Memory/Value.php (line 32)

Class Constant Summary
MODIFIED = 1
STORED = 0
Method Summary
Zend_Memory_Value __construct ([string $value = ''], Zend_Memory_Container_Interface $container)
string &getRef ()
void markStored ()
boolean offsetExists (integer $offset)
string offsetGet (integer $offset)
void offsetSet (integer $offset, string $char)
void offsetUnset (integer $offset)
void touch ()
string __toString ()
Methods
Constructor __construct (line 65)

Object constructor

- access: public

Zend_Memory_Value __construct ([string $value = ''], Zend_Memory_Container_Interface $container)

- string $value
- Zend_Memory_Container_Interface $container

getRef (line 150)

Get string value reference

_Must_ be used for value access before PHP v 5.2 or _may_ be used for performance considerations

- access: public

string &getRef ()
markStored (line 174)

Mark value as stored.

This turns on value update catching

- access: public

void markStored ()
offsetExists (line 80)

ArrayAccess interface method returns true if string offset exists

- access: public

boolean offsetExists (integer $offset)

- integer $offset

Implementation of:

ArrayAccess::offsetExists

offsetGet (line 92)

ArrayAccess interface method Get character at $offset position

- access: public

string offsetGet (integer $offset)

- integer $offset

Implementation of:

ArrayAccess::offsetGet

offsetSet (line 104)

ArrayAccess interface method Set character at $offset position

- access: public

void offsetSet (integer $offset, string $char)

- integer $offset
- string $char

Implementation of:

ArrayAccess::offsetSet

offsetUnset (line 120)

ArrayAccess interface method Unset character at $offset position

- access: public

void offsetUnset (integer $offset)

- integer $offset

Implementation of:

ArrayAccess::offsetUnset

touch (line 160)

Signal, that value is updated by external code.

Should be used together with getRef()

- access: public

void touch ()
__toString (line 136)

To string conversion

- access: public

string __toString ()
Class Constants
MODIFIED = 1 (line 49)
STORED = 0 (line 48)

Value states

Documentation generated on Wed, 21 Feb 2007 12:03:12 -0800 by phpDocumentor 1.3.1