Пример #1
0
 public function componentAddDashboardView()
 {
     $request = framework\Context::getRequest();
     $this->dashboard = entities\Dashboard::getB2DBTable()->selectById($request['dashboard_id']);
     $this->column = $request['column'];
     $this->views = entities\DashboardView::getAvailableViews($this->dashboard->getType());
     $this->savedsearches = tables\SavedSearches::getTable()->getAllSavedSearchesByUserIDAndPossiblyProjectID(framework\Context::getUser()->getID(), $this->dashboard->getProject() instanceof entities\Project ? $this->dashboard->getProject()->getID() : 0);
 }