@@ -27,6 +27,10 @@ |
||
27 | 27 | */ |
28 | 28 | class HTML_Element_Selectbox_TrackerFields_TextsV5 extends HTML_Element_Selectbox { |
29 | 29 | |
30 | + /** |
|
31 | + * @param Tracker $tracker |
|
32 | + * @param string $name |
|
33 | + */ |
|
30 | 34 | public function __construct($tracker, $label, $name, $value, $with_none = false, $onchange = "", $desc="") { |
31 | 35 | parent::__construct($label, $name, $value, $with_none, $onchange, $desc); |
32 | 36 |
@@ -81,7 +81,6 @@ |
||
81 | 81 | /** |
82 | 82 | * Display the report list |
83 | 83 | * |
84 | - * @param : $reports the list the reports within an artifact to display |
|
85 | 84 | * |
86 | 85 | * @return void |
87 | 86 | */ |
@@ -78,7 +78,6 @@ discard block |
||
78 | 78 | * |
79 | 79 | * @param int $report_id |
80 | 80 | * @param int $renderer_id |
81 | - * @param int $chart_id |
|
82 | 81 | * |
83 | 82 | * @return Tracker_Report_Session |
84 | 83 | */ |
@@ -154,6 +153,9 @@ discard block |
||
154 | 153 | return $html; |
155 | 154 | } |
156 | 155 | |
156 | + /** |
|
157 | + * @param string $content |
|
158 | + */ |
|
157 | 159 | private function fetchGraphAnchor($content) { |
158 | 160 | return '<div class="tracker_report_renderer_graphontrackers_graph plugin_graphontrackersv5_chart" |
159 | 161 | data-graph-id="'.$this->getId().'">'. $content .' |
@@ -435,6 +437,7 @@ discard block |
||
435 | 437 | |
436 | 438 | /** |
437 | 439 | * Return the chart type (gantt, bar, pie, ...) |
440 | + * @return string|null |
|
438 | 441 | */ |
439 | 442 | abstract public function getChartType(); |
440 | 443 | |
@@ -511,6 +514,9 @@ discard block |
||
511 | 514 | return isset($chart_data[$this->id]['type']) && HTTPRequest::instance()->getBrowser()->isCompatibleWithD3(); |
512 | 515 | } |
513 | 516 | |
517 | + /** |
|
518 | + * @param boolean $store_in_session |
|
519 | + */ |
|
514 | 520 | private function fetchContentJPGraph($store_in_session) { |
515 | 521 | $content = $this->fetch($store_in_session); |
516 | 522 | $content .= '<br />'; |
@@ -36,6 +36,10 @@ discard block |
||
36 | 36 | */ |
37 | 37 | protected $start_date; |
38 | 38 | public function getStartDate() { return $this->start_date; } |
39 | + |
|
40 | + /** |
|
41 | + * @param integer $start_date |
|
42 | + */ |
|
39 | 43 | public function setStartDate($start_date) { return $this->start_date = $start_date; } |
40 | 44 | |
41 | 45 | /** |
@@ -126,14 +130,14 @@ discard block |
||
126 | 130 | } |
127 | 131 | |
128 | 132 | /** |
129 | - * @return GraphOnTrackerV5_Engine The engine associated to the concrete chart |
|
133 | + * @return GraphOnTrackersV5_Engine_Burndown The engine associated to the concrete chart |
|
130 | 134 | */ |
131 | 135 | protected function getEngine() { |
132 | 136 | return new GraphOnTrackersV5_Engine_Burndown(); |
133 | 137 | } |
134 | 138 | |
135 | 139 | /** |
136 | - * @return ChartDataBuilder The data builder associated to the concrete chart |
|
140 | + * @return GraphOnTrackersV5_Burndown_DataBuilder The data builder associated to the concrete chart |
|
137 | 141 | */ |
138 | 142 | protected function getChartDataBuilder($artifacts) { |
139 | 143 | return new GraphOnTrackersV5_Burndown_DataBuilder($this,$artifacts); |
@@ -39,6 +39,10 @@ discard block |
||
39 | 39 | */ |
40 | 40 | protected $start_date; |
41 | 41 | public function getStartDate() { return $this->start_date; } |
42 | + |
|
43 | + /** |
|
44 | + * @param integer $start_date |
|
45 | + */ |
|
42 | 46 | public function setStartDate($start_date) { return $this->start_date = $start_date; } |
43 | 47 | |
44 | 48 | /** |
@@ -53,6 +57,10 @@ discard block |
||
53 | 57 | */ |
54 | 58 | protected $stop_date; |
55 | 59 | public function getStopDate() { return $this->stop_date; } |
60 | + |
|
61 | + /** |
|
62 | + * @param integer $stop_date |
|
63 | + */ |
|
56 | 64 | public function setStopDate($stop_date) { return $this->stop_date = $stop_date; } |
57 | 65 | |
58 | 66 | /** |
@@ -141,14 +149,14 @@ discard block |
||
141 | 149 | } |
142 | 150 | |
143 | 151 | /** |
144 | - * @return GraphOnTrackerV5_Engine The engine associated to the concrete chart |
|
152 | + * @return GraphOnTrackersV5_Engine_CumulativeFlow The engine associated to the concrete chart |
|
145 | 153 | */ |
146 | 154 | protected function getEngine() { |
147 | 155 | return new GraphOnTrackersV5_Engine_CumulativeFlow(); |
148 | 156 | } |
149 | 157 | |
150 | 158 | /** |
151 | - * @return ChartDataBuilder The data builder associated to the concrete chart |
|
159 | + * @return GraphOnTrackersV5_CumulativeFlow_DataBuilder The data builder associated to the concrete chart |
|
152 | 160 | */ |
153 | 161 | protected function getChartDataBuilder($artifacts) { |
154 | 162 | return new GraphOnTrackersV5_CumulativeFlow_DataBuilder($this,$artifacts); |
@@ -230,7 +230,11 @@ |
||
230 | 230 | * |
231 | 231 | * @param string The report name. |
232 | 232 | * @param string The report description. |
233 | - * @return id on success, false on failure. |
|
233 | + * @param integer $user_id |
|
234 | + * @param string $name |
|
235 | + * @param string $description |
|
236 | + * @param integer $scope |
|
237 | + * @return GraphOnTrackersV5_Report|null on success, false on failure. |
|
234 | 238 | */ |
235 | 239 | public static function create($atid, $user_id, $name, $description, $scope) { |
236 | 240 | $sql = sprintf("INSERT INTO plugin_graphontrackersv5_report_graphic |
@@ -33,6 +33,9 @@ |
||
33 | 33 | DataAccessObject::DataAccessObject($da); |
34 | 34 | } |
35 | 35 | |
36 | + /** |
|
37 | + * @param string $scope |
|
38 | + */ |
|
36 | 39 | public function searchByTrackerIdAndScope($tracker_id, $scope) { |
37 | 40 | $sql = "SELECT * FROM plugin_graphontrackersv5_report_graphic WHERE group_artifact_id = "; |
38 | 41 | $sql .= $this->da->escapeInt($tracker_id); |
@@ -44,6 +44,8 @@ |
||
44 | 44 | |
45 | 45 | /** |
46 | 46 | * Copy the charts from Report $from_report to Report $to_report |
47 | + * @param GraphOnTrackersV5_Report $from_report |
|
48 | + * @param GraphOnTrackersV5_Report|null $to_report |
|
47 | 49 | */ |
48 | 50 | public function copyCharts($from_report, $to_report) { |
49 | 51 | foreach($from_report->getCharts() as $c) { |
@@ -31,6 +31,10 @@ discard block |
||
31 | 31 | */ |
32 | 32 | protected $start_date; |
33 | 33 | public function getStartDate() { return $this->start_date; } |
34 | + |
|
35 | + /** |
|
36 | + * @param integer $start_date |
|
37 | + */ |
|
34 | 38 | public function setStartDate($start_date) { return $this->start_date = $start_date; } |
35 | 39 | |
36 | 40 | /** |
@@ -38,12 +42,20 @@ discard block |
||
38 | 42 | */ |
39 | 43 | protected $duration; |
40 | 44 | public function getDuration() { return $this->duration; } |
45 | + |
|
46 | + /** |
|
47 | + * @param integer $duration |
|
48 | + */ |
|
41 | 49 | public function setDuration($duration) { return $this->duration = $duration; } |
42 | 50 | |
43 | 51 | /** |
44 | 52 | * The remaining effort field |
45 | 53 | */ |
46 | 54 | protected $remaining_field; |
55 | + |
|
56 | + /** |
|
57 | + * @return boolean |
|
58 | + */ |
|
47 | 59 | public function getRemainingField() { return $this->remaining_field; } |
48 | 60 | public function setRemainingField($remaining_field) { return $this->remaining_field = $remaining_field; } |
49 | 61 | |
@@ -51,6 +63,10 @@ discard block |
||
51 | 63 | * The done field |
52 | 64 | */ |
53 | 65 | protected $done_field; |
66 | + |
|
67 | + /** |
|
68 | + * @return boolean |
|
69 | + */ |
|
54 | 70 | public function getDoneField() { return $this->done_field; } |
55 | 71 | public function setDoneField($done_field) { return $this->done_field = $done_field; } |
56 | 72 | |
@@ -78,7 +94,7 @@ discard block |
||
78 | 94 | |
79 | 95 | /** |
80 | 96 | * Create an instance of the chart |
81 | - * @return GraphOnTrackersV5_Chart |
|
97 | + * @return GraphOnTrackersV5_Scrum_Chart_Burnup|null |
|
82 | 98 | */ |
83 | 99 | public static function create($graphic_report, $id, $rank, $title, $description, $width, $height) { |
84 | 100 | $sql = sprintf("INSERT INTO plugin_graphontrackersv5_scrum_burnup |
@@ -121,14 +137,14 @@ discard block |
||
121 | 137 | |
122 | 138 | |
123 | 139 | /** |
124 | - * @return GraphOnTracker_Engine The engine associated to the concrete chart |
|
140 | + * @return GraphOnTrackersV5_Scrum_Burnup_Engine The engine associated to the concrete chart |
|
125 | 141 | */ |
126 | 142 | protected function getEngine() { |
127 | 143 | return new GraphOnTrackersV5_Scrum_Burnup_Engine(); |
128 | 144 | } |
129 | 145 | |
130 | 146 | /** |
131 | - * @return ChartDataBuilder The data builder associated to the concrete chart |
|
147 | + * @return GraphOnTrackersV5_Scrum_Burnup_DataBuilder The data builder associated to the concrete chart |
|
132 | 148 | */ |
133 | 149 | protected function getChartDataBuilder($artifacts) { |
134 | 150 | return new GraphOnTrackersV5_Scrum_Burnup_DataBuilder($this,$artifacts); |