From 73512adcb5ed2dca47a03c5e42ec9ebf0a1d9a94 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 17 Dec 2005 03:40:49 +0000 Subject: Changed TList::addAt to TList::insert --- framework/Collections/TList.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'framework/Collections') diff --git a/framework/Collections/TList.php b/framework/Collections/TList.php index d57e0f62..b9fbd589 100644 --- a/framework/Collections/TList.php +++ b/framework/Collections/TList.php @@ -16,7 +16,7 @@ * TList implements an integer-indexed collection class. * * You can access, append, insert, remove an item by using - * {@link itemAt}, {@link add}, {@link addAt}, {@link remove}, and {@link removeAt}. + * {@link itemAt}, {@link add}, {@link insert}, {@link remove}, and {@link removeAt}. * To get the number of the items in the list, use {@link getCount}. * TList can also be used like a regular array as follows, * @@ -123,7 +123,7 @@ class TList extends TComponent implements IteratorAggregate,ArrayAccess * @throws TInvalidDataValueException If the index specified exceeds the bound * @throws TInvalidOperationException If the item is not allowed to be added */ - public function addAt($index,$item) + public function insert($index,$item) { if($this->canAddItem($item)) { @@ -307,7 +307,7 @@ class TList extends TComponent implements IteratorAggregate,ArrayAccess else { $this->removeAt($offset); - $this->addAt($offset,$item); + $this->insert($offset,$item); } } -- cgit v1.2.3