From 9be85680cfb74fbb5a566822aeb7d38f7c2dc8ca Mon Sep 17 00:00:00 2001 From: uacaman <> Date: Tue, 10 May 2011 20:02:10 +0000 Subject: Issue 264 : Changed Collection to use PHP native ArrayIterator --- framework/Collections/TMap.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework/Collections/TMap.php') diff --git a/framework/Collections/TMap.php b/framework/Collections/TMap.php index 2630172c..ce55c3aa 100644 --- a/framework/Collections/TMap.php +++ b/framework/Collections/TMap.php @@ -81,7 +81,7 @@ class TMap extends TComponent implements IteratorAggregate,ArrayAccess,Countable */ public function getIterator() { - return new TMapIterator($this->_d); + return new ArrayIterator( $this->_d ); } /** @@ -273,6 +273,7 @@ class TMap extends TComponent implements IteratorAggregate,ArrayAccess,Countable * TMapIterator is used by TMap. It allows TMap to return a new iterator * for traversing the items in the map. * + * @deprecated Issue 264 : ArrayIterator should be used instead * @author Qiang Xue * @version $Id$ * @package System.Collections -- cgit v1.2.3