@@ -704,7 +704,7 @@ discard block |
||
704 | 704 | * |
705 | 705 | * @param array $_fields |
706 | 706 | * @param boolean $merge =true if true $fields will be merged with $this->data (after update!), otherwise $this->data will be just $fields |
707 | - * @return int|boolean 0 on success, or errno != 0 on error, or true if $extra_where is given and no rows affected |
|
707 | + * @return integer 0 on success, or errno != 0 on error, or true if $extra_where is given and no rows affected |
|
708 | 708 | */ |
709 | 709 | function update($_fields,$merge=true) |
710 | 710 | { |
@@ -1194,7 +1194,7 @@ discard block |
||
1194 | 1194 | * @param string &$wildcard ='' on return wildcard char to use, if pattern does not already contain wildcards! |
1195 | 1195 | * @param string &$op ='AND' on return boolean operation to use, if pattern does not start with ! we use OR else AND |
1196 | 1196 | * @param string $extra_col =null extra column to search |
1197 | - * @param array $search_cols =array() List of columns to search. If not provided, all columns in $this->db_cols will be considered |
|
1197 | + * @param string[] $search_cols =array() List of columns to search. If not provided, all columns in $this->db_cols will be considered |
|
1198 | 1198 | * @return array or column => value pairs |
1199 | 1199 | */ |
1200 | 1200 | public function search2criteria($_pattern,&$wildcard='',&$op='AND',$extra_col=null, $search_cols = array()) |
@@ -48,7 +48,7 @@ |
||
48 | 48 | * @param string $table should be set if table-defs to be read from <app>/setup/tables_current.inc.php |
49 | 49 | * @param object/db $db database object, if not the one in $GLOBALS['egw']->db should be used, eg. for an other database |
50 | 50 | * @param string $colum_prefix='' column prefix to automatic remove from the column-name, if the column name starts with it |
51 | - * @param boolean $no_clone=false can we avoid to clone the db-object, default no |
|
51 | + * @param boolean $no_clone can we avoid to clone the db-object, default no |
|
52 | 52 | * new code using appnames and foreach(select(...,$app) can set it to avoid an extra instance of the db object |
53 | 53 | * |
54 | 54 | * @return so_sql2 |
@@ -366,7 +366,7 @@ discard block |
||
366 | 366 | * @param string $join ='' sql to do a join, added as is after the table-name, eg. ", table2 WHERE x=y" or |
367 | 367 | * "LEFT JOIN table2 ON (x=y)", Note: there's no quoting done on $join! |
368 | 368 | * @param boolean $need_full_no_count =false If true an unlimited query is run to determine the total number of rows, default false |
369 | - * @param mixed $only_keys =false, see search |
|
369 | + * @param boolean $only_keys =false, see search |
|
370 | 370 | * @param string|array $extra_cols =array() |
371 | 371 | * @return int total number of rows |
372 | 372 | */ |
@@ -734,7 +734,7 @@ discard block |
||
734 | 734 | * Check if cf is stored as 1:N relation in DB and array in memory |
735 | 735 | * |
736 | 736 | * @param string $name |
737 | - * @return string |
|
737 | + * @return boolean |
|
738 | 738 | */ |
739 | 739 | function is_multiple($name) |
740 | 740 | { |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | * |
162 | 162 | * @param string $type type of the widget |
163 | 163 | * @param string $name name of widget |
164 | - * @param array $attributes=null array with further attributes |
|
164 | + * @param array $attributes array with further attributes |
|
165 | 165 | * @return array the cell |
166 | 166 | */ |
167 | 167 | static function empty_cell($type='label',$name='',$attributes=null) |
@@ -685,7 +685,7 @@ discard block |
||
685 | 685 | * Calls it self recursivly for arrays / the rows |
686 | 686 | * |
687 | 687 | * @param array $arr the array to compress |
688 | - * @param boolean $remove_all_objs if true unset all objs, on false use as_array to save only the data of objs |
|
688 | + * @param boolean $remove_objs if true unset all objs, on false use as_array to save only the data of objs |
|
689 | 689 | * @return array |
690 | 690 | */ |
691 | 691 | function compress_array($arr,$remove_objs=false) |
@@ -1102,9 +1102,8 @@ discard block |
||
1102 | 1102 | * |
1103 | 1103 | * Please note: as call_user_func_array does not return references, methods ($func is an array) can not either!!! |
1104 | 1104 | * |
1105 | - * @param string/array $func function to use or array($obj,'method') |
|
1105 | + * @param callable $func function to use or array($obj,'method') |
|
1106 | 1106 | * @param mixed &$extra extra parameter passed to function |
1107 | - * @param string $path='/' start-path |
|
1108 | 1107 | * @return mixed return-value of func or null if nothing returned at all |
1109 | 1108 | */ |
1110 | 1109 | function &widget_tree_walk($func,&$extra,$path='/') |
@@ -1146,7 +1145,7 @@ discard block |
||
1146 | 1145 | * a further widget with children. |
1147 | 1146 | * |
1148 | 1147 | * @param array $widget the widget(-tree) the function should be applied too |
1149 | - * @param string/array $func function to use or array($obj,'method') |
|
1148 | + * @param callable $func function to use or array($obj,'method') |
|
1150 | 1149 | * @param mixed &$extra extra parameter passed to function |
1151 | 1150 | * @param string $path path of widget in the widget-tree |
1152 | 1151 | * @return mixed return-value of func or null if nothing returned at all |
@@ -85,6 +85,9 @@ discard block |
||
85 | 85 | } |
86 | 86 | } |
87 | 87 | |
88 | + /** |
|
89 | + * @param string $fname |
|
90 | + */ |
|
88 | 91 | function special_file($app,$fname,$langs_in) |
89 | 92 | { |
90 | 93 | //echo "<p>solangfile::special_file(app='$app',fname='$fname',langs_in='$langs_in')</p>\n"; |
@@ -183,6 +186,9 @@ discard block |
||
183 | 186 | } |
184 | 187 | } |
185 | 188 | |
189 | + /** |
|
190 | + * @param string $fd |
|
191 | + */ |
|
186 | 192 | function parse_php_app($app,$fd) |
187 | 193 | { |
188 | 194 | $reg_expr = '/('.implode('|',array_keys($this->functions)).")[ \t]*\([ \t]*(.*)$/i"; |
@@ -275,6 +281,10 @@ discard block |
||
275 | 281 | $d->close(); |
276 | 282 | } |
277 | 283 | |
284 | + /** |
|
285 | + * @param string $app |
|
286 | + * @param string $userlang |
|
287 | + */ |
|
278 | 288 | function missing_app($app,$userlang=en) |
279 | 289 | { |
280 | 290 | $cur_lang=$this->load_app($app,$userlang); |
@@ -421,6 +431,9 @@ discard block |
||
421 | 431 | } |
422 | 432 | if (!function_exists('display_section') && $_GET['menuaction'] == 'developer_tools.uilangfile.missingphrase') |
423 | 433 | { |
434 | + /** |
|
435 | + * @param string $appname |
|
436 | + */ |
|
424 | 437 | function display_section($appname,$file,$file2='') // hook_preferences, hook_admin |
425 | 438 | { |
426 | 439 | if (is_array($file2)) |
@@ -55,7 +55,6 @@ |
||
55 | 55 | * |
56 | 56 | * This function is called before the extension gets rendered |
57 | 57 | * |
58 | - * @param string $name form-name of the control |
|
59 | 58 | * @param mixed &$value value / existing content, can be modified |
60 | 59 | * @param array &$cell array with the widget, can be modified for ui-independent widgets |
61 | 60 | * @param array &$readonlys names of widgets as key, to be made readonly |
@@ -484,6 +484,9 @@ discard block |
||
484 | 484 | return str_replace(array('[',']','&','"'),array('%5B','%5D','&','"'),$id); |
485 | 485 | } |
486 | 486 | |
487 | + /** |
|
488 | + * @return string |
|
489 | + */ |
|
487 | 490 | function recode_id($id) |
488 | 491 | { |
489 | 492 | if (get_magic_quotes_gpc()) |
@@ -493,6 +496,9 @@ discard block |
||
493 | 496 | return str_replace(array('%5B','%5D'),array('[',']'),$id); // & + " are recode by php |
494 | 497 | } |
495 | 498 | |
499 | + /** |
|
500 | + * @param string $which |
|
501 | + */ |
|
496 | 502 | function download($which,$userlang) |
497 | 503 | { |
498 | 504 | switch ($which) |
@@ -230,7 +230,7 @@ |
||
230 | 230 | * replaces '%1' with the phonenumber to call, '%u' with the user's account_lid and '%t' with his work-phone-number |
231 | 231 | * |
232 | 232 | * @param string $number phone number |
233 | - * @return string|boolean string with link or false if no no telephony integration configured |
|
233 | + * @return false|string string with link or false if no no telephony integration configured |
|
234 | 234 | */ |
235 | 235 | static function phone2link($number) |
236 | 236 | { |
@@ -368,7 +368,6 @@ discard block |
||
368 | 368 | * @param mixed &$value |
369 | 369 | * @param string $path vfs path of download |
370 | 370 | * @param string $name name of widget |
371 | - * @param string $label=null label, if not set basename($path) is used |
|
372 | 371 | * @return array |
373 | 372 | */ |
374 | 373 | static function file_widget(&$value,$path,$name,$label=null) |
@@ -404,7 +403,7 @@ discard block |
||
404 | 403 | * If you rename a file, you have to clear the cache ($clear_after=true)! |
405 | 404 | * |
406 | 405 | * @param string &$path on call path without extension, if existing on return full path incl. extension |
407 | - * @param boolean $clear_after=null clear file-cache after (true) or before (false), default dont clear |
|
406 | + * @param boolean $clear_after clear file-cache after (true) or before (false), default dont clear |
|
408 | 407 | * @return |
409 | 408 | */ |
410 | 409 | static function file_exists(&$path,$clear_after=null) |