From 311aba8b2fca24b9a372d8a9035a4781dad0760d Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 15 Feb 2006 23:41:32 +0000 Subject: Fixed ticket #53 --- framework/Collections/TList.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'framework/Collections') diff --git a/framework/Collections/TList.php b/framework/Collections/TList.php index 132f2be6..1090ce77 100644 --- a/framework/Collections/TList.php +++ b/framework/Collections/TList.php @@ -99,10 +99,12 @@ class TList extends TComponent implements IteratorAggregate,ArrayAccess /** * Appends an item at the end of the list. * @param mixed new item + * @return integer the zero-based index at which the item is added */ public function add($item) { $this->insertAt($this->_c,$item); + return $this->_c; } /** -- cgit v1.2.3