示例#1
0
文件: Menu.php 项目: JeCat/framework
 /**
  * @return org\jecat\framework\mvc\view\IView
  */
 public function view()
 {
     if ($aView = parent::view()) {
         return $aView;
     }
     if ($aParentItem = $this->parentItem()) {
         return $aParentItem->view();
     }
     return null;
 }
示例#2
0
文件: Item.php 项目: JeCat/framework
 public function view()
 {
     if ($aView = parent::view()) {
         return $aView;
     }
     if ($aMenu = $this->parentMenu()) {
         return $aMenu->view();
     }
     return null;
 }