@@ -41,7 +41,6 @@ |
||
41 | 41 | * |
42 | 42 | * Calling this method with an empty array for frame-src, sets no defaults but "'self'"! |
43 | 43 | * |
44 | - * @param string|array $set =array() URL (incl. protocol!) |
|
45 | 44 | * @param string $source valid CSP source types like 'script-src', 'style-src', 'connect-src', 'frame-src', ... |
46 | 45 | * @param string|array $attrs 'unsafe-eval' and/or 'unsafe-inline' (without quotes!) or URL (incl. protocol!) |
47 | 46 | */ |
@@ -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)) |
@@ -180,7 +180,6 @@ discard block |
||
180 | 180 | /** |
181 | 181 | * Init responseArray |
182 | 182 | * |
183 | - * @param array $arr |
|
184 | 183 | * @return array previous content |
185 | 184 | */ |
186 | 185 | public function initResponseArray() |
@@ -264,7 +263,7 @@ discard block |
||
264 | 263 | * |
265 | 264 | * @param midex $var |
266 | 265 | * @param string $prefix ='' |
267 | - * @return mixed |
|
266 | + * @return midex|null |
|
268 | 267 | */ |
269 | 268 | public static function fix_content($var, $prefix='') |
270 | 269 | { |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | /** |
100 | 100 | * Returns information about connected ldap server |
101 | 101 | * |
102 | - * @return Ldap\ServerInfo|null |
|
102 | + * @return Ldap\ServerInfo |
|
103 | 103 | */ |
104 | 104 | function getLDAPServerInfo() |
105 | 105 | { |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | * @param string $host ldap host |
218 | 218 | * @param string $dn ldap dn |
219 | 219 | * @param string $passwd ldap pw |
220 | - * @return resource|boolean resource from ldap_connect() or false on error |
|
220 | + * @return boolean resource from ldap_connect() or false on error |
|
221 | 221 | */ |
222 | 222 | private function _connect($host, $dn, $passwd) |
223 | 223 | { |