@@ -310,6 +310,9 @@ discard block |
||
310 | 310 | return $bar; |
311 | 311 | } |
312 | 312 | |
313 | + /** |
|
314 | + * @param integer $pos |
|
315 | + */ |
|
313 | 316 | protected function addMilestone($pos, $data, $params = array()) { |
314 | 317 | $format = "Y-m-d"; |
315 | 318 | $aLabel = isset($params['label']) ? $params['label'] : array($data['id'], html_entity_decode($data['summary'])); |
@@ -331,6 +334,9 @@ discard block |
||
331 | 334 | return $milestone; |
332 | 335 | } |
333 | 336 | |
337 | + /** |
|
338 | + * @param integer $pos |
|
339 | + */ |
|
334 | 340 | protected function addErrorBar($pos, $data) { |
335 | 341 | $format = "Y-m-d"; |
336 | 342 | |
@@ -362,6 +368,10 @@ discard block |
||
362 | 368 | $bar->SetPattern(GANTT_RDIAG,"black", 96); |
363 | 369 | } |
364 | 370 | |
371 | + /** |
|
372 | + * @param integer $pos |
|
373 | + * @param boolean $progress |
|
374 | + */ |
|
365 | 375 | protected function addLateBar($pos, $data, $progress, $params = array()) { |
366 | 376 | $bar = $this->addBar($pos, $data, $progress, $params); |
367 | 377 | $bar->SetColor($this->graph->getLateBarColor().":0.7"); |
@@ -27,6 +27,9 @@ discard block |
||
27 | 27 | protected $chart_to_edit; |
28 | 28 | protected $plugin; |
29 | 29 | |
30 | + /** |
|
31 | + * @param GraphOnTrackersV5Plugin $plugin |
|
32 | + */ |
|
30 | 33 | public function __construct($id, $report, $name, $description, $rank, $plugin) { |
31 | 34 | parent::__construct($id, $report, $name, $description, $rank); |
32 | 35 | $this->charts = null; |
@@ -124,6 +127,9 @@ discard block |
||
124 | 127 | return $html; |
125 | 128 | } |
126 | 129 | |
130 | + /** |
|
131 | + * @param boolean $readonly |
|
132 | + */ |
|
127 | 133 | protected function fetchCharts($matching_ids, PFUser $current_user, $in_dashboard = false, $readonly = null, $store_in_session = true) { |
128 | 134 | $html = ''; |
129 | 135 | $hp = Codendi_HTMLPurifier::instance(); |
@@ -28,6 +28,10 @@ |
||
28 | 28 | abstract class GraphOnTrackersV5_Widget_Chart extends Widget { |
29 | 29 | var $chart_title; |
30 | 30 | var $chart_id; |
31 | + |
|
32 | + /** |
|
33 | + * @param string $id |
|
34 | + */ |
|
31 | 35 | function GraphOnTrackersV5_Widget_Chart($id, $owner_id, $owner_type) { |
32 | 36 | $this->Widget($id); |
33 | 37 | $this->setOwner($owner_id, $owner_type); |
@@ -24,6 +24,9 @@ |
||
24 | 24 | |
25 | 25 | class GraphOnTrackersV5PluginInfo extends PluginInfo { |
26 | 26 | |
27 | + /** |
|
28 | + * @param GraphOnTrackersV5Plugin $plugin |
|
29 | + */ |
|
27 | 30 | function GraphOnTrackersV5PluginInfo(&$plugin) { |
28 | 31 | $this->PluginInfo($plugin); |
29 | 32 | $this->setPluginDescriptor(new GraphOnTrackersV5PluginDescriptor()); |
@@ -31,6 +31,7 @@ discard block |
||
31 | 31 | |
32 | 32 | /** |
33 | 33 | * Construct an Hudson build from a build URL |
34 | + * @param string $hudson_build_url |
|
34 | 35 | */ |
35 | 36 | function HudsonBuild($hudson_build_url) { |
36 | 37 | $parsed_url = parse_url($hudson_build_url); |
@@ -56,6 +57,9 @@ discard block |
||
56 | 57 | $this->dom_build = $this->_getXMLObject($this->hudson_build_url); |
57 | 58 | } |
58 | 59 | |
60 | + /** |
|
61 | + * @param string $hudson_build_url |
|
62 | + */ |
|
59 | 63 | protected function _getXMLObject($hudson_build_url) { |
60 | 64 | $xmlstr = @file_get_contents($hudson_build_url, false, $this->context); |
61 | 65 | if ($xmlstr !== false) { |
@@ -108,6 +112,10 @@ discard block |
||
108 | 112 | function getDuration() { |
109 | 113 | return $this->dom_build->duration; |
110 | 114 | } |
115 | + |
|
116 | + /** |
|
117 | + * @return string |
|
118 | + */ |
|
111 | 119 | function getTimestamp() { |
112 | 120 | return $this->dom_build->timestamp; |
113 | 121 | } |
@@ -84,6 +84,9 @@ discard block |
||
84 | 84 | $this->dom_job = $this->_getXMLObject($this->hudson_job_url); |
85 | 85 | } |
86 | 86 | |
87 | + /** |
|
88 | + * @param string $hudson_job_url |
|
89 | + */ |
|
87 | 90 | protected function _getXMLObject($hudson_job_url) { |
88 | 91 | $xmlstr = @file_get_contents($hudson_job_url, false, $this->context); |
89 | 92 | if ($xmlstr !== false) { |
@@ -124,6 +127,10 @@ discard block |
||
124 | 127 | function getUrl() { |
125 | 128 | return $this->getDomJob()->url; |
126 | 129 | } |
130 | + |
|
131 | + /** |
|
132 | + * @return string |
|
133 | + */ |
|
127 | 134 | function getColor() { |
128 | 135 | return $this->getDomJob()->color; |
129 | 136 | } |
@@ -301,7 +308,7 @@ discard block |
||
301 | 308 | * @exception if unable to open build URL or if response is an error |
302 | 309 | * |
303 | 310 | * @param string $token if CI server has activated security (login/password), then a token is mandatory to build jobs. This token is defined in the job configuration. |
304 | - * @return response of build call. |
|
311 | + * @return string of build call. |
|
305 | 312 | */ |
306 | 313 | function launchBuild($token = null) { |
307 | 314 | $url = $this->hudson_dobuild_url; |
@@ -46,6 +46,9 @@ discard block |
||
46 | 46 | return $this->jobs[$owner_type][$owner_id]; |
47 | 47 | } |
48 | 48 | |
49 | + /** |
|
50 | + * @param integer $group_id |
|
51 | + */ |
|
49 | 52 | public function getJobsByGroup($group_id) { |
50 | 53 | $dar = $this->getDao()->searchByGroupID($group_id); |
51 | 54 | $jobs = array(); |
@@ -60,6 +63,9 @@ discard block |
||
60 | 63 | return $jobs; |
61 | 64 | } |
62 | 65 | |
66 | + /** |
|
67 | + * @param integer $user_id |
|
68 | + */ |
|
63 | 69 | public function getJobsByUser($user_id) { |
64 | 70 | $dar = $this->getDao()->searchByUserID($user_id); |
65 | 71 | $jobs = array(); |
@@ -23,6 +23,9 @@ |
||
23 | 23 | |
24 | 24 | class hudsonPluginInfo extends PluginInfo { |
25 | 25 | |
26 | + /** |
|
27 | + * @param hudsonPlugin $plugin |
|
28 | + */ |
|
26 | 29 | function hudsonPluginInfo(&$plugin) { |
27 | 30 | $this->PluginInfo($plugin); |
28 | 31 | $this->setPluginDescriptor(new hudsonPluginDescriptor()); |
@@ -56,6 +56,9 @@ |
||
56 | 56 | $this->dom_job = $this->_getXMLObject($this->hudson_test_result_url); |
57 | 57 | } |
58 | 58 | |
59 | + /** |
|
60 | + * @param string $hudson_test_result_url |
|
61 | + */ |
|
59 | 62 | protected function _getXMLObject($hudson_test_result_url) { |
60 | 63 | $xmlstr = @file_get_contents($hudson_test_result_url, false, $this->context); |
61 | 64 | if ($xmlstr !== false) { |