public function getMilestoneContentPresenter(PFUser $user, Planning_ArtifactMilestone $milestone) { $redirect_paremeter = new Planning_MilestoneRedirectParameter(); $backlog_strategy = $this->strategy_factory->getBacklogStrategy($milestone); $redirect_to_self = $redirect_paremeter->getPlanningRedirectToSelf($milestone, AgileDashboard_Milestone_Pane_Content_ContentPaneInfo::IDENTIFIER); return $backlog_strategy->getPresenter($user, $milestone, $this->collection_factory->getTodoCollection($user, $milestone, $backlog_strategy, $redirect_to_self), $this->collection_factory->getDoneCollection($user, $milestone, $backlog_strategy, $redirect_to_self), $this->collection_factory->getInconsistentCollection($user, $milestone, $backlog_strategy, $redirect_to_self), $redirect_to_self); }
public function getMilestoneContentPresenter(PFUser $user, Planning_Milestone $milestone) { $redirect_paremeter = new Planning_MilestoneRedirectParameter(); $backlog_strategy = $this->strategy_factory->getSelfBacklogStrategy($milestone); $item_trackers = $backlog_strategy->getItemTrackers(); $redirect_to_self = $redirect_paremeter->getPlanningRedirectToSelf($milestone, AgileDashboard_Milestone_Pane_TopPlanning_TopPlanningV2PaneInfo::IDENTIFIER); return new AgileDashboard_Milestone_Pane_Content_TopContentPresenter($this->collection_factory->getUnassignedOpenCollection($user, $milestone, $backlog_strategy, $redirect_to_self), $backlog_strategy->getBacklogItemName(), $this->getAddItemsToBacklogUrls($user, $item_trackers, $redirect_to_self), $item_trackers, $this->canUserPrioritizeBacklog($user, $milestone->getGroupId()), $this->getTrackersWithoutInitialEffortSemanticDefined($item_trackers)); }
public function getMilestonePlanningPresenter(PFUser $user, Planning_ArtifactMilestone $milestone, Tracker $submilestone_tracker) { $redirect_paremeter = new Planning_MilestoneRedirectParameter(); $backlog_strategy = $this->strategy_factory->getBacklogStrategy($milestone); $redirect_to_self = $redirect_paremeter->getPlanningRedirectToSelf($milestone, AgileDashboard_Milestone_Pane_Planning_PlanningPaneInfo::IDENTIFIER); $backlog_collection = $this->collection_factory->getUnplannedOpenCollection($user, $milestone, $backlog_strategy, $redirect_to_self); $submilestone_collection = $this->getSubmilestoneCollection($user, $milestone, $submilestone_tracker, $redirect_to_self); return new AgileDashboard_Milestone_Pane_Planning_PlanningPresenter($backlog_collection, $submilestone_collection, $milestone, $backlog_collection->getParentItemName(), $submilestone_collection->getName(), $submilestone_collection->getSubmitNewUrlLinkedToMilestone($milestone), $submilestone_collection->canCreateNew($user), $this->canPlan($user, $milestone), $redirect_to_self, $backlog_strategy->getTrackersWithoutInitialEffort()); }
private function getMilestonePresenter() { $redirect_parameter = new Planning_MilestoneRedirectParameter(); return new AgileDashboard_MilestonePresenter($this->milestone, $this->getCurrentUser(), $this->request, $this->pane_factory->getPanePresenterData($this->milestone), $redirect_parameter->getPlanningRedirectToNew($this->milestone, $this->pane_factory->getDefaultPaneIdentifier())); }