summaryrefslogtreecommitdiff
path: root/framework/Collections
diff options
context:
space:
mode:
authorxue <>2006-02-15 23:41:32 +0000
committerxue <>2006-02-15 23:41:32 +0000
commit311aba8b2fca24b9a372d8a9035a4781dad0760d (patch)
treed80087d50b3164a525c6849004b452050563a187 /framework/Collections
parentcd39d7df00f9290b72b2f69df04649e7a4b55c67 (diff)
Fixed ticket #53
Diffstat (limited to 'framework/Collections')
-rw-r--r--framework/Collections/TList.php2
1 files changed, 2 insertions, 0 deletions
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;
}
/**