/** * Inserts an item into the collection. * The new option is added on the client-side during callback. * @param integer the location where the item will be inserted. * The current item at the place and the following ones will be moved backward. * @param TListItem the item to be inserted. * @throws TInvalidDataTypeException if the item being inserted is neither a string nor TListItem */ public function insertAt($index, $value) { parent::insertAt($index, $value); if ($this->canUpdateClientSide()) { $this->_hasChanged = true; } }