public function componentDashboardConfig()
 {
     $this->views = TBGDashboard::getAvailableUserViews();
     $this->dashboardViews = TBGDashboard::getUserViews();
 }
Пример #2
0
 /**
  * Developer dashboard
  *  
  * @param TBGRequest $request
  */
 public function runDashboard(TBGRequest $request)
 {
     $this->forward403unless(!TBGContext::getUser()->isThisGuest() && TBGContext::getUser()->hasPageAccess('dashboard'));
     if (TBGSettings::isSingleProjectTracker()) {
         if (($projects = TBGProject::getAll()) && ($project = array_shift($projects))) {
             TBGContext::setCurrentProject($project);
         }
     }
     $this->dashboardViews = TBGDashboard::getUserViews();
 }