@@ -25,6 +25,10 @@ |
||
25 | 25 | * Data Access Object for GraphOnTrackers_Report |
26 | 26 | */ |
27 | 27 | class GraphOnTrackers_ReportDao extends DataAccessObject { |
28 | + |
|
29 | + /** |
|
30 | + * @param string $scope |
|
31 | + */ |
|
28 | 32 | public function searchByTrackerIdAndScope($tracker_id, $scope) { |
29 | 33 | $sql = "SELECT * FROM plugin_graphontrackers_report_graphic WHERE group_artifact_id = "; |
30 | 34 | $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 GraphOnTrackers_Report $from_report |
|
48 | + * @param GraphOnTrackers_Report|null $to_report |
|
47 | 49 | */ |
48 | 50 | public function copyCharts($from_report, $to_report) { |
49 | 51 | foreach($from_report->getCharts() as $c) { |
@@ -166,6 +166,7 @@ |
||
166 | 166 | |
167 | 167 | /** |
168 | 168 | * Fill engine object with database results depending of data type |
169 | + * @param string $type |
|
169 | 170 | */ |
170 | 171 | protected function _fillEngineData($res, $engine, $type) { |
171 | 172 | if ($res && !db_error($res)) { |
@@ -93,6 +93,9 @@ |
||
93 | 93 | return $this->graph; |
94 | 94 | } |
95 | 95 | |
96 | + /** |
|
97 | + * @param string $color |
|
98 | + */ |
|
96 | 99 | function getBarPlot($data, $color) { |
97 | 100 | $b = new BarPlot($data); |
98 | 101 | //parameters hard coded for the moment |
@@ -24,6 +24,9 @@ |
||
24 | 24 | |
25 | 25 | class GraphOnTrackersPluginInfo extends PluginInfo { |
26 | 26 | |
27 | + /** |
|
28 | + * @param GraphOnTrackersPlugin $plugin |
|
29 | + */ |
|
27 | 30 | function GraphOnTrackersPluginInfo(&$plugin) { |
28 | 31 | $this->PluginInfo($plugin); |
29 | 32 | $this->setPluginDescriptor(new GraphOnTrackersPluginDescriptor()); |
@@ -32,6 +32,9 @@ |
||
32 | 32 | |
33 | 33 | protected $theme_path; |
34 | 34 | |
35 | + /** |
|
36 | + * @param integer $user_id |
|
37 | + */ |
|
35 | 38 | function graphicEngineHtml($group_artifact_id,$user_id,$theme_path) { |
36 | 39 | $this->grf = new graphicReportFactory($group_artifact_id,$user_id); |
37 | 40 | $this->theme_path = $theme_path; |
@@ -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 />'; |