コード例 #1
0
ファイル: tabs.php プロジェクト: irovast/eyedock
 /**
  * Load a panel view
  * @access  private
  * @param object $layout Layout (panel) name
  * @return panel JView object
  */
 private function loadPanel($panel, $state)
 {
     $view = new WFView(array('name' => $panel, 'layout' => $panel));
     // add tab paths
     foreach ($this->_paths as $path) {
         $view->addTemplatePath($path);
     }
     // assign panel state to view
     $view->assign('state', (int) $state);
     return $view;
 }