PEIP_Array_Access.php

Go to the documentation of this file.
00001 <?php
00002 
00003 /*
00004  * This file is part of the PEIP package.
00005  * (c) 2010 Timo Michna <timomichna/yahoo.de>
00006  * 
00007  * For the full copyright and license information, please view the LICENSE
00008  * file that was distributed with this source code.
00009  */
00010 
00022 class PEIP_Array_Access implements ArrayAccess {
00023 
00024     protected $values = array();
00025     
00026     
00027     
00033     public function offsetExists($offset){
00034         return array_key_exists($name, $this->values);
00035     }   
00036     
00037     
00043     public function offsetGet($offset){
00044         return array_key_exists($name, $this->values) ? $this->values[$offset] : NULL;
00045     }
00046     
00047     
00053     public function offsetUnset($name){
00054         unset($this->values[$offset]);
00055     }   
00056 
00057     
00064     public function offsetSet($offset, $value){
00065         $this->values[$offset] = $value;
00066     }
00067 
00068 }

Generated on Mon Apr 12 11:39:00 2010 for PEIP by  doxygen 1.5.1