@@ -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(); |
@@ -4,6 +4,9 @@ |
||
4 | 4 | |
5 | 5 | class IMPluginInfo extends PluginInfo { |
6 | 6 | |
7 | + /** |
|
8 | + * @param IMPlugin $plugin |
|
9 | + */ |
|
7 | 10 | function IMPluginInfo(&$plugin) { |
8 | 11 | $this->PluginInfo($plugin); |
9 | 12 | $this->setPluginDescriptor(new IMPluginDescriptor()); |
@@ -17,6 +17,9 @@ discard block |
||
17 | 17 | private $kick_muc_members = false; // Set to true when locking a MUC, so users are kicked from the room. |
18 | 18 | /***/ |
19 | 19 | |
20 | + /** |
|
21 | + * @param Jabber $jab |
|
22 | + */ |
|
20 | 23 | function __construct(&$jab) { |
21 | 24 | $this->jab = &$jab; |
22 | 25 | $this->first_roster_update = true; |
@@ -91,6 +94,12 @@ discard block |
||
91 | 94 | /************************************** |
92 | 95 | ******* MUC Rooms |
93 | 96 | **************************************/ |
97 | + |
|
98 | + /** |
|
99 | + * @param string|null $muc_room_full_name |
|
100 | + * @param string|null $muc_room_description |
|
101 | + * @param string|null $muc_room_owner_username |
|
102 | + */ |
|
94 | 103 | function set_muc_room_info($muc_room_short_name, $muc_room_full_name, $muc_room_description, $muc_room_owner_username){ |
95 | 104 | $this->muc_room_info = array ( |
96 | 105 | "muc_room_short_name" => $muc_room_short_name, |
@@ -590,6 +590,10 @@ discard block |
||
590 | 590 | /* |
591 | 591 | * Adds/updates a property's value to the Openfire's DB. |
592 | 592 | */ |
593 | + |
|
594 | + /** |
|
595 | + * @param string $property |
|
596 | + */ |
|
593 | 597 | function _add_property($property,$value){ |
594 | 598 | $this->_db_connect($this->arguments["USER_OF_DB"],$this->arguments["PWD_OF_DB"],$this->arguments["OF_DB_HOST"],$this->arguments["OF_DB_PORT"],$this->arguments["OF_DB_NAME"]); |
595 | 599 | |
@@ -619,6 +623,11 @@ discard block |
||
619 | 623 | /* |
620 | 624 | * Adds/updates a muc property's value to the Openfire's DB. |
621 | 625 | */ |
626 | + |
|
627 | + /** |
|
628 | + * @param string $property |
|
629 | + * @param string $value |
|
630 | + */ |
|
622 | 631 | function _add_muc_property($property,$value){ |
623 | 632 | $this->_db_connect($this->arguments["USER_OF_DB"],$this->arguments["PWD_OF_DB"],$this->arguments["OF_DB_HOST"],$this->arguments["OF_DB_PORT"],$this->arguments["OF_DB_NAME"]); |
624 | 633 |
@@ -18,6 +18,10 @@ discard block |
||
18 | 18 | /* |
19 | 19 | * Initialize configuration |
20 | 20 | */ |
21 | + |
|
22 | + /** |
|
23 | + * @param boolean $session |
|
24 | + */ |
|
21 | 25 | public function __construct($session) { |
22 | 26 | $session = trim($session); |
23 | 27 | if(!isset($session) || !is_string($session) || empty($session)){ |
@@ -134,6 +138,10 @@ discard block |
||
134 | 138 | /* |
135 | 139 | * Auxiliary function for lock_muc_room and unlock_muc_room. |
136 | 140 | */ |
141 | + |
|
142 | + /** |
|
143 | + * @param string $muc_room_short_name |
|
144 | + */ |
|
137 | 145 | private function _muc_locker($muc_room_short_name, $lock = true) |
138 | 146 | { |
139 | 147 | if( !$this->check_parameters->NotEmptyString($muc_room_short_name) ){ |
@@ -429,6 +437,10 @@ discard block |
||
429 | 437 | /* |
430 | 438 | * Revoke membership of a user in a muc room |
431 | 439 | */ |
440 | + |
|
441 | + /** |
|
442 | + * @param string $username |
|
443 | + */ |
|
432 | 444 | public function muc_remove_member($muc_room_short_name, $username){ |
433 | 445 | $muc_room_short_name = strtolower($muc_room_short_name); |
434 | 446 | $username = strtolower($username); |
@@ -24,6 +24,10 @@ discard block |
||
24 | 24 | * @param muc_room_description string Short description of the Room. Mapped from project's "Short Description". |
25 | 25 | * @param muc_room_owner_username string The username of who's creating the room. Mapped from project owner. |
26 | 26 | */ |
27 | + |
|
28 | + /** |
|
29 | + * @return boolean |
|
30 | + */ |
|
27 | 31 | function create_muc_room($muc_room_short_name, $muc_room_full_name, $muc_room_description, $muc_room_owner_username); |
28 | 32 | |
29 | 33 | |
@@ -80,6 +84,10 @@ discard block |
||
80 | 84 | * @param group_short_name Index of the group. Mapped from project's "Short Name". |
81 | 85 | * @param group_full_name string Displayed on the Members' roster. Mapped from project's "Full Name". |
82 | 86 | */ |
87 | + |
|
88 | + /** |
|
89 | + * @return boolean |
|
90 | + */ |
|
83 | 91 | function create_shared_group($group_short_name, $group_full_name); |
84 | 92 | |
85 | 93 | /* |