API Documentation

Memory/Value.php

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.

category
Zend  
copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Memory  
version
$Id: Value.php 23775 2011-03-01 17:25:24Z ralph $  

\Zend_Memory_Value

String value object

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

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

Properties

Propertyprivate\Zend_Memory_Container_Interface  $_container= ''

Container

Propertyprivateboolean  $_trace= ''

Boolean flag which signals to trace value modifications

Details
Type
boolean
Propertyprivatestring  $_value= ''

Value

Details
Type
string

Methods

methodpublic__construct( string $value, \Zend_Memory_Container_Movable $container ) : void

Object constructor

Parameters
Name Type Description
$value string
$container \Zend_Memory_Container_Movable
methodpublic__toString( ) : string

To string conversion

Returns
Type Description
string
methodpublicoffsetExists( integer $offset ) : boolean

ArrayAccess interface method returns true if string offset exists

Parameters
Name Type Description
$offset integer
Returns
Type Description
boolean
methodpublicoffsetGet( integer $offset ) : string

ArrayAccess interface method Get character at $offset position

Parameters
Name Type Description
$offset integer
Returns
Type Description
string
methodpublicoffsetSet( integer $offset, string $char ) : void

ArrayAccess interface method Set character at $offset position

Parameters
Name Type Description
$offset integer
$char string
methodpublicoffsetUnset( integer $offset ) : void

ArrayAccess interface method Unset character at $offset position

Parameters
Name Type Description
$offset integer
Documentation was generated by DocBlox 0.13.3.