@@ -22,6 +22,11 @@ |
||
22 | 22 | |
23 | 23 | const PERM_PRIORITY_CHANGE = 'PLUGIN_AGILEDASHBOARD_PLANNING_PRIORITY_CHANGE'; |
24 | 24 | |
25 | + /** |
|
26 | + * @param integer $planning_id |
|
27 | + * @param integer $group_id |
|
28 | + * @param string $html_element_name |
|
29 | + */ |
|
25 | 30 | public function getPlanningPermissionForm($planning_id, $group_id, $permission, $html_element_name) { |
26 | 31 | return permission_fetch_selection_field($permission, $planning_id, $group_id, $html_element_name); |
27 | 32 | } |
@@ -29,6 +29,10 @@ |
||
29 | 29 | /** @var string */ |
30 | 30 | public $milestone_type_name; |
31 | 31 | |
32 | + /** |
|
33 | + * @param Planning_Presenter_MilestoneSummaryPresenter[] $milestone_summary_presenters |
|
34 | + * @param string $tracker_name |
|
35 | + */ |
|
32 | 36 | public function __construct($milestone_summary_presenters, $tracker_name) { |
33 | 37 | $this->milestone_summary_presenters = $milestone_summary_presenters; |
34 | 38 | $this->milestone_type_name = $tracker_name; |
@@ -35,6 +35,9 @@ |
||
35 | 35 | */ |
36 | 36 | public $milestone_type; |
37 | 37 | |
38 | + /** |
|
39 | + * @param Planning_Milestone[] $milestones |
|
40 | + */ |
|
38 | 41 | public function __construct($milestones, $milestone_type) { |
39 | 42 | $this->milestones = $milestones; |
40 | 43 | $this->milestone_type = $milestone_type; |
@@ -31,6 +31,10 @@ |
||
31 | 31 | */ |
32 | 32 | private $status_count; |
33 | 33 | |
34 | + /** |
|
35 | + * @param string $plugin_path |
|
36 | + * @param boolean $has_cardwall |
|
37 | + */ |
|
34 | 38 | public function __construct(Planning_Milestone $milestone, $plugin_path, $has_cardwall, $status_count) { |
35 | 39 | parent::__construct($milestone, $plugin_path, $has_cardwall); |
36 | 40 |
@@ -46,6 +46,7 @@ |
||
46 | 46 | * |
47 | 47 | * @param PFUser $user The user who will see the planning |
48 | 48 | * @param int $group_id |
49 | + * @param string $theme_path |
|
49 | 50 | * |
50 | 51 | * @return array of Planning_ShortAccess |
51 | 52 | */ |
@@ -40,6 +40,9 @@ |
||
40 | 40 | /** @var AgileDashboard_PaneIconLinkPresenter[] */ |
41 | 41 | private $pane_icon_list; |
42 | 42 | |
43 | + /** |
|
44 | + * @param string $theme_path |
|
45 | + */ |
|
43 | 46 | public function __construct( |
44 | 47 | Planning_ShortAccess $short_access, |
45 | 48 | Planning_Milestone $milestone, |
@@ -43,7 +43,6 @@ |
||
43 | 43 | * - pass $request to actions (e.g. show). |
44 | 44 | * |
45 | 45 | * @param Codendi_Request $request |
46 | - * @param PlanningFactory $planning_factory |
|
47 | 46 | * @param Planning_MilestoneFactory $milestone_factory |
48 | 47 | */ |
49 | 48 | public function __construct( |
@@ -89,8 +89,7 @@ discard block |
||
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
92 | - * @param Planning_Milestone $milestone |
|
93 | - * @return int |
|
92 | + * @return string |
|
94 | 93 | */ |
95 | 94 | private function getMilestoneArtifactId() { |
96 | 95 | return self::TOP_MILESTONE_DUMMY_ARTIFACT_ID; |
@@ -107,7 +106,7 @@ discard block |
||
107 | 106 | return $this->active_pane[$milestone_artifact_id]; |
108 | 107 | } |
109 | 108 | |
110 | - /** @return AgileDashboard_PaneInfo[] */ |
|
109 | + /** @return AgileDashboard_PaneInfo */ |
|
111 | 110 | public function getListOfPaneInfo(Planning_Milestone $milestone) { |
112 | 111 | $milestone_artifact_id = $this->getMilestoneArtifactId(); |
113 | 112 | |
@@ -150,7 +149,7 @@ discard block |
||
150 | 149 | } |
151 | 150 | |
152 | 151 | /** |
153 | - * @return \AgileDashboard_Milestone_Pane_Planning_PlanningPaneInfo |
|
152 | + * @return null|AgileDashboard_Milestone_Pane_TopPlanning_TopPlanningPaneInfo |
|
154 | 153 | */ |
155 | 154 | private function getTopPlanningPaneInfo(Planning_Milestone $milestone) { |
156 | 155 | $milestone_artifact_id = $this->getMilestoneArtifactId(); |
@@ -174,7 +173,7 @@ discard block |
||
174 | 173 | } |
175 | 174 | |
176 | 175 | /** |
177 | - * @return \AgileDashboard_Milestone_Pane_Planning_PlanningPaneInfo |
|
176 | + * @return null|AgileDashboard_Milestone_Pane_TopPlanning_TopPlanningV2PaneInfo |
|
178 | 177 | */ |
179 | 178 | private function getTopPlanningV2PaneInfo(Planning_Milestone $milestone) { |
180 | 179 | $milestone_artifact_id = $this->getMilestoneArtifactId(); |
@@ -70,6 +70,9 @@ |
||
70 | 70 | return $this; |
71 | 71 | } |
72 | 72 | |
73 | + /** |
|
74 | + * @param integer $planning_id |
|
75 | + */ |
|
73 | 76 | public function withPlanningId($planning_id) { |
74 | 77 | $this->withPlanning(aPlanning()->withId($planning_id)->build()); |
75 | 78 | return $this; |