diff options
author | uacaman <> | 2011-05-10 20:02:10 +0000 |
---|---|---|
committer | uacaman <> | 2011-05-10 20:02:10 +0000 |
commit | 9be85680cfb74fbb5a566822aeb7d38f7c2dc8ca (patch) | |
tree | 29553c08463775a542476e09e600603f1d8bc076 /framework/Collections/TStack.php | |
parent | 7c29913f89d0f16f63c4e457e1a232df6e51e905 (diff) |
Issue 264 : Changed Collection to use PHP native ArrayIterator
Diffstat (limited to 'framework/Collections/TStack.php')
-rw-r--r-- | framework/Collections/TStack.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Collections/TStack.php b/framework/Collections/TStack.php index 16bd6fca..9fd045e4 100644 --- a/framework/Collections/TStack.php +++ b/framework/Collections/TStack.php @@ -151,7 +151,7 @@ class TStack extends TComponent implements IteratorAggregate,Countable */
public function getIterator()
{
- return new TStackIterator($this->_d);
+ return new ArrayIterator( $this->_d );
}
/**
@@ -181,6 +181,7 @@ class TStack extends TComponent implements IteratorAggregate,Countable * TStackIterator is used by TStack. It allows TStack to return a new iterator
* for traversing the items in the list.
*
+ * @deprecated Issue 264 : ArrayIterator should be used instead
* @author Qiang Xue <qiang.xue@gmail.com>
* @version $Id$
* @package System.Collections
|