@@ -69,6 +69,11 @@ |
||
| 69 | 69 | return $milestone_representation; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | + /** |
|
| 73 | + * @param integer $limit |
|
| 74 | + * @param integer $offset |
|
| 75 | + * @param string $order |
|
| 76 | + */ |
|
| 72 | 77 | public function getPaginatedSubMilestonesRepresentations( |
| 73 | 78 | Planning_Milestone $milestone, |
| 74 | 79 | PFUser $user, |
@@ -41,6 +41,7 @@ |
||
| 41 | 41 | * Tracker_Artifact::STATUS_CLOSED => no_of_closed, |
| 42 | 42 | * ) |
| 43 | 43 | * |
| 44 | + * @param integer|null $milestone_artifact_id |
|
| 44 | 45 | * @return array |
| 45 | 46 | */ |
| 46 | 47 | public function getStatus(PFUser $user, $milestone_artifact_id) { |
@@ -40,6 +40,13 @@ |
||
| 40 | 40 | /** @var String[] */ |
| 41 | 41 | private $trackers_without_initial_effort_field = array(); |
| 42 | 42 | |
| 43 | + /** |
|
| 44 | + * @param string $submilestone_item_type |
|
| 45 | + * @param string $add_new_submilestone_url |
|
| 46 | + * @param boolean $can_add_submilestone |
|
| 47 | + * @param boolean $can_plan |
|
| 48 | + * @param string $redirect_to_self |
|
| 49 | + */ |
|
| 43 | 50 | public function __construct( |
| 44 | 51 | AgileDashboard_Milestone_Backlog_BacklogItemPresenterCollection $backlog_collection, |
| 45 | 52 | AgileDashboard_Milestone_Pane_Planning_PlanningSubMilestonePresenterCollection $submilestone_collection, |
@@ -51,6 +51,11 @@ discard block |
||
| 51 | 51 | /** @var string */ |
| 52 | 52 | public $use_angular_new_modal = 'true'; |
| 53 | 53 | |
| 54 | + /** |
|
| 55 | + * @param null|MilestoneRepresentation $milestone_representation |
|
| 56 | + * @param null|AgileDashboard_BacklogItem_PaginatedBacklogItemsRepresentations $paginated_backlog_items_representations |
|
| 57 | + * @param null|AgileDashboard_Milestone_PaginatedMilestonesRepresentations $paginated_milestones_representations |
|
| 58 | + */ |
|
| 54 | 59 | public function __construct( |
| 55 | 60 | PFUser $current_user, |
| 56 | 61 | Project $project, |
@@ -69,6 +74,9 @@ discard block |
||
| 69 | 74 | $this->paginated_milestones_representations = json_encode($paginated_milestones_representations); |
| 70 | 75 | } |
| 71 | 76 | |
| 77 | + /** |
|
| 78 | + * @param PFUser $current_user |
|
| 79 | + */ |
|
| 72 | 80 | private function getLanguageAbbreviation($current_user) { |
| 73 | 81 | list($lang, $country) = explode('_', $current_user->getLocale()); |
| 74 | 82 | |
@@ -24,6 +24,11 @@ |
||
| 24 | 24 | |
| 25 | 25 | class AgileDashboard_Milestone_Pane_Content_TopContentPresenter extends AgileDashboard_Milestone_Pane_Content_ContentPresenterDescendant { |
| 26 | 26 | |
| 27 | + /** |
|
| 28 | + * @param string $backlog_item_type |
|
| 29 | + * @param Tracker[] $trackers |
|
| 30 | + * @param boolean $can_prioritize |
|
| 31 | + */ |
|
| 27 | 32 | public function __construct( |
| 28 | 33 | AgileDashboard_Milestone_Backlog_BacklogItemPresenterCollection $todo, |
| 29 | 34 | $backlog_item_type, |
@@ -69,6 +69,9 @@ discard block |
||
| 69 | 69 | return $trackers_without_initial_effort_defined; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | + /** |
|
| 73 | + * @param integer $group_id |
|
| 74 | + */ |
|
| 72 | 75 | private function canUserPrioritizeBacklog(PFUser $user, $group_id) { |
| 73 | 76 | $planning_permissions_manager = new PlanningPermissionsManager(); |
| 74 | 77 | $root_planning = PlanningFactory::build()->getRootPlanning($user, $group_id); |
@@ -80,6 +83,9 @@ discard block |
||
| 80 | 83 | return false; |
| 81 | 84 | } |
| 82 | 85 | |
| 86 | + /** |
|
| 87 | + * @param string $redirect_to_self |
|
| 88 | + */ |
|
| 83 | 89 | private function getAddItemsToBacklogUrls(PFUser $user, array $item_trackers, $redirect_to_self) { |
| 84 | 90 | $submit_urls = array(); |
| 85 | 91 | |
@@ -86,6 +86,9 @@ |
||
| 86 | 86 | ); |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | + /** |
|
| 90 | + * @param string $redirect_to_self |
|
| 91 | + */ |
|
| 89 | 92 | private function getMilestoneCollection(PFUser $user, Planning_Milestone $milestone, Tracker $submilestone_tracker, $redirect_to_self) { |
| 90 | 93 | $milestone_collection = new AgileDashboard_Milestone_Pane_Planning_PlanningSubMilestonePresenterCollection($submilestone_tracker); |
| 91 | 94 | $milestones = array_reverse($this->milestone_factory->getSubMilestones($user, $milestone)); |
@@ -32,6 +32,11 @@ |
||
| 32 | 32 | /** @var string */ |
| 33 | 33 | public $icon; |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param string $uri |
|
| 37 | + * @param string $title |
|
| 38 | + * @param string $icon |
|
| 39 | + */ |
|
| 35 | 40 | public function __construct($uri, $title, $icon) { |
| 36 | 41 | $this->uri = $uri; |
| 37 | 42 | $this->title = $title; |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | * |
| 99 | 99 | * @param Planning_Milestone $milestone |
| 100 | 100 | * |
| 101 | - * @return Array |
|
| 101 | + * @return AgileDashboard_PaneIconLinkPresenter |
|
| 102 | 102 | */ |
| 103 | 103 | public function getIconTemplateParametersForMilestone(Planning_Milestone $milestone) { |
| 104 | 104 | return new AgileDashboard_PaneIconLinkPresenter( |