summaryrefslogtreecommitdiff
path: root/framework/Collections
diff options
context:
space:
mode:
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;
}
/**