@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | * @param string $parent name of tempalte containing $handle |
| 157 | 157 | * @param string $handle name of part |
| 158 | 158 | * @param string $name name of variable/placeholder |
| 159 | - * @return boolean |
|
| 159 | + * @return false|null |
|
| 160 | 160 | */ |
| 161 | 161 | function set_block($parent, $handle, $name = '') |
| 162 | 162 | { |
@@ -311,6 +311,8 @@ discard block |
||
| 311 | 311 | |
| 312 | 312 | /** |
| 313 | 313 | * This is short for finish parse |
| 314 | + * @param string $target |
|
| 315 | + * @param string $handle |
|
| 314 | 316 | */ |
| 315 | 317 | function fp($target, $handle, $append = False) |
| 316 | 318 | { |
@@ -319,6 +321,8 @@ discard block |
||
| 319 | 321 | |
| 320 | 322 | /** |
| 321 | 323 | * This is a short cut for print finish parse |
| 324 | + * @param string $target |
|
| 325 | + * @param string $handle |
|
| 322 | 326 | */ |
| 323 | 327 | function pfp($target, $handle, $append = False) |
| 324 | 328 | { |
@@ -365,6 +369,7 @@ discard block |
||
| 365 | 369 | * Return undefined variables/placeholders of a handle |
| 366 | 370 | * |
| 367 | 371 | * @param string handle handle of a template |
| 372 | + * @param string $handle |
|
| 368 | 373 | * @return array|boolean array with undefined variables as key and value, or false if none |
| 369 | 374 | */ |
| 370 | 375 | function get_undefined($handle) |
@@ -564,7 +569,7 @@ discard block |
||
| 564 | 569 | * get template dir of an application |
| 565 | 570 | * |
| 566 | 571 | * @param $appname appication name optional can be derived from $GLOBALS['egw_info']['flags']['currentapp']; |
| 567 | - * @return string|boolean dir or false if no dir is found |
|
| 572 | + * @return string|false dir or false if no dir is found |
|
| 568 | 573 | */ |
| 569 | 574 | static function get_dir($appname = '') |
| 570 | 575 | { |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | /** |
| 39 | 39 | * Get versions of available updates |
| 40 | 40 | * |
| 41 | - * @return array verions for keys "current" and "security" |
|
| 41 | + * @return string verions for keys "current" and "security" |
|
| 42 | 42 | */ |
| 43 | 43 | public static function available() |
| 44 | 44 | { |
@@ -234,7 +234,7 @@ |
||
| 234 | 234 | * @param string $realm |
| 235 | 235 | * @param string $username |
| 236 | 236 | * @param string &$password=null password to use or if null, on return stored password |
| 237 | - * @return string|boolean false if $password not given and can NOT be read |
|
| 237 | + * @return false|string false if $password not given and can NOT be read |
|
| 238 | 238 | */ |
| 239 | 239 | static private function get_digest_A1($realm,$username,&$password=null) |
| 240 | 240 | { |
@@ -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;';} |