@@ -110,8 +110,7 @@ discard block |
||
110 | 110 | /** |
111 | 111 | * table editor (and the callback/submit-method too) |
112 | 112 | * |
113 | - * @param array $content=null |
|
114 | - * @param string $msg='' |
|
113 | + * @param array $content |
|
115 | 114 | */ |
116 | 115 | function edit(array $content=null,$msg = '') |
117 | 116 | { |
@@ -390,7 +389,7 @@ discard block |
||
390 | 389 | * @param string $col column name |
391 | 390 | * @param array $index ix or uc array of table-defintion |
392 | 391 | * @param string &$options db specific options |
393 | - * @return True if $col has a single index |
|
392 | + * @return boolean if $col has a single index |
|
394 | 393 | */ |
395 | 394 | function has_single_index($col,$index,&$options) |
396 | 395 | { |
@@ -942,7 +941,7 @@ discard block |
||
942 | 941 | * unsets all keys in an array which have a given value |
943 | 942 | * |
944 | 943 | * @param array &$arr |
945 | - * @param mixed $val value to check against |
|
944 | + * @param mixed $value value to check against |
|
946 | 945 | */ |
947 | 946 | function remove_from_array(&$arr,$value) |
948 | 947 | { |
@@ -1138,6 +1137,7 @@ discard block |
||
1138 | 1137 | /** |
1139 | 1138 | * creates file header |
1140 | 1139 | * |
1140 | + * @param string $app |
|
1141 | 1141 | */ |
1142 | 1142 | function setup_header($app) |
1143 | 1143 | { |
@@ -1039,7 +1039,7 @@ discard block |
||
1039 | 1039 | * |
1040 | 1040 | * @param array &$widget reference into the widget-tree |
1041 | 1041 | * @param array &$cell_content cell array in content |
1042 | - * @param boolean $widget2content=true copy from widget to content or other direction |
|
1042 | + * @param boolean $widget2content copy from widget to content or other direction |
|
1043 | 1043 | */ |
1044 | 1044 | function fix_set_onclick(&$widget,&$cell_content,$widget2content=true) |
1045 | 1045 | { |
@@ -1116,7 +1116,7 @@ discard block |
||
1116 | 1116 | * |
1117 | 1117 | * @param array &$widget reference into the widget-tree |
1118 | 1118 | * @param array &$cell_content cell array in content |
1119 | - * @param boolean $widget2content=true copy from widget to content or other direction |
|
1119 | + * @param boolean $widget2content copy from widget to content or other direction |
|
1120 | 1120 | */ |
1121 | 1121 | function fix_set_onchange(&$widget,&$cell_content,$widget2content=true) |
1122 | 1122 | { |
@@ -1586,7 +1586,6 @@ discard block |
||
1586 | 1586 | * extensions are class-files in $app/inc/class.${name}_widget.inc.php |
1587 | 1587 | * the extensions found will be saved in a class-var and in the session |
1588 | 1588 | * |
1589 | - * @param string $app='etemplate' app to scan |
|
1590 | 1589 | * @return string comma delimited list of new found extensions |
1591 | 1590 | */ |
1592 | 1591 | function scan_for_extensions($app='etemplate') |
@@ -357,8 +357,6 @@ discard block |
||
357 | 357 | * Check if we have not ignored validation errors |
358 | 358 | * |
359 | 359 | * @param string $ignore_validation='' if not empty regular expression for validation-errors to ignore |
360 | - * @param string $cname=null name-prefix, which need to be ignored, default self::$name_vars |
|
361 | - * @return boolean true if there are not ignored validation errors, false otherwise |
|
362 | 360 | */ |
363 | 361 | static function validation_errors($ignore_validation='',$cname=null) |
364 | 362 | { |
@@ -382,7 +380,6 @@ discard block |
||
382 | 380 | * Check if given form-name matches ai ignore-validation rule |
383 | 381 | * |
384 | 382 | * @param string $ignore_validation='' if not empty regular expression for validation-errors to ignore |
385 | - * @param string $cname=null name-prefix, which need to be ignored, default self::$name_vars |
|
386 | 383 | * @param string $cname |
387 | 384 | * @return boolean |
388 | 385 | */ |
@@ -651,8 +648,8 @@ discard block |
||
651 | 648 | * This is to facilitate complex ACL's which denies access on field-level !!! |
652 | 649 | * @param string $cname basename of names for form-elements, means index in $_POST |
653 | 650 | * eg. $cname='cont', element-name = 'name' returned content in $_POST['cont']['name'] |
654 | - * @param string $show_c name/index for name expansion |
|
655 | - * @param string $show_row name/index for name expansion |
|
651 | + * @param integer $show_c name/index for name expansion |
|
652 | + * @param integer $show_row name/index for name expansion |
|
656 | 653 | * @return string the generated HTML |
657 | 654 | */ |
658 | 655 | function show($content,$sel_options='',$readonlys='',$cname='',$show_c=0,$show_row=0) |
@@ -755,8 +752,8 @@ discard block |
||
755 | 752 | * This is to facilitate complex ACL's which denies access on field-level !!! |
756 | 753 | * @param string $cname basename of names for form-elements, means index in $_POST |
757 | 754 | * eg. $cname='cont', element-name = 'name' returned content in $_POST['cont']['name'] |
758 | - * @param string $show_c name/index for name expansion |
|
759 | - * @param string $show_row name/index for name expansion |
|
755 | + * @param integer $show_c name/index for name expansion |
|
756 | + * @param integer $show_row name/index for name expansion |
|
760 | 757 | * @param string $path path in the widget tree |
761 | 758 | * @return string the generated HTML |
762 | 759 | */ |
@@ -2009,8 +2006,6 @@ discard block |
||
2009 | 2006 | * (If no id is directly supplied internally.) |
2010 | 2007 | * |
2011 | 2008 | * @param string $form_name |
2012 | - * @param string $name=null |
|
2013 | - * @param string $id=null |
|
2014 | 2009 | * @return string ' id="..."' or '' if no id found |
2015 | 2010 | */ |
2016 | 2011 | static public function get_id($form_name,$name=null,$id=null) |
@@ -2038,8 +2033,8 @@ discard block |
||
2038 | 2033 | * --> use . as decimal separator for browser supporting html5 input type=number |
2039 | 2034 | * |
2040 | 2035 | * @param int|float|string $number |
2041 | - * @param int $num_decimal_places=2 |
|
2042 | - * @param boolean $readonly=true |
|
2036 | + * @param int $num_decimal_places |
|
2037 | + * @param boolean $readonly |
|
2043 | 2038 | * @return string |
2044 | 2039 | */ |
2045 | 2040 | static public function number_format($number,$num_decimal_places=2,$readonly=true) |
@@ -2067,8 +2062,6 @@ discard block |
||
2067 | 2062 | * |
2068 | 2063 | * @param array $cell |
2069 | 2064 | * @param string $name |
2070 | - * @param array $content=array(); |
|
2071 | - * @return array |
|
2072 | 2065 | */ |
2073 | 2066 | function _sel_options($cell,$name,$content=array()) |
2074 | 2067 | { |
@@ -2236,8 +2229,6 @@ discard block |
||
2236 | 2229 | * @param array $content $_POST[$cname], on return the adjusted content |
2237 | 2230 | * @param array $to_process list of widgets/form-fields to process |
2238 | 2231 | * @param string $cname='' basename of our returnt content (same as in call to show) |
2239 | - * @param string $_type='regular' type of request |
|
2240 | - * @return array with validation errors |
|
2241 | 2232 | */ |
2242 | 2233 | function process_show(&$content,$to_process,$cname='',$_type='regular') |
2243 | 2234 | { |
@@ -2484,7 +2475,7 @@ discard block |
||
2484 | 2475 | * |
2485 | 2476 | * @param string $name (complete) name of the widget causing the error |
2486 | 2477 | * @param string|boolean $error error-message already translated or false to reset all existing error for given name |
2487 | - * @param string $cname=null set it to '', if the name is already a form-name, defaults to self::$name_vars |
|
2478 | + * @param string $cname |
|
2488 | 2479 | */ |
2489 | 2480 | static function set_validation_error($name,$error,$cname=null) |
2490 | 2481 | { |
@@ -493,7 +493,7 @@ discard block |
||
493 | 493 | * Reads an eTemplate from filesystem or DB (not yet supported) |
494 | 494 | * |
495 | 495 | * @param string $name name of the eTemplate or array with the values for all keys |
496 | - * @param string $template_set=null default try template-set from user and if not found "default" |
|
496 | + * @param string $template_set default try template-set from user and if not found "default" |
|
497 | 497 | * @param string $lang language, '' loads the pref. lang of the user, 'default' loads the default one '' in the db |
498 | 498 | * @param int $group id of the (primary) group of the user or 0 for none, not used at the moment !!! |
499 | 499 | * @param string $version version of the eTemplate |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | * disables all cells with name == $name |
573 | 573 | * |
574 | 574 | * @param sting $name cell-name |
575 | - * @param boolean $disabled=true disable or enable a cell, default true=disable |
|
575 | + * @param boolean $disabled disable or enable a cell, default true=disable |
|
576 | 576 | * @return reference to attribute |
577 | 577 | * @deprecated use disableElement($name, $disabled=true) |
578 | 578 | */ |
@@ -590,7 +590,7 @@ discard block |
||
590 | 590 | * |
591 | 591 | * @param array $old |
592 | 592 | * @param array $new |
593 | - * @return array the merged array |
|
593 | + * @return string the merged array |
|
594 | 594 | */ |
595 | 595 | public static function complete_array_merge($old,$new) |
596 | 596 | { |
@@ -618,7 +618,7 @@ discard block |
||
618 | 618 | /** |
619 | 619 | * Debug callback just outputting content |
620 | 620 | * |
621 | - * @param array $content=null |
|
621 | + * @param array $content |
|
622 | 622 | */ |
623 | 623 | public function debug(array $content=null) |
624 | 624 | { |
@@ -650,8 +650,8 @@ discard block |
||
650 | 650 | * Format a number according to user prefs with decimal and thousands separator (later only for readonly) |
651 | 651 | * |
652 | 652 | * @param int|float|string $number |
653 | - * @param int $num_decimal_places=2 |
|
654 | - * @param boolean $readonly=true |
|
653 | + * @param int $num_decimal_places |
|
654 | + * @param boolean $readonly |
|
655 | 655 | * @return string |
656 | 656 | */ |
657 | 657 | static public function number_format($number,$num_decimal_places=2,$readonly=true) |
@@ -131,7 +131,6 @@ discard block |
||
131 | 131 | * over etemplate_request_session, which stores the data in the session (and causing |
132 | 132 | * the sesison to constantly grow). |
133 | 133 | * |
134 | - * @param string $id=null |
|
135 | 134 | * @return etemplate_request |
136 | 135 | */ |
137 | 136 | public static function read($id=null) |
@@ -211,7 +210,6 @@ discard block |
||
211 | 210 | /** |
212 | 211 | * Private constructor to force the instancation of this class only via it's static factory method read |
213 | 212 | * |
214 | - * @param string $id=null |
|
215 | 213 | */ |
216 | 214 | private function __construct($id=null) |
217 | 215 | { |
@@ -254,7 +252,6 @@ discard block |
||
254 | 252 | * |
255 | 253 | * @param string $form_name form-name |
256 | 254 | * @param string $type etemplate type |
257 | - * @param array $data=array() optional extra data |
|
258 | 255 | */ |
259 | 256 | public function set_to_process($form_name,$type,$data=array()) |
260 | 257 | { |
@@ -276,7 +273,7 @@ discard block |
||
276 | 273 | * @param string $form_name form-name |
277 | 274 | * @param string $attribute etemplate type |
278 | 275 | * @param array $value |
279 | - * @param boolean $add_to_array=false should $value be added to the attribute array |
|
276 | + * @param boolean $add_to_array should $value be added to the attribute array |
|
280 | 277 | */ |
281 | 278 | public function set_to_process_attribute($form_name,$attribute,$value,$add_to_array=false) |
282 | 279 | { |
@@ -312,7 +309,7 @@ discard block |
||
312 | 309 | /** |
313 | 310 | * return the data of a form-var to process or the whole array |
314 | 311 | * |
315 | - * @param string $form_name=null |
|
312 | + * @param string $form_name |
|
316 | 313 | * @return array |
317 | 314 | */ |
318 | 315 | public function get_to_process($form_name=null) |
@@ -417,8 +414,6 @@ discard block |
||
417 | 414 | /** |
418 | 415 | * Check if session encryption is configured, possible and initialise it |
419 | 416 | * |
420 | - * @param string $algo='tripledes' |
|
421 | - * @param string $mode='ecb' |
|
422 | 417 | * @return boolean true if encryption is used, false otherwise |
423 | 418 | */ |
424 | 419 | static public function init_crypt($algo='tripledes',$mode='ecb') |
@@ -77,7 +77,6 @@ |
||
77 | 77 | /** |
78 | 78 | * Factory method to get a new request object or the one for an existing request |
79 | 79 | * |
80 | - * @param string $id=null |
|
81 | 80 | * @return etemplate_request|boolean the object or false if $id is not found |
82 | 81 | */ |
83 | 82 | static function read($id=null) |
@@ -42,7 +42,7 @@ |
||
42 | 42 | * @param array $expand values for keys 'c', 'row', 'c_', 'row_', 'cont' |
43 | 43 | * @param array $content |
44 | 44 | * @param array &$validated=array() validated content |
45 | - * @return boolean true if no validation error, false otherwise |
|
45 | + * @return boolean|null true if no validation error, false otherwise |
|
46 | 46 | */ |
47 | 47 | public function validate($cname, array $expand, array $content, &$validated=array()) |
48 | 48 | { |
@@ -42,7 +42,7 @@ |
||
42 | 42 | * @param array $expand values for keys 'c', 'row', 'c_', 'row_', 'cont' |
43 | 43 | * @param array $content |
44 | 44 | * @param array &$validated=array() validated content |
45 | - * @return boolean true if no validation error, false otherwise |
|
45 | + * @return boolean|null true if no validation error, false otherwise |
|
46 | 46 | */ |
47 | 47 | public function validate($cname, array $expand, array $content, &$validated=array()) |
48 | 48 | { |
@@ -101,7 +101,6 @@ discard block |
||
101 | 101 | /** |
102 | 102 | * Put date in the proper format for sending to client |
103 | 103 | * @param string|int $value |
104 | - * @param string $format |
|
105 | 104 | */ |
106 | 105 | public function format_date($value) |
107 | 106 | { |
@@ -139,7 +138,7 @@ discard block |
||
139 | 138 | * @param array $expand values for keys 'c', 'row', 'c_', 'row_', 'cont' |
140 | 139 | * @param array $content |
141 | 140 | * @param array &$validated=array() validated content |
142 | - * @return boolean true if no validation error, false otherwise |
|
141 | + * @return boolean|null true if no validation error, false otherwise |
|
143 | 142 | */ |
144 | 143 | public function validate($cname, array $expand, array $content, &$validated=array()) |
145 | 144 | { |