API Documentation

Zend/Memory/Value.php

Show: inherited
Table of Contents

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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Memory  
Version
$Id: Value.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Memory_Value

Package: Zend\Memory

String value object

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

Implements
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
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.15.1.