Example #1
0
 /**
  * @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;
 }
Example #2
0
 public function view()
 {
     if ($aView = parent::view()) {
         return $aView;
     }
     if ($aMenu = $this->parentMenu()) {
         return $aMenu->view();
     }
     return null;
 }