Memory/Value.php

Show: PublicProtectedPrivateinherited
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-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Memory  
Version
$Id$  

\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-2014 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

>VPropertyprivate\Zend_Memory_Container_Interface $_container
Container
>VPropertyprivateboolean $_trace
Boolean flag which signals to trace value modifications
Details
Type
boolean
>VPropertyprivatestring $_value
Value
Details
Type
string

Methods

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

Object constructor

Parameters
NameTypeDescription
$valuestring
$container\Zend_Memory_Container_Movable
methodpublic__toString() : string

To string conversion

Returns
TypeDescription
string
methodpublicoffsetExists(integer $offset) : boolean

ArrayAccess interface method returns true if string offset exists

Parameters
NameTypeDescription
$offsetinteger
Returns
TypeDescription
boolean
methodpublicoffsetGet(integer $offset) : string

ArrayAccess interface method Get character at $offset position

Parameters
NameTypeDescription
$offsetinteger
Returns
TypeDescription
string
methodpublicoffsetSet(integer $offset, string $char) : void

ArrayAccess interface method Set character at $offset position

Parameters
NameTypeDescription
$offsetinteger
$charstring
methodpublicoffsetUnset(integer $offset) : void

ArrayAccess interface method Unset character at $offset position

Parameters
NameTypeDescription
$offsetinteger
Documentation was generated by phpDocumentor 2.2.0 .