@@ -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 |
@@ -303,6 +303,9 @@ discard block |
||
303 | 303 | return $bar; |
304 | 304 | } |
305 | 305 | |
306 | + /** |
|
307 | + * @param integer $pos |
|
308 | + */ |
|
306 | 309 | protected function addMilestone($pos, $data, $params = array()) { |
307 | 310 | $format = "Y-m-d"; |
308 | 311 | $aLabel = isset($params['label']) ? $params['label'] : array($data['id'], html_entity_decode($data['summary'])); |
@@ -324,6 +327,9 @@ discard block |
||
324 | 327 | return $milestone; |
325 | 328 | } |
326 | 329 | |
330 | + /** |
|
331 | + * @param integer $pos |
|
332 | + */ |
|
327 | 333 | protected function addErrorBar($pos, $data) { |
328 | 334 | $format = "Y-m-d"; |
329 | 335 | |
@@ -355,6 +361,10 @@ discard block |
||
355 | 361 | $bar->SetPattern(GANTT_RDIAG,"black", 96); |
356 | 362 | } |
357 | 363 | |
364 | + /** |
|
365 | + * @param integer $pos |
|
366 | + * @param boolean $progress |
|
367 | + */ |
|
358 | 368 | protected function addLateBar($pos, $data, $progress, $params = array()) { |
359 | 369 | $bar = $this->addBar($pos, $data, $progress, $params); |
360 | 370 | $bar->SetColor($this->graph->getLateBarColor().":0.7"); |
@@ -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_DatesV5 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 |
@@ -27,6 +27,10 @@ |
||
27 | 27 | */ |
28 | 28 | class HTML_Element_Selectbox_TrackerFields_Int_TextFieldsV5 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 |