@@ -270,8 +270,6 @@ discard block |
||
270 | 270 | * --> /phpgwapi/inc/calendar-setup.js?lang=de |
271 | 271 | * |
272 | 272 | * @param string $package package or complete path (relative to EGW_SERVER_ROOT) to be included |
273 | - * @param string|array $file=null file to be included - no ".js" on the end or array with get params |
|
274 | - * @param string $app='phpgwapi' application directory to search - default = phpgwapi |
|
275 | 273 | * |
276 | 274 | * @returns the correct path on the server if the file is found or false, if the |
277 | 275 | * file is not found or no further processing is needed. |
@@ -332,8 +330,6 @@ discard block |
||
332 | 330 | * --> /phpgwapi/inc/calendar-setup.js?lang=de |
333 | 331 | * |
334 | 332 | * @param string $package package or complete path (relative to EGW_SERVER_ROOT) to be included |
335 | - * @param string|array $file=null file to be included - no ".js" on the end or array with get params |
|
336 | - * @param string $app='phpgwapi' application directory to search - default = phpgwapi |
|
337 | 333 | */ |
338 | 334 | public function include_js_file($package, $file = null, $app = 'phpgwapi') |
339 | 335 | { |
@@ -361,7 +357,7 @@ discard block |
||
361 | 357 | * Include given files, optionally clear list of files to include |
362 | 358 | * |
363 | 359 | * @param array $files |
364 | - * @param boolean $clear_files=false if true clear list of files, before including given ones |
|
360 | + * @param boolean $clear_files if true clear list of files, before including given ones |
|
365 | 361 | */ |
366 | 362 | public function include_files(array $files, $clear_files=false) |
367 | 363 | { |
@@ -376,7 +372,7 @@ discard block |
||
376 | 372 | /** |
377 | 373 | * Return all files |
378 | 374 | * |
379 | - * @param boolean $clear_files=false if true clear list of files after returning them |
|
375 | + * @param boolean $clear_files if true clear list of files after returning them |
|
380 | 376 | * @return array |
381 | 377 | */ |
382 | 378 | public function get_included_files($clear_files=false) |
@@ -389,7 +385,6 @@ discard block |
||
389 | 385 | /** |
390 | 386 | * Constructor |
391 | 387 | * |
392 | - * @param array $files=null optional files to include as for include_files method |
|
393 | 388 | */ |
394 | 389 | public function __construct(array $files = null) |
395 | 390 | { |
@@ -72,11 +72,7 @@ discard block |
||
72 | 72 | * Constructor for the search iterator |
73 | 73 | * |
74 | 74 | * @param string $keyword |
75 | - * @param string $app=null |
|
76 | - * @param string $order='app' ordered by column: 'owner', 'id', 'app' (default) |
|
77 | - * @param string $sort='ASC' sorting 'ASC' (default) or 'DESC' |
|
78 | - * @param int $start=null if not null return limited resultset starting with row $start |
|
79 | - * @param int $num_rows=0 number of rows for a limited resultset, defaul maxmatches from the user prefs |
|
75 | + * @param int $num_rows number of rows for a limited resultset, defaul maxmatches from the user prefs |
|
80 | 76 | */ |
81 | 77 | function __construct($keyword,$app=null,$order='title',$sort='ASC',$start=null,$num_rows=0) |
82 | 78 | { |
@@ -97,11 +93,7 @@ discard block |
||
97 | 93 | * Search for keywords |
98 | 94 | * |
99 | 95 | * @param string $keyword |
100 | - * @param string $app=null |
|
101 | - * @param string $order='app' ordered by column: 'keyword', 'id', 'app' (default) |
|
102 | - * @param string $sort='ASC' sorting 'ASC' (default) or 'DESC' |
|
103 | - * @param int $start=null if not null return limited resultset starting with row $start |
|
104 | - * @param int $num_rows=null number of rows for a limited resultset, defaul maxmatches from the user prefs |
|
96 | + * @param int $num_rows number of rows for a limited resultset, defaul maxmatches from the user prefs |
|
105 | 97 | * @return array with "$app:$id" or $id => $title pairs |
106 | 98 | */ |
107 | 99 | static function &search($keyword,$app=null,$order='title',$sort='ASC',$start=null,$num_rows=null) |
@@ -168,7 +160,7 @@ discard block |
||
168 | 160 | * @param string|int $id |
169 | 161 | * @param string $owner eGW account_id of the owner of the entry, used to create a "private entry of ..." title |
170 | 162 | * @param array $fields |
171 | - * @param array|int|string $cat_ids=null optional cat_id(s) either comma-separated or as array |
|
163 | + * @param array|int|string $cat_ids optional cat_id(s) either comma-separated or as array |
|
172 | 164 | * @param array $ignore_fields=array() keys of fields NOT to index |
173 | 165 | * @return int|boolean false on error, othwerwise number off added keywords |
174 | 166 | */ |
@@ -219,7 +211,6 @@ discard block |
||
219 | 211 | * Delete the keywords for an entry or an entire application |
220 | 212 | * |
221 | 213 | * @param string $app |
222 | - * @param string|int $id=null |
|
223 | 214 | */ |
224 | 215 | static function delete($app,$id=null) |
225 | 216 | { |
@@ -282,7 +273,7 @@ discard block |
||
282 | 273 | * @param string $app |
283 | 274 | * @param string|int $id |
284 | 275 | * @param string $keyword |
285 | - * @param int $owner=null |
|
276 | + * @param string $owner |
|
286 | 277 | * @return boolean true if keyword added, false if it was rejected in future |
287 | 278 | */ |
288 | 279 | static private function add($app,$id,$keyword,$owner=null) |
@@ -321,8 +312,8 @@ discard block |
||
321 | 312 | * |
322 | 313 | * @param string $app |
323 | 314 | * @param string|int $id |
324 | - * @param array|int|string $cat_ids=null optional cat_id(s) either comma-separated or as array |
|
325 | - * @param int $owner=null |
|
315 | + * @param array|int|string $cat_ids optional cat_id(s) either comma-separated or as array |
|
316 | + * @param string $owner |
|
326 | 317 | * @return boolean true on success, false on error |
327 | 318 | */ |
328 | 319 | static private function add_cats($app,$id,$cat_ids,$owner=null) |
@@ -351,7 +342,6 @@ discard block |
||
351 | 342 | * Delete the cat for an entry or an entire application |
352 | 343 | * |
353 | 344 | * @param string $app |
354 | - * @param string|int $id=null |
|
355 | 345 | */ |
356 | 346 | static private function delete_cats($app,$id=null) |
357 | 347 | { |
@@ -235,8 +235,7 @@ discard block |
||
235 | 235 | /** |
236 | 236 | * Allows to call a global javascript function with given parameters: window[$func].call(window[, $param1[, ...]]) |
237 | 237 | * |
238 | - * @param string $func name of the global (window) javascript function to call |
|
239 | - * @param mixed $parameters variable number of parameters |
|
238 | + * @param string $function |
|
240 | 239 | */ |
241 | 240 | public function call($function) |
242 | 241 | { |
@@ -261,7 +260,7 @@ discard block |
||
261 | 260 | * |
262 | 261 | * @param string $selector jquery selector |
263 | 262 | * @param string $method name of the jquery to call |
264 | - * @param array $parameters =array() |
|
263 | + * @param string[] $parameters =array() |
|
265 | 264 | */ |
266 | 265 | public function jquery($selector,$method,array $parameters=array()) |
267 | 266 | { |
@@ -279,6 +278,9 @@ discard block |
||
279 | 278 | } |
280 | 279 | } |
281 | 280 | |
281 | + /** |
|
282 | + * @param string $type |
|
283 | + */ |
|
282 | 284 | public function generic($type, array $parameters = array()) |
283 | 285 | { |
284 | 286 | if (is_string($type)) |
@@ -544,7 +546,6 @@ discard block |
||
544 | 546 | /** |
545 | 547 | * Init responseArray |
546 | 548 | * |
547 | - * @param array $arr |
|
548 | 549 | * @return array previous content |
549 | 550 | */ |
550 | 551 | public function initResponseArray() |
@@ -628,7 +629,7 @@ discard block |
||
628 | 629 | * |
629 | 630 | * @param midex $var |
630 | 631 | * @param string $prefix ='' |
631 | - * @return mixed |
|
632 | + * @return midex|null |
|
632 | 633 | */ |
633 | 634 | public static function fix_content($var, $prefix='') |
634 | 635 | { |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | * generate temporary link_id used as array-key |
434 | 434 | * |
435 | 435 | * @param string $app app-name |
436 | - * @param mixed $id |
|
436 | + * @param string $id |
|
437 | 437 | * @return string |
438 | 438 | */ |
439 | 439 | static function temp_link_id($app,$id) |
@@ -579,7 +579,7 @@ discard block |
||
579 | 579 | * @param string|array $id ='' id if $app_link_id is an appname or array with links, if 1. entry not yet created |
580 | 580 | * @param string $app2 ='' second app |
581 | 581 | * @param string $id2 ='' id in $app2 |
582 | - * @return array with link-data or False |
|
582 | + * @return string with link-data or False |
|
583 | 583 | */ |
584 | 584 | static function get_link($app_link_id,$id='',$app2='',$id2='') |
585 | 585 | { |
@@ -734,7 +734,6 @@ discard block |
||
734 | 734 | * |
735 | 735 | * @param string $app app to search |
736 | 736 | * @param string $pattern pattern to search |
737 | - * @param string $type Search only a certain sub-type of records (optional) |
|
738 | 737 | * @return array with $id => $title pairs of matching entries of app |
739 | 738 | */ |
740 | 739 | static function query($app,$pattern, &$options = array()) |
@@ -1232,7 +1231,6 @@ discard block |
||
1232 | 1231 | * @param string $app appname to link the file to |
1233 | 1232 | * @param string $id id in $app |
1234 | 1233 | * @param string $file VFS path to link to |
1235 | - * @param string $comment ='' comment to add to the link |
|
1236 | 1234 | */ |
1237 | 1235 | static function link_file($app,$id,$file)//,$comment='') |
1238 | 1236 | { |
@@ -1259,7 +1257,7 @@ discard block |
||
1259 | 1257 | * @param int|string $app > 0: file_id of an attchemnt or $app/$id entry which linked to |
1260 | 1258 | * @param string $id ='' id in app |
1261 | 1259 | * @param string $fname ='' filename |
1262 | - * @return boolean|array false on error ($app or $id not found), array with path as key and boolean result of delete |
|
1260 | + * @return boolean false on error ($app or $id not found), array with path as key and boolean result of delete |
|
1263 | 1261 | */ |
1264 | 1262 | static function delete_attached($app,$id='',$fname='') |
1265 | 1263 | { |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | /** |
236 | 236 | * Add one or multiple addresses to Cc |
237 | 237 | * |
238 | - * @param string|array|Horde_Mail_Rfc822_List $address |
|
238 | + * @param string $address |
|
239 | 239 | * @param string $personal ='' only used if $address is a string |
240 | 240 | */ |
241 | 241 | function addCc($address, $personal=null) |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | /** |
255 | 255 | * Add one or multiple addresses to Bcc |
256 | 256 | * |
257 | - * @param string|array|Horde_Mail_Rfc822_List $address |
|
257 | + * @param string $address |
|
258 | 258 | * @param string $personal ='' only used if $address is a string |
259 | 259 | */ |
260 | 260 | function addBcc($address, $personal=null) |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | /** |
274 | 274 | * Add one or multiple addresses to Reply-To |
275 | 275 | * |
276 | - * @param string|array|Horde_Mail_Rfc822_List $address |
|
276 | + * @param false|string $address |
|
277 | 277 | * @param string $personal ='' only used if $address is a string |
278 | 278 | */ |
279 | 279 | function addReplyTo($address, $personal=null) |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | /** |
366 | 366 | * Adds an embedded image or other inline attachment |
367 | 367 | * |
368 | - * @param string|resource $data Path to the attachment or open file-descriptor |
|
368 | + * @param string $data Path to the attachment or open file-descriptor |
|
369 | 369 | * @param string $cid Content ID of the attachment. Use this to identify |
370 | 370 | * the Id for accessing the image in an HTML form. |
371 | 371 | * @param string $name Overrides the attachment name. |
@@ -833,6 +833,7 @@ discard block |
||
833 | 833 | |
834 | 834 | /** |
835 | 835 | * @deprecated use AddHeader($header, $value) |
836 | + * @param string $str |
|
836 | 837 | */ |
837 | 838 | function AddCustomHeader($str) |
838 | 839 | { |
@@ -851,6 +852,7 @@ discard block |
||
851 | 852 | } |
852 | 853 | /** |
853 | 854 | * @deprecated done by Horde automatic |
855 | + * @return string |
|
854 | 856 | */ |
855 | 857 | function EncodeHeader($str/*, $position = 'text'*/) |
856 | 858 | { |
@@ -311,6 +311,7 @@ discard block |
||
311 | 311 | * Encrypt the variables in the session |
312 | 312 | * |
313 | 313 | * Is called by self::__destruct(). |
314 | + * @param string $kp3 |
|
314 | 315 | */ |
315 | 316 | static function encrypt($kp3) |
316 | 317 | { |
@@ -439,7 +440,7 @@ discard block |
||
439 | 440 | * @param boolean $no_session =false dont create a real session, eg. for GroupDAV clients using only basic auth, no cookie support |
440 | 441 | * @param boolean $auth_check =true if false, the user is loged in without checking his password (eg. for single sign on), default = true |
441 | 442 | * @param boolean $fail_on_forced_password_change =false true: do NOT create session, if password change requested |
442 | - * @return string|boolean session id or false if session was not created, $this->(cd_)reason contains cause |
|
443 | + * @return false|string session id or false if session was not created, $this->(cd_)reason contains cause |
|
443 | 444 | */ |
444 | 445 | function create($login,$passwd = '',$passwd_type = '',$no_session=false,$auth_check=true,$fail_on_forced_password_change=false) |
445 | 446 | { |
@@ -1021,7 +1022,7 @@ discard block |
||
1021 | 1022 | /** |
1022 | 1023 | * Terminate a session |
1023 | 1024 | * |
1024 | - * @param int|string $sessionid nummeric or php session id of session to be terminated |
|
1025 | + * @param string $sessionid nummeric or php session id of session to be terminated |
|
1025 | 1026 | * @param string $kp3 |
1026 | 1027 | * @return boolean true on success, false on error |
1027 | 1028 | */ |
@@ -32,9 +32,7 @@ |
||
32 | 32 | * The data from the session-files get cached in $_SESSION['egw_files_session_cache'] |
33 | 33 | * |
34 | 34 | * @param int $start |
35 | - * @param string $sort='session_dla' session_lid, session_id, session_started, session_logintime, session_action, or (default) session_dla |
|
36 | - * @param string $order='DESC' ASC or DESC |
|
37 | - * @param boolean $all_no_sort=False skip sorting and limiting to maxmatchs if set to true |
|
35 | + * @param boolean $all_no_sort skip sorting and limiting to maxmatchs if set to true |
|
38 | 36 | * @return array with sessions (values for keys as in $sort) or array() if not supported by session-handler |
39 | 37 | */ |
40 | 38 | public static function session_list($start,$sort='DESC',$order='session_dla',$all_no_sort=False) |
@@ -109,7 +109,7 @@ |
||
109 | 109 | * with a fatal error! |
110 | 110 | * |
111 | 111 | * @param string $id |
112 | - * @return string|boolean false on error, '' for not found session otherwise session data |
|
112 | + * @return false|string false on error, '' for not found session otherwise session data |
|
113 | 113 | */ |
114 | 114 | public static function read($id) |
115 | 115 | { |
@@ -98,7 +98,6 @@ discard block |
||
98 | 98 | /** |
99 | 99 | * Protected constructor called via self::create_session |
100 | 100 | * |
101 | - * @param string $token |
|
102 | 101 | * @param array $share |
103 | 102 | */ |
104 | 103 | protected function __construct(array $share) |
@@ -109,6 +108,7 @@ discard block |
||
109 | 108 | |
110 | 109 | /** |
111 | 110 | * Get token from url |
111 | + * @return string |
|
112 | 112 | */ |
113 | 113 | public static function get_token() |
114 | 114 | { |