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/TPriorityList.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'framework/Collections/TPriorityList.php') diff --git a/framework/Collections/TPriorityList.php b/framework/Collections/TPriorityList.php index 41d6a03f..c1c635b5 100644 --- a/framework/Collections/TPriorityList.php +++ b/framework/Collections/TPriorityList.php @@ -169,7 +169,7 @@ class TPriorityList extends TList */ public function getIterator() { - return new TPriorityListIterator($this->flattenPriorities()); + return new ArrayIterator( $this->flattenPriorities() ); } /** @@ -708,7 +708,8 @@ class TPriorityList extends TList * * TPriorityListIterator is used by TPriorityList. It allows TPriorityList to return a new iterator * for traversing the items in the priority list. - * + * + * @deprecated Issue 264 : ArrayIterator should be used instead * @author Brad Anderson * @version $Id: TPriorityList.php 2541 2010-10-03 15:05:13Z javalizard $ * @package System.Collections -- cgit v1.2.3