Exemplo n.º 1
0
 public function removeWidget(IViewWidget $aWidget)
 {
     if (!$aWidget->isRadio()) {
         throw new Exception("调用" . __CLASS__ . "类的" . __METHOD__ . "方法时使用了非法的aWidget参数(得到的aWidget为:%s)", array($aWidget));
     }
     if (($nKey = array_search($aWidget, $this->arrWidgets, true)) !== false) {
         unset($this->arrWidgets[$nKey]);
     }
 }
Exemplo n.º 2
0
 public function removeWidget(IViewWidget $aWidget)
 {
     $this->widgets()->remove($aWidget->id());
     $this->messageQueue()->removeChildHolder($aWidget);
     $aWidget->setView(null);
 }