Beispiel #1
0
 public function removeAt($index)
 {
     $item = parent::removeAt($index);
     if ($item instanceof TControl) {
         $this->_o->removedControl($item);
     }
     return $item;
 }
Beispiel #2
0
 /**
  * Removes an item at the specified position.
  * This overrides the parent implementation by performing additional
  * cleanup work when removing a TCookie object.
  * @param integer the index of the item to be removed.
  * @return mixed the removed item.
  */
 public function removeAt($index)
 {
     $item = parent::removeAt($index);
     if ($this->_o instanceof THttpResponse) {
         $this->_o->removeCookie($item);
     }
     return $item;
 }
 /**
  * Removes an item at the specified position.
  * This overrides the parent implementation by performing additional
  * cleanup work when removing a TXmlElement object.
  * @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 TXmlElement) {
         $item->setParent(null);
     }
     return $item;
 }
Beispiel #4
0
 /**
  * Removes an item at the specified position.
  * @param integer the index of the item to be removed.
  * @return mixed the removed item.
  */
 public function removeAt($index)
 {
     $step = parent::removeAt($index);
     $this->_wizard->getMultiView()->getViews()->remove($step);
     $this->_wizard->removedWizardStep($step);
     return $step;
 }
Beispiel #5
0
 public function testCanNotRemoveAtWhenReadOnly()
 {
     $list = new TList(array(1, 2, 3), true);
     try {
         $list->removeAt(2);
         self::fail('An expected TInvalidOperationException was not raised');
     } catch (TInvalidOperationException $e) {
     }
     $list = new TList(array(1, 2, 3), true);
     try {
         $list->removeAt(10);
         self::fail('An expected TInvalidOperationException was not raised');
     } catch (TInvalidOperationException $e) {
     }
 }