Пример #1
0
 protected function buildContentView(Planning_ViewBuilder $view_builder, Planning $planning, Project $project = null)
 {
     $already_planned_artifact_ids = $this->getAlreadyPlannedArtifactsIds();
     $cross_search_query = $this->getCrossSearchQuery();
     $backlog_tracker_ids = $this->hierarchy_factory->getHierarchy(array($planning->getBacklogTrackerId()))->flatten();
     $backlog_actions_presenter = new Planning_BacklogActionsPresenter($planning->getBacklogTracker(), $this->milestone, $this->getPlanningRedirectToSelf());
     $view = $view_builder->build($this->getCurrentUser(), $project, $cross_search_query, $already_planned_artifact_ids, $backlog_tracker_ids, $planning, $backlog_actions_presenter, $this->getPlanningRedirectToSelf());
     return $view;
 }
Пример #2
0
 private function buildContentView(Planning_ViewBuilder $view_builder, Planning $planning, Project $project = null)
 {
     $already_planned_artifact_ids = $this->getAlreadyPlannedArtifactsIds();
     $cross_search_query = $this->getCrossSearchQuery();
     $view_builder->setHierarchyFactory(Tracker_HierarchyFactory::instance());
     $view = $view_builder->build($this->getCurrentUser(), $project, $cross_search_query, $already_planned_artifact_ids, $planning->getBacklogTrackerId(), $planning, $this->getPlanningRedirectToSelf());
     return $view;
 }