svn: /pear2/sandbox/SimpleChannelFrontend/trunk/src/SimpleChannelFrontend/ Package.php
| From: | Brett Bieber | Date: | Thu, 19 Nov 2009 21:09:21 +0000 |
| Subject: | svn: /pear2/sandbox/SimpleChannelFrontend/trunk/src/SimpleChannelFrontend/ Package.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9042@lists.php.net to get a copy of this message | ||
saltybeagle Thu, 19 Nov 2009 21:09:21 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=291032
Log:
Use \IteratorAggregate
Changed paths:
U pear2/sandbox/SimpleChannelFrontend/trunk/src/SimpleChannelFrontend/Package.php
Modified: pear2/sandbox/SimpleChannelFrontend/trunk/src/SimpleChannelFrontend/Package.php
===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/src/SimpleChannelFrontend/Package.php 2009-11-19
21:08:39 UTC (rev 291031)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/src/SimpleChannelFrontend/Package.php 2009-11-19
21:09:21 UTC (rev 291032)
@@ -1,6 +1,6 @@
<?php
namespace pear2\SimpleChannelFrontend;
-class Package implements \ArrayAccess, \Iterator
+class Package implements \IteratorAggregate
{
public $_package;
@@ -19,48 +19,8 @@
return call_user_func_array(array($this->_package, $method), $args);
}
- function offsetExists($offset)
+ function getIterator()
{
- return $this->_package->offsetExists($offset);
+ return $this->_package;
}
-
- function offsetGet($offset)
- {
- return $this->_package->offsetGet($offset);
- }
-
- function offsetSet($offset, $val)
- {
- return $this->_package->offsetSet($offset, $val);
- }
-
- function offsetUnset($offset)
- {
- return $this->_package->offsetUnset($offset);
- }
-
- function current()
- {
- return $this->_package->current();
- }
-
- function next()
- {
- return $this->_package->next();
- }
-
- function key()
- {
- return $this->_package->key();
- }
-
- function valid()
- {
- return $this->_package->valid();
- }
-
- function rewind()
- {
- return $this->_package->rewind();
- }
}