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());
 }
Ejemplo n.º 4
0
 private function loadTopBacklog(PFUser $user, Planning_Milestone $milestone)
 {
     if (!isset($this->backlog_item_ids[(int) $milestone->getArtifactId()])) {
         $this->backlog_item_ids[(int) $milestone->getArtifactId()] = array();
         $strategy_unassigned = $this->strategy_factory->getSelfBacklogStrategy($milestone);
         $backlog_artifacts = $this->backlog_item_collection_factory->getUnassignedOpenCollection($user, $milestone, $strategy_unassigned, false);
         $this->storeTopBacklogArtifacts((int) $milestone->getArtifactId(), $backlog_artifacts);
     }
 }
 private function getMatchingIdsForTopBacklog(Planning_VirtualTopMilestone $milestone, Tracker $backlog_tracker, PFUser $user)
 {
     $strategy_unassigned = $this->strategy_factory->getSelfBacklogStrategy($milestone);
     $backlog_items = $this->backlog_item_collection_factory->getUnassignedOpenCollection($user, $milestone, $strategy_unassigned, false);
     foreach ($backlog_items as $backlog_item) {
         if ($backlog_item->getArtifact()->getTrackerId() == $backlog_tracker->getId()) {
             $this->backlog_ids[$backlog_item->getArtifact()->getId()] = true;
         }
     }
     return $this->backlog_ids;
 }
 private function getBacklogTrackers(Planning_Milestone $milestone)
 {
     return $this->backlog_strategy_factory->getBacklogStrategy($milestone)->getDescendantTrackers();
 }
Ejemplo n.º 7
0
 private function getMilestoneContentItems()
 {
     $backlog_item_collection_factory = new AgileDashboard_Milestone_Backlog_BacklogItemCollectionFactory(new AgileDashboard_BacklogItemDao(), $this->artifact_factory, $this->tracker_form_element_factory, $this->milestone_factory, $this->planning_factory, new AgileDashboard_Milestone_Backlog_BacklogItemBuilder());
     $strategy_factory = new AgileDashboard_Milestone_Backlog_BacklogStrategyFactory(new AgileDashboard_BacklogItemDao(), $this->artifact_factory, $this->planning_factory);
     return $backlog_item_collection_factory->getAllCollection($this->user_manager->getCurrentUser(), $this->milestone, $strategy_factory->getSelfBacklogStrategy($this->milestone), '');
 }
 /**
  * @return AgileDashboard_BacklogItem_PaginatedBacklogItemsRepresentations;
  */
 public function getPaginatedBacklogItemsRepresentationsForTopMilestone(PFUser $user, Planning_Milestone $top_milestone, $limit, $offset)
 {
     $strategy = $this->backlog_strategy_factory->getSelfBacklogStrategy($top_milestone, $limit, $offset);
     return $this->getBacklogItemsRepresentations($user, $top_milestone, $strategy);
 }
 public function getSubmilestonePresenter(PFUser $user, Planning_Milestone $milestone)
 {
     $backlog_strategy = $this->strategy_factory->getSelfBacklogStrategy($milestone);
     return new AgileDashboard_SubmilestonePresenter($this->backlog_row_factory->getAllCollection($user, $milestone, $backlog_strategy, ''));
 }