Beispiel #1
0
 /**
  * Load Pane items provided by all enabled modules
  *
  * @return  $this
  */
 public function load()
 {
     $navigation = new Navigation();
     $navigation->load('dashboard-pane');
     $panes = array();
     foreach ($navigation as $dashboardPane) {
         /** @var DashboardPane $dashboardPane */
         $pane = new Pane($dashboardPane->getLabel());
         foreach ($dashboardPane->getDashlets() as $title => $url) {
             $pane->addDashlet($title, $url);
         }
         $panes[] = $pane;
     }
     $this->mergePanes($panes);
     return $this;
 }