API Documentation

Memory/Value.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Memory
version
$Id: Value.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Memory_Value

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Memory_Value

Implements
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Memory
todo
also implement Countable for PHP 5.1 but not yet to stay 5.0 compatible
Properties
$_value
$_container
$_trace
Methods
__construct
offsetExists
offsetGet
offsetSet
offsetUnset
__toString
getRef
startTrace

Description

String value object

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

Properties

$_container

Zend_Memory_Container_Interface $_container = ''

Container

Details

$_container
Zend_Memory_Container_Interface
visibility
private
default
final
false
static
false

$_trace

boolean $_trace = ''

Boolean flag which signals to trace value modifications

Details

$_trace
boolean
visibility
private
default
final
false
static
false

$_value

string $_value = ''

Value

Details

$_value
string
visibility
private
default
final
false
static
false

Methods

__construct

__construct( string $value, Zend_Memory_Container_Movable $container ) :

Object constructor

Arguments
$value
string
$container
Zend_Memory_Container_Movable
Details
visibility
public
final
false
static
false

__toString

__toString( ) : string

To string conversion

Output
string
Details
visibility
public
final
false
static
false

getRef

getRef( ) : string

Get string value reference

Must be used for value access before PHP v 5.2 or may be used for performance considerations

Output
string
Details
visibility
public
final
false
static
false
internal

offsetExists

offsetExists( integer $offset ) : boolean

ArrayAccess interface method returns true if string offset exists

Arguments
$offset
integer
Output
boolean
Details
visibility
public
final
false
static
false

offsetGet

offsetGet( integer $offset ) : string

ArrayAccess interface method Get character at $offset position

Arguments
$offset
integer
Output
string
Details
visibility
public
final
false
static
false

offsetSet

offsetSet( integer $offset, string $char ) :

ArrayAccess interface method Set character at $offset position

Arguments
$offset
integer
$char
string
Details
visibility
public
final
false
static
false

offsetUnset

offsetUnset( integer $offset ) :

ArrayAccess interface method Unset character at $offset position

Arguments
$offset
integer
Details
visibility
public
final
false
static
false

startTrace

startTrace( ) :

Start modifications trace

Must be used for value access before PHP v 5.2 or may be used for performance considerations

Details
visibility
public
final
false
static
false
internal
Documentation was generated by DocBlox.