コード例 #1
0
ファイル: WebpageFrame.php プロジェクト: JeCat/framework
 public function addFrameView(IView $aFrameView)
 {
     if ($aOrController = $aFrameView->controller()) {
         $aOrController->removeView($aFrameView);
     }
     $aFrameView->setController($this);
     $this->viewContainer()->add($aFrameView);
     $this->setViewContainer($aFrameView);
 }
コード例 #2
0
ファイル: Controller.php プロジェクト: JeCat/framework
 public function addView(IView $aView, $sName = null)
 {
     if ($aOrController = $aView->controller()) {
         $aOrController->removeView($aView);
     }
     $aView->setController($this);
     return $this->mainView()->add($aView, $sName, true);
 }