summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/Collections/TList.php6
-rw-r--r--framework/TComponent.php4
-rw-r--r--framework/Web/UI/TTemplateControl.php2
3 files changed, 6 insertions, 6 deletions
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,
* <code>
@@ -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);
}
}
diff --git a/framework/TComponent.php b/framework/TComponent.php
index c1b483c0..1a4dfe6e 100644
--- a/framework/TComponent.php
+++ b/framework/TComponent.php
@@ -300,12 +300,12 @@ class TComponent
* getting and setting properties, e.g.,
* <code>
* $component->Click[]=array($object,'buttonClicked');
- * $component->Click->addAt(0,array($object,'buttonClicked'));
+ * $component->Click->insert(0,array($object,'buttonClicked'));
* </code>
* which are equivalent to the following
* <code>
* $component->getEventHandlers('Click')->add(array($object,'buttonClicked'));
- * $component->getEventHandlers('Click')->addAt(0,array($object,'buttonClicked'));
+ * $component->getEventHandlers('Click')->insert(0,array($object,'buttonClicked'));
* </code>
*
* @param string the event name
diff --git a/framework/Web/UI/TTemplateControl.php b/framework/Web/UI/TTemplateControl.php
index e1a2d248..dc4bc567 100644
--- a/framework/Web/UI/TTemplateControl.php
+++ b/framework/Web/UI/TTemplateControl.php
@@ -173,7 +173,7 @@ class TTemplateControl extends TControl implements INamingContainer
if(isset($this->_placeholders[$id]))
{
list($parent,$loc)=$this->_placeholders[$id];
- $parent->getControls()->addAt($loc,$content);
+ $parent->getControls()->insert($loc,$content);
}
}