@@ -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) { |
@@ -387,6 +387,11 @@ |
||
387 | 387 | echo "<script>Element.toggle('hudson_add_job', 'slide');</script>"; |
388 | 388 | } |
389 | 389 | |
390 | + /** |
|
391 | + * @param Project $project |
|
392 | + * @param string $add_or_edit |
|
393 | + * @param string $action |
|
394 | + */ |
|
390 | 395 | private function displayForm( |
391 | 396 | $project, |
392 | 397 | $services, |
@@ -29,6 +29,9 @@ |
||
29 | 29 | */ |
30 | 30 | protected $hudsonJobFactory; |
31 | 31 | |
32 | + /** |
|
33 | + * @param string $widget_id |
|
34 | + */ |
|
32 | 35 | public function __construct($widget_id, HudsonJobFactory $factory) { |
33 | 36 | parent::__construct($widget_id); |
34 | 37 | $this->hudsonJobFactory = $factory; |
@@ -13,6 +13,10 @@ |
||
13 | 13 | class IM_Widget_MyRoster extends Widget { |
14 | 14 | var $plugin; |
15 | 15 | var $request; |
16 | + |
|
17 | + /** |
|
18 | + * @param IMPlugin $plugin |
|
19 | + */ |
|
16 | 20 | function IM_Widget_MyRoster($plugin) { |
17 | 21 | $this->Widget('plugin_im_myroster'); |
18 | 22 | $this->plugin = $plugin; |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | |
15 | 15 | /** |
16 | 16 | * Constructs the IMDao |
17 | - * @param $da instance of the DataAccess class |
|
17 | + * @param IMDataAccess $da instance of the DataAccess class |
|
18 | 18 | */ |
19 | 19 | function __construct($da) { |
20 | 20 | parent::__construct($da); |
@@ -133,6 +133,7 @@ discard block |
||
133 | 133 | |
134 | 134 | /** |
135 | 135 | * to set muc members |
136 | + * @param string $jid |
|
136 | 137 | */ |
137 | 138 | function add_muc_room_user($roomID,$jid/*,$nickname='',$firstName='',$lastName='',$url='',$faqentry=''*/) { |
138 | 139 | $forma="INSERT INTO ".$this->openfire_db_name.".ofMucMember(roomID,jid) |
@@ -151,6 +152,8 @@ discard block |
||
151 | 152 | |
152 | 153 | /** |
153 | 154 | * muc room affiliation |
155 | + * @param string $jid |
|
156 | + * @param integer $affiliation |
|
154 | 157 | */ |
155 | 158 | function muc_room_affiliation($roomID,$jid,$affiliation) { |
156 | 159 | $forma="INSERT INTO ".$this->openfire_db_name.".ofMucAffiliation(roomID,jid,affiliation) |
@@ -19,6 +19,9 @@ discard block |
||
19 | 19 | var $last_im_datas=array(); |
20 | 20 | var $last_im_datas_remove=array(); |
21 | 21 | |
22 | + /** |
|
23 | + * @param integer $id |
|
24 | + */ |
|
22 | 25 | function __construct($id,$debug=IM_DEBUG_OFF) { |
23 | 26 | parent::__construct($id); |
24 | 27 | |
@@ -157,6 +160,10 @@ discard block |
||
157 | 160 | } |
158 | 161 | |
159 | 162 | protected $dynamicpresence_alreadydisplayed; |
163 | + |
|
164 | + /** |
|
165 | + * @param string $jid |
|
166 | + */ |
|
160 | 167 | function getDynamicPresence($jid) { |
161 | 168 | $id = md5($jid); |
162 | 169 | $html = '<img class="jid_'. $id .'"src="'. $this->getThemePath() .'/images/icons/blank.png" width="16" height="16" alt="" style="vertical-align:top" />'; |
@@ -190,6 +197,9 @@ discard block |
||
190 | 197 | return $html; |
191 | 198 | } |
192 | 199 | |
200 | + /** |
|
201 | + * @param string $jid |
|
202 | + */ |
|
193 | 203 | function getPresence($jid) { |
194 | 204 | if (!isset($this->_cache_presence[$jid])) { |
195 | 205 | if($this->_get_im_object()){ |
@@ -279,7 +289,7 @@ discard block |
||
279 | 289 | * This function is called when the event "project_is_deleted" is called |
280 | 290 | * Action: lock the muc room |
281 | 291 | * |
282 | - * @param array $param : contains the group_id ($params['group_id']) |
|
292 | + * @param array $params : contains the group_id ($params['group_id']) |
|
283 | 293 | * |
284 | 294 | * Before, we deleted the MUC room, but now, we only lock it, |
285 | 295 | * because we want to be able to go back to Active status (that will unlock the MUC Room). |
@@ -503,7 +513,6 @@ discard block |
||
503 | 513 | } |
504 | 514 | /** |
505 | 515 | * to remove a member on a muc |
506 | - * @param array $params:contains the data which comes from the envent listened. |
|
507 | 516 | */ |
508 | 517 | public function im_muc_remove_member($params){ |
509 | 518 | //group infos |
@@ -530,7 +539,6 @@ discard block |
||
530 | 539 | |
531 | 540 | /** |
532 | 541 | * for hook administration :display an URL to access IM administration. |
533 | - * @param array $params:contains the data which comes from the envent listened. |
|
534 | 542 | */ |
535 | 543 | function siteAdminHooks($params) { |
536 | 544 | global $Language; |
@@ -584,7 +592,6 @@ discard block |
||
584 | 592 | } |
585 | 593 | /** |
586 | 594 | * to display an user's jabber identification JID in web interface personnal page |
587 | - * @param array $eParams:contains the data which comes from the envent listened. |
|
588 | 595 | */ |
589 | 596 | function im_process_display_user_jabber_id ($eParams) { |
590 | 597 | $this->im_process_display_jabber_id ($eParams); |
@@ -592,7 +599,6 @@ discard block |
||
592 | 599 | |
593 | 600 | /** |
594 | 601 | * to display an user's jabber identification JID in web interface developper profil |
595 | - * @param array $eParams:contains the data which comes from the envent listened. |
|
596 | 602 | */ |
597 | 603 | function im_process_display_user_jabber_id_in_account (array $params) { |
598 | 604 | $im_object = $this->_get_im_object(); |
@@ -680,7 +686,6 @@ discard block |
||
680 | 686 | |
681 | 687 | /** |
682 | 688 | * display project members presence |
683 | - * @param array $params:contains the data which comes from the envent listened. |
|
684 | 689 | */ |
685 | 690 | function im_process_display_presence ($params) { |
686 | 691 | $user = $this->getUserManager()->getCurrentUser(); |