/** * Removes an item at the specified position. * This overrides the parent implementation by performing additional * cleanup work when removing a child control. * @param integer the index of the item to be removed. * @return mixed the removed item. */ public function removeAt($index) { $item = parent::removeAt($index); if ($item instanceof TControl) { $this->_o->removedControl($item); } return $item; }