@@ -254,7 +254,7 @@ |
||
254 | 254 | |
255 | 255 | /** |
256 | 256 | * Static function to build pgp encryption sidebox menu |
257 | - * @param type $appname application name |
|
257 | + * @param string $appname application name |
|
258 | 258 | */ |
259 | 259 | public static function pgp_encryption_menu($appname) |
260 | 260 | { |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | * |
140 | 140 | * @param string $name string with name of the submitted var which holds the key of the selected item form array |
141 | 141 | * @param string|array $key key(s) of already selected item(s) from $arr, eg. '1' or '1,2' or array with keys |
142 | - * @param array $arr array with items to select, eg. $arr = array ( 'y' => 'yes','n' => 'no','m' => 'maybe'); |
|
142 | + * @param integer $arr array with items to select, eg. $arr = array ( 'y' => 'yes','n' => 'no','m' => 'maybe'); |
|
143 | 143 | * @param boolean $no_lang NOT run the labels of the options through lang(), default false=use lang() |
144 | 144 | * @param string $options additional options (e.g. 'width') |
145 | 145 | * @param int $multiple number of lines for a multiselect, default 0 = no multiselect, < 0 sets size without multiple |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | * |
228 | 228 | * @param string $name string with name of the submitted var which holds the key of the selected item form array |
229 | 229 | * @param string|array $key key(s) of already selected item(s) from $arr, eg. '1' or '1,2' or array with keys |
230 | - * @param array $arr array with items to select, eg. $arr = array ( 'y' => 'yes','n' => 'no','m' => 'maybe'); |
|
230 | + * @param integer $arr array with items to select, eg. $arr = array ( 'y' => 'yes','n' => 'no','m' => 'maybe'); |
|
231 | 231 | * @param boolean $no_lang NOT run the labels of the options through lang(), default false=use lang() |
232 | 232 | * @param string $options additional options (e.g. 'width') |
233 | 233 | * @param int $multiple number of lines for a multiselect, default 3 |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | * @param string $value value |
314 | 314 | * @param string $label label |
315 | 315 | * @param mixed $selected value or array of values of options to mark as selected |
316 | - * @param boolean $no_lang NOT running the label through lang(), default false=use lang() |
|
316 | + * @param integer $no_lang NOT running the label through lang(), default false=use lang() |
|
317 | 317 | * @param string $extra extra text, e.g.: style="", default: '' |
318 | 318 | * @return string html |
319 | 319 | */ |
@@ -386,7 +386,6 @@ discard block |
||
386 | 386 | * |
387 | 387 | * @param string $name name attr. of the tag |
388 | 388 | * @param string $value default |
389 | - * @param boolean $ignore_empty if true all empty, zero (!) or unset values, plus filer=none |
|
390 | 389 | * @param boolean $double_encoding =false do we want double encoding or not, default no |
391 | 390 | * @param string html |
392 | 391 | */ |
@@ -741,7 +740,6 @@ discard block |
||
741 | 740 | * @param array $hidden_vars array with name-value pairs for hidden input fields |
742 | 741 | * @param string $url eGW relative URL, will be run through the link function |
743 | 742 | * @param string|array $url_vars parameters for the URL, send to link static function too |
744 | - * @param string $options attributes for the tag, default ''=none |
|
745 | 743 | * @param string $form_name name of the form, defaul ''=none |
746 | 744 | * @param string $method method of the form, default 'POST' |
747 | 745 | * @return string html |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * |
66 | 66 | * Only return skins existing in filesystem, as we disable / remove them if not compatible with supported browsers. |
67 | 67 | * |
68 | - * @return array skin => label pairs alphabetical sorted with default moono first |
|
68 | + * @return string skin => label pairs alphabetical sorted with default moono first |
|
69 | 69 | */ |
70 | 70 | public static function getAvailableCKEditorSkins() |
71 | 71 | { |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | * Adds all "easy to write" options to the configuration |
260 | 260 | * |
261 | 261 | * @param array& $config array were config get's added to |
262 | - * @param int|string $height integer height in pixel or string with css unit |
|
262 | + * @param integer $height integer height in pixel or string with css unit |
|
263 | 263 | * @param boolean|string $expanded_toolbar show toolbar expanded, boolean value, string "false", or string casted to boolean |
264 | 264 | * @param string $start_path start path for file browser |
265 | 265 | */ |
@@ -451,7 +451,7 @@ discard block |
||
451 | 451 | /** |
452 | 452 | * Adds extra |
453 | 453 | * @param array $config |
454 | - * @param array $plugins plugins name which needs to be appended into extraPlugins |
|
454 | + * @param string[] $plugins plugins name which needs to be appended into extraPlugins |
|
455 | 455 | */ |
456 | 456 | public static function append_extraPlugins_config_array (&$config, $plugins) |
457 | 457 | { |
@@ -104,7 +104,7 @@ |
||
104 | 104 | * @param varchar $html2check =text input Text to check |
105 | 105 | * @param mixed $Config = text or array |
106 | 106 | * @param mixed $Spec =text or array; The '$spec' argument can be used to disallow an otherwise legal attribute for an element |
107 | - * @return varchar cleaned/fixed html |
|
107 | + * @return string cleaned/fixed html |
|
108 | 108 | */ |
109 | 109 | function run($html2check, $Config=null, $Spec=array()) |
110 | 110 | { |
@@ -625,6 +625,10 @@ |
||
625 | 625 | // eof |
626 | 626 | } |
627 | 627 | |
628 | +/** |
|
629 | + * @param string $e |
|
630 | + * @param string $a |
|
631 | + */ |
|
628 | 632 | function hl_tag2(&$e, &$a, $t=1){ |
629 | 633 | // transform tag |
630 | 634 | if($e == 'center'){$e = 'div'; return 'text-align: center;';} |
@@ -82,8 +82,7 @@ discard block |
||
82 | 82 | /** |
83 | 83 | * Allows to call a global javascript function with given parameters: window[$func].call(window[, $param1[, ...]]) |
84 | 84 | * |
85 | - * @param string $func name of the global (window) javascript function to call |
|
86 | - * @param mixed $parameters variable number of parameters |
|
85 | + * @param string $function |
|
87 | 86 | */ |
88 | 87 | public function call($function) |
89 | 88 | { |
@@ -108,7 +107,7 @@ discard block |
||
108 | 107 | * |
109 | 108 | * @param string $selector jquery selector |
110 | 109 | * @param string $method name of the jquery to call |
111 | - * @param array $parameters =array() |
|
110 | + * @param string[] $parameters =array() |
|
112 | 111 | */ |
113 | 112 | public function jquery($selector,$method,array $parameters=array()) |
114 | 113 | { |
@@ -126,6 +125,9 @@ discard block |
||
126 | 125 | } |
127 | 126 | } |
128 | 127 | |
128 | + /** |
|
129 | + * @param string $type |
|
130 | + */ |
|
129 | 131 | public function generic($type, array $parameters = array()) |
130 | 132 | { |
131 | 133 | if (is_string($type)) |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | /** |
82 | 82 | * gets the version |
83 | 83 | * |
84 | - * @return integer the supported ldap version |
|
84 | + * @return string the supported ldap version |
|
85 | 85 | */ |
86 | 86 | function getVersion() |
87 | 87 | { |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | * @param resource $ds |
160 | 160 | * @param string $host |
161 | 161 | * @param int $version 2 or 3 |
162 | - * @return ldapserverinfo |
|
162 | + * @return ServerInfo |
|
163 | 163 | */ |
164 | 164 | public static function get($ds, $host, $version=3) |
165 | 165 | { |
@@ -176,6 +176,11 @@ discard block |
||
176 | 176 | return is_array($id) ? $links : ($links[$id] ? $links[$id] : array()); |
177 | 177 | } |
178 | 178 | |
179 | + /** |
|
180 | + * @param boolean $left |
|
181 | + * @param string $only_app |
|
182 | + * @param boolean $not_only |
|
183 | + */ |
|
179 | 184 | private static function _add2links($row,$left,$only_app,$not_only,array &$links) |
180 | 185 | { |
181 | 186 | $linked_app = $left ? $row['link_app2'] : $row['link_app1']; |
@@ -206,7 +211,7 @@ discard block |
||
206 | 211 | * @param string $id ='' id in $app, if no integer link_id given in $app_link_id |
207 | 212 | * @param string $app2 ='' appname of 2. endpoint of the link, if no integer link_id given in $app_link_id |
208 | 213 | * @param string $id2 ='' id in $app2, if no integer link_id given in $app_link_id |
209 | - * @return array with link-data or False |
|
214 | + * @return string with link-data or False |
|
210 | 215 | */ |
211 | 216 | static function get_link($app_link_id,$id='',$app2='',$id2='') |
212 | 217 | { |
@@ -486,7 +486,7 @@ discard block |
||
486 | 486 | * @param boolean $replace_placeholders =false should placeholders like {{n_fn}} be replaced |
487 | 487 | * @param string $field ='name' what to return as value: "ident_(realname|org|email|signature)" or default "name"=result from identity_name |
488 | 488 | * @param int $user =null account_id to use if not current user |
489 | - * @return Iterator ident_id => identity_name of identity |
|
489 | + * @return Api\Db\CallbackIterator ident_id => identity_name of identity |
|
490 | 490 | */ |
491 | 491 | public static function identities($account, $replace_placeholders=true, $field='name', $user=null) |
492 | 492 | { |
@@ -795,7 +795,7 @@ discard block |
||
795 | 795 | * |
796 | 796 | * To get $this->params you need to call getUserData before! It is never automatically loaded. |
797 | 797 | * |
798 | - * @param type $name |
|
798 | + * @param string $name |
|
799 | 799 | * @return mixed |
800 | 800 | */ |
801 | 801 | public function __get($name) |
@@ -819,8 +819,8 @@ discard block |
||
819 | 819 | /** |
820 | 820 | * Give read access to protected parameters in $this->params |
821 | 821 | * |
822 | - * @param type $name |
|
823 | - * @return mixed |
|
822 | + * @param string $name |
|
823 | + * @return boolean |
|
824 | 824 | */ |
825 | 825 | public function __isset($name) |
826 | 826 | { |
@@ -1340,10 +1340,10 @@ discard block |
||
1340 | 1340 | * @param boolean|string $just_name =true true: return self::identity_name, false: return Account objects, |
1341 | 1341 | * string with attribute-name: return that attribute, eg. acc_imap_host or 'params' to return all attributes as array |
1342 | 1342 | * @param string $order_by ='acc_name ASC' |
1343 | - * @param int|boolean $offset =false offset or false to return all |
|
1343 | + * @param boolean $offset =false offset or false to return all |
|
1344 | 1344 | * @param int $num_rows =0 number of rows to return, 0=default from prefs (if $offset !== false) |
1345 | 1345 | * @param boolean $replace_placeholders =true should placeholders like {{n_fn}} be replaced |
1346 | - * @return Iterator with acc_id => acc_name or Account objects |
|
1346 | + * @return Api\Db\CallbackIterator with acc_id => acc_name or Account objects |
|
1347 | 1347 | */ |
1348 | 1348 | public static function search($only_current_user=true, $just_name=true, $order_by=null, $offset=false, $num_rows=0, $replace_placeholders=true) |
1349 | 1349 | { |