/**
  * @return string The URL to the planning view of this milestone.
  */
 public function getUri()
 {
     $group_id = $this->milestone->getGroupId();
     $planning_id = $this->milestone->getPlanningId();
     $artifact_id = $this->milestone->getArtifactId();
     return "/plugins/agiledashboard/?group_id={$group_id}&action=show&planning_id={$planning_id}&aid={$artifact_id}";
 }
Esempio n. 2
0
 private function getSwitchDisplayAvatarsURL()
 {
     if ($this->user->isAnonymous()) {
         return false;
     }
     $group_id = $this->milestone->getGroupId();
     $planning_id = $this->milestone->getPlanningId();
     $tracker_id = $this->milestone->getTrackerId();
     $artifact_id = $this->milestone->getArtifactId();
     $action = 'toggle_user_display_avatar';
     $switch_display_username_url = CARDWALL_BASE_URL . '/?group_id=' . $group_id . '&planning_id=' . $planning_id . '&tracker_id=' . $tracker_id . '&aid=' . $artifact_id . '&action=' . $action;
     return $switch_display_username_url;
 }
 public function __construct(Planning_Milestone $milestone, $redirect_to_self, PFUser $user, array $quick_link_collection)
 {
     $this->id = $milestone->getArtifactId();
     $this->planning_id = $milestone->getPlanningId();
     $this->milestone_title = $milestone->getArtifact()->getTitle();
     $this->milestone_start_date = $milestone->getStartDate();
     $this->milestone_end_date = $milestone->getEndDate();
     $this->milestone_status = $milestone->getArtifact()->getStatus();
     $this->edit_submilestone_url = $milestone->getArtifact()->getUri();
     $this->redirect_to_self = $redirect_to_self;
     $this->milestone_capacity = $milestone->getCapacity();
     $this->quick_link_collection = $quick_link_collection;
 }
 public function __construct(AgileDashboard_Milestone_Backlog_BacklogItemPresenterCollection $backlog_collection, AgileDashboard_Milestone_Pane_Planning_PlanningSubMilestonePresenterCollection $submilestone_collection, Planning_Milestone $milestone, $parent_item_type, $submilestone_item_type, $add_new_submilestone_url, $can_add_submilestone, $can_plan, $redirect_to_self, array $trackers_without_initial_effort)
 {
     $this->backlog_collection = $backlog_collection;
     $this->submilestone_collection = $submilestone_collection;
     $this->parent_item_type = $parent_item_type;
     $this->submilestone_item_type = $submilestone_item_type;
     $this->add_new_submilestone_url = $add_new_submilestone_url;
     $this->can_add_submilestone = $can_add_submilestone;
     $this->can_plan = $can_plan;
     $this->redirect_to_self = $redirect_to_self;
     $this->milestone_id = $milestone->getArtifactId();
     $this->milestone_planning_id = $milestone->getPlanningId();
     $this->milestone_item_type = $milestone->getArtifactTitle();
     foreach ($trackers_without_initial_effort as $tracker_without_initial_effort) {
         $this->trackers_without_initial_effort_field[] = $tracker_without_initial_effort->getName();
     }
 }
 /** @return string */
 public function getPlanningRedirectToNew(Planning_Milestone $milestone, $pane_identifier)
 {
     $planning_id = (int) $milestone->getPlanningId();
     return "planning[{$pane_identifier}][{$planning_id}]=-1";
 }
 public function planning_id()
 {
     return $this->milestone->getPlanningId();
 }
 private function getPlanningRedirectToNew()
 {
     $planning_id = (int) $this->milestone->getPlanningId();
     $artifact_id = $this->milestone->getArtifactId();
     return "planning[{$planning_id}]=-1";
 }
Esempio n. 8
0
 protected function getUriParametersForMilestone(Planning_Milestone $milestone)
 {
     return array('group_id' => $milestone->getGroupId(), 'planning_id' => $milestone->getPlanningId(), 'action' => $this->action, 'aid' => $milestone->getArtifactId(), 'pane' => $this->getIdentifier());
 }