@@ -115,6 +115,7 @@ discard block |
||
115 | 115 | /** |
116 | 116 | * Sets the sidebox width accoringly to the app_specific_sidebar_width setting, either |
117 | 117 | * in the current application or globaly |
118 | + * @param integer $val |
|
118 | 119 | */ |
119 | 120 | private static function set_sidebar_width($app, $val) |
120 | 121 | { |
@@ -427,11 +428,6 @@ discard block |
||
427 | 428 | /** |
428 | 429 | * Add menu items to the topmenu template class to be displayed |
429 | 430 | * |
430 | - * @param array $app application data |
|
431 | - * @param mixed $alt_label string with alternative menu item label default value = null |
|
432 | - * @param string $urlextra string with alternate additional code inside <a>-tag |
|
433 | - * @access protected |
|
434 | - * @return void |
|
435 | 431 | */ |
436 | 432 | function _add_topmenu_item(array $app_data,$alt_label=null) |
437 | 433 | { |
@@ -122,6 +122,9 @@ |
||
122 | 122 | exit; |
123 | 123 | } |
124 | 124 | |
125 | + /** |
|
126 | + * @return string |
|
127 | + */ |
|
125 | 128 | function check_logoutcode($code) |
126 | 129 | { |
127 | 130 | switch($code) |
@@ -309,13 +309,7 @@ discard block |
||
309 | 309 | * the new message as any other new message in a folder. |
310 | 310 | * |
311 | 311 | * @param string $rfc822 mail |
312 | - * @param array $smartdata=array() values for keys: |
|
313 | - * 'task': 'forward', 'new', 'reply' |
|
314 | - * 'itemid': id of message if it's an reply or forward |
|
315 | - * 'folderid': folder |
|
316 | - * 'replacemime': false = send as is, false = decode and recode for whatever reason ??? |
|
317 | - * 'saveinsentitems': 1 or absent? |
|
318 | - * @param boolean|double $protocolversion=false |
|
312 | + * @param boolean|double $protocolversion |
|
319 | 313 | * @return boolean true on success, false on error |
320 | 314 | * |
321 | 315 | * @see eg. BackendIMAP::SendMail() |
@@ -1762,7 +1756,7 @@ discard block |
||
1762 | 1756 | * @param string $displayname => new folder name (to be created, or to be renamed to) |
1763 | 1757 | * @param string $type folder type, ignored in IMAP |
1764 | 1758 | * |
1765 | - * @return array|boolean stat array or false on error |
|
1759 | + * @return boolean stat array or false on error |
|
1766 | 1760 | */ |
1767 | 1761 | public function ChangeFolder($id, $oldid, $displayname, $type) |
1768 | 1762 | { |
@@ -1777,7 +1771,7 @@ discard block |
||
1777 | 1771 | * @param string $id of the folder to delete |
1778 | 1772 | * |
1779 | 1773 | * @return |
1780 | - * @TODO check what is to be returned |
|
1774 | + boolean @TODO check what is to be returned |
|
1781 | 1775 | */ |
1782 | 1776 | public function DeleteFolder($parentid, $id) |
1783 | 1777 | { |
@@ -1811,7 +1805,6 @@ discard block |
||
1811 | 1805 | * |
1812 | 1806 | * @param int $account mail account id |
1813 | 1807 | * @param string $folder |
1814 | - * @param int $id=0 |
|
1815 | 1808 | * @return string |
1816 | 1809 | * @throws egw_exception_wrong_parameter |
1817 | 1810 | */ |
@@ -1477,6 +1477,10 @@ discard block |
||
1477 | 1477 | // $_mode can be: |
1478 | 1478 | // single: for a reply to one address |
1479 | 1479 | // all: for a reply to all |
1480 | + |
|
1481 | + /** |
|
1482 | + * @param emailadmin_imap $_icServer |
|
1483 | + */ |
|
1480 | 1484 | function getDraftData($_icServer, $_folder, $_uid, $_partID=NULL) |
1481 | 1485 | { |
1482 | 1486 | unset($_icServer); // not used |
@@ -1673,6 +1677,9 @@ discard block |
||
1673 | 1677 | return false; |
1674 | 1678 | } |
1675 | 1679 | |
1680 | + /** |
|
1681 | + * @param emailadmin_imap $_icServer |
|
1682 | + */ |
|
1676 | 1683 | function getForwardData($_icServer, $_folder, $_uid, $_partID, $_mode=false) |
1677 | 1684 | { |
1678 | 1685 | if ($_mode) |
@@ -1932,7 +1939,7 @@ discard block |
||
1932 | 1939 | /** |
1933 | 1940 | * Gather the replyData and save it with the session, to be used then |
1934 | 1941 | * |
1935 | - * @param $_mode can be: |
|
1942 | + * @param string $_mode can be: |
|
1936 | 1943 | * single: for a reply to one address |
1937 | 1944 | * all: for a reply to all |
1938 | 1945 | * forward: inlineforwarding of a message with its attachments |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | /** |
51 | 51 | * Mail tree constructor |
52 | 52 | * |
53 | - * @param object $mail_ui |
|
53 | + * @param mail_ui $mail_ui |
|
54 | 54 | */ |
55 | 55 | function __construct($mail_ui) { |
56 | 56 | $this->ui = $mail_ui; |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * @param string $_profileID icServer profile id |
63 | 63 | * @param string $_err error message to be shown on tree node |
64 | 64 | * @param mixed $_path |
65 | - * @param mixed $_parent |
|
65 | + * @param string $_parent |
|
66 | 66 | * @return array returns an array of tree node |
67 | 67 | */ |
68 | 68 | static function treeLeafNoConnectionArray($_profileID, $_err, $_path, $_parent) |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | /** |
95 | 95 | * Get folder data from path |
96 | 96 | * |
97 | - * @param string $path a node path |
|
97 | + * @param string $_path a node path |
|
98 | 98 | * @return array returns an array of data extracted from given node path |
99 | 99 | */ |
100 | 100 | static function pathToFolderData ($_path, $_hDelimiter) |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | /** |
132 | 132 | * Check if the given tree id is account node (means root) |
133 | 133 | * |
134 | - * @param type $_node a tree id node |
|
134 | + * @param string|null $_node a tree id node |
|
135 | 135 | * @return boolean returns true if the node is account node otherwise false |
136 | 136 | */ |
137 | 137 | private static function isAccountNode ($_node) |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | * |
164 | 164 | * @param string $_parent = null no parent node means root with the first level of folders |
165 | 165 | * @param string $_profileID = '' icServer id |
166 | - * @param int|boolean $_openTopLevel = 1 Open top level folders on load if it's set to 1|true, |
|
166 | + * @param integer $_openTopLevel = 1 Open top level folders on load if it's set to 1|true, |
|
167 | 167 | * false|0 leaves them in closed state |
168 | 168 | * @param $_noCheckboxNS = false no checkbox for namesapaces makes sure to not put checkbox for namespaces node |
169 | 169 | * @param boolean $_subscribedOnly = false get only subscribed folders |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | * |
445 | 445 | * @param type $_profileID = null Null means all accounts and giving profileid means fetches node for the account |
446 | 446 | * @param type $_noCheckbox = false option to switch checkbox of |
447 | - * @param type $_openTopLevel = 0 option to either start the node opened (1) or closed (0) |
|
447 | + * @param integer $_openTopLevel = 0 option to either start the node opened (1) or closed (0) |
|
448 | 448 | * |
449 | 449 | * @return array an array of baseNodes of accounts |
450 | 450 | */ |
@@ -491,7 +491,7 @@ discard block |
||
491 | 491 | * |
492 | 492 | * @param string $_parent = null no parent node means root with the first level of folders |
493 | 493 | * @param string $_profileID = '' active profile / acc_id |
494 | - * @param int|boolean $_openTopLevel = 1 Open top level folders on load if it's set to 1|true, |
|
494 | + * @param integer $_openTopLevel = 1 Open top level folders on load if it's set to 1|true, |
|
495 | 495 | * false|0 leaves them in closed state |
496 | 496 | * @param boolean $_subscribedOnly = false get only subscribed folders |
497 | 497 | * @param boolean $_allInOneGo = false, true will get all folders (dependes on subscribedOnly option) of the account in one go |
@@ -185,7 +185,6 @@ discard block |
||
185 | 185 | /** |
186 | 186 | * Return notification errors |
187 | 187 | * |
188 | - * @param boolean $reset=false true: reset all errors |
|
189 | 188 | * @return array |
190 | 189 | */ |
191 | 190 | public static function errors($reset=false) |
@@ -434,7 +433,7 @@ discard block |
||
434 | 433 | * Sets backends that should be skipped even if the user |
435 | 434 | * defined them in its chain |
436 | 435 | * |
437 | - * @param array $_skip_backends array with names of the backends to be skipped |
|
436 | + * @param string[] $_skip_backends array with names of the backends to be skipped |
|
438 | 437 | * e.g. array('popup', 'winpopup') |
439 | 438 | */ |
440 | 439 | public function set_skip_backends(array $_skip_backends) { |
@@ -102,7 +102,7 @@ |
||
102 | 102 | * this function calls all other recurring AJAX notifications methods |
103 | 103 | * to have ONE single recurring AJAX call per user |
104 | 104 | * |
105 | - * @return xajax response |
|
105 | + * @return string response |
|
106 | 106 | */ |
107 | 107 | public function get_notifications($browserNotify = false) |
108 | 108 | { |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * renders additional infos from sender and subject |
134 | 134 | * |
135 | 135 | * @param string $_subject |
136 | - * @return html rendered info as complete string |
|
136 | + * @return string rendered info as complete string |
|
137 | 137 | */ |
138 | 138 | private function render_infos($_subject = false) { |
139 | 139 | $infos = array(); |
@@ -149,7 +149,6 @@ discard block |
||
149 | 149 | * saves notification into database so that the client can fetch it from there |
150 | 150 | * |
151 | 151 | * @param string $_message |
152 | - * @param array $_user_sessions |
|
153 | 152 | */ |
154 | 153 | private function save( $_message ) { |
155 | 154 | $result = $this->db->insert( self::_notification_table, array( |
@@ -117,7 +117,6 @@ discard block |
||
117 | 117 | * saves notification into database so that the client can fetch it from there |
118 | 118 | * |
119 | 119 | * @param string $_message |
120 | - * @param array $_user_sessions |
|
121 | 120 | */ |
122 | 121 | private function save( $_message ) { |
123 | 122 | $result = $this->db->insert( self::_notification_table, array( |
@@ -179,9 +178,8 @@ discard block |
||
179 | 178 | * returns javascript to open a popup window: window.open(...) |
180 | 179 | * |
181 | 180 | * @param string $link link or this.href |
182 | - * @param string $target='_blank' name of target or this.target |
|
183 | - * @param int $width=750 width of the window |
|
184 | - * @param int $height=400 height of the window |
|
181 | + * @param int $width width of the window |
|
182 | + * @param int $height height of the window |
|
185 | 183 | * @return string javascript (using single quotes) |
186 | 184 | */ |
187 | 185 | private function jspopup($link,$target='_blank',$width=750,$height=410) |
@@ -202,7 +200,7 @@ discard block |
||
202 | 200 | * renders additional infos from sender and subject |
203 | 201 | * |
204 | 202 | * @param string $_subject |
205 | - * @return html rendered info as complete string |
|
203 | + * @return string rendered info as complete string |
|
206 | 204 | */ |
207 | 205 | private function render_infos($_subject = false) { |
208 | 206 | $infos = array(); |