@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | * @param string $message Message of dialog box |
315 | 315 | * @param int $w Width of dialog box |
316 | 316 | * @param int $h height of dialog box |
317 | - * @return void |
|
317 | + * @return string |
|
318 | 318 | */ |
319 | 319 | function ajax_dialog($title,$message,$w=350,$h=150) |
320 | 320 | { |
@@ -441,7 +441,7 @@ discard block |
||
441 | 441 | * @param array $input Array of type->list of CSS element to switch. Example: array('disabled'=>array(0=>'cssid')) |
442 | 442 | * @param int $entity Entity to set |
443 | 443 | * @param int $revertonoff Revert on/off |
444 | - * @param bool $strict Use only "disabled" with delConstant and "enabled" with setConstant |
|
444 | + * @param integer $strict Use only "disabled" with delConstant and "enabled" with setConstant |
|
445 | 445 | * @return string |
446 | 446 | */ |
447 | 447 | function ajax_constantonoff($code, $input=array(), $entity=null, $revertonoff=0, $strict=0) |
@@ -510,7 +510,7 @@ discard block |
||
510 | 510 | * @param string $text_on Text if on |
511 | 511 | * @param string $text_off Text if off |
512 | 512 | * @param array $input Array of type->list of CSS element to switch. Example: array('disabled'=>array(0=>'cssid')) |
513 | - * @return void |
|
513 | + * @return string |
|
514 | 514 | */ |
515 | 515 | function ajax_object_onoff($object, $code, $field, $text_on, $text_off, $input=array()) |
516 | 516 | { |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | /** |
28 | 28 | * Return an array with timezone values |
29 | 29 | * |
30 | - * @return array Array with timezone values |
|
30 | + * @return string[] Array with timezone values |
|
31 | 31 | */ |
32 | 32 | function get_tz_array() |
33 | 33 | { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * Return server timezone int. |
77 | 77 | * |
78 | 78 | * @param string $refgmtdate Reference period for timezone (timezone differs on winter and summer. May be 'now', 'winter' or 'summer') |
79 | - * @return int An offset in hour (+1 for Europe/Paris on winter and +2 for Europe/Paris on summer) |
|
79 | + * @return double An offset in hour (+1 for Europe/Paris on winter and +2 for Europe/Paris on summer) |
|
80 | 80 | */ |
81 | 81 | function getServerTimeZoneInt($refgmtdate='now') |
82 | 82 | { |
@@ -419,7 +419,7 @@ discard block |
||
419 | 419 | * |
420 | 420 | * @param int $year Year |
421 | 421 | * @param int $month Month |
422 | - * @param mixed $gm False or 0 or 'server' = Return date to compare with server TZ, True or 1 to compare with GM date. |
|
422 | + * @param boolean $gm False or 0 or 'server' = Return date to compare with server TZ, True or 1 to compare with GM date. |
|
423 | 423 | * Exemple: dol_get_first_day(1970,1,false) will return -3600 with TZ+1, after a dol_print_date will return 1970-01-01 00:00:00 |
424 | 424 | * Exemple: dol_get_first_day(1970,1,true) will return 0 whatever is TZ, after a dol_print_date will return 1970-01-01 00:00:00 |
425 | 425 | * @return int Date for first day, '' if error |
@@ -464,7 +464,7 @@ discard block |
||
464 | 464 | * @param int $month Month |
465 | 465 | * @param int $year Year |
466 | 466 | * @param int $gm False or 0 or 'server' = Return date to compare with server TZ, True or 1 to compare with GM date. |
467 | - * @return array year,month,week,first_day,first_month,first_year,prev_day,prev_month,prev_year |
|
467 | + * @return integer year,month,week,first_day,first_month,first_year,prev_day,prev_month,prev_year |
|
468 | 468 | */ |
469 | 469 | function dol_get_first_day_week($day,$month,$year,$gm=false) |
470 | 470 | { |
@@ -797,7 +797,7 @@ discard block |
||
797 | 797 | * |
798 | 798 | * @param Translate $outputlangs Object langs |
799 | 799 | * @param int $short 1=Return short label |
800 | - * @return array Month string or array if selected < 0 |
|
800 | + * @return string[] Month string or array if selected < 0 |
|
801 | 801 | */ |
802 | 802 | function monthArray($outputlangs,$short=0) |
803 | 803 | { |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | * @param int $projectsListId List of id of project allowed to user (string separated with comma) |
270 | 270 | * @param int $addordertick Add a tick to move task |
271 | 271 | * @param int $projectidfortotallink 0 or Id of project to use on total line (link to see all time consumed for project) |
272 | - * @return void |
|
272 | + * @return string |
|
273 | 273 | */ |
274 | 274 | function projectLinesa(&$inc, $parent, &$lines, &$level, $var, $showproject, &$taskrole, $projectsListId='', $addordertick=0, $projectidfortotallink=0) |
275 | 275 | { |
@@ -865,7 +865,7 @@ discard block |
||
865 | 865 | * @param int $parent Id of parent task to start |
866 | 866 | * @param array $lines Array of all tasks |
867 | 867 | * @param string $taskrole Array of task filtered on a particular user |
868 | - * @return int 1 if there is |
|
868 | + * @return string 1 if there is |
|
869 | 869 | */ |
870 | 870 | function searchTaskInChild(&$inc, $parent, &$lines, &$taskrole) |
871 | 871 | { |
@@ -104,7 +104,7 @@ |
||
104 | 104 | * Return an example of result returned by getNextValue |
105 | 105 | * |
106 | 106 | * @param Translate $langs Object langs |
107 | - * @param Product $objproduct Object product |
|
107 | + * @param integer $objproduct Object product |
|
108 | 108 | * @return string Return string example |
109 | 109 | */ |
110 | 110 | function getExample($langs,$objproduct=0) |
@@ -96,7 +96,7 @@ |
||
96 | 96 | * Return next free value |
97 | 97 | * |
98 | 98 | * @param Societe $objsoc Object thirdparty |
99 | - * @param Object $object Object we need next value for |
|
99 | + * @param string $object Object we need next value for |
|
100 | 100 | * @return string Value if KO, <0 if KO |
101 | 101 | */ |
102 | 102 | function getNextValue($objsoc,$object) |
@@ -100,7 +100,7 @@ |
||
100 | 100 | * Return next free value |
101 | 101 | * |
102 | 102 | * @param Societe $objsoc Object thirdparty |
103 | - * @param Object $object Object we need next value for |
|
103 | + * @param string $object Object we need next value for |
|
104 | 104 | * @return string Value if KO, <0 if KO |
105 | 105 | */ |
106 | 106 | function getNextValue($objsoc,$object) |
@@ -43,7 +43,7 @@ |
||
43 | 43 | /** |
44 | 44 | * Constructor |
45 | 45 | * |
46 | - * @param DoliDB $db Database handler |
|
46 | + * @param integer $db Database handler |
|
47 | 47 | */ |
48 | 48 | function __construct($db=0) |
49 | 49 | { |
@@ -41,7 +41,7 @@ |
||
41 | 41 | /** |
42 | 42 | * Constructor |
43 | 43 | * |
44 | - * @param DoliDB $db Database handler |
|
44 | + * @param integer $db Database handler |
|
45 | 45 | */ |
46 | 46 | function __construct($db=0) |
47 | 47 | { |
@@ -101,7 +101,7 @@ |
||
101 | 101 | /** |
102 | 102 | * Return next free value |
103 | 103 | * |
104 | - * @param Societe $objsoc Object thirdparty |
|
104 | + * @param integer $objsoc Object thirdparty |
|
105 | 105 | * @param Object $object Object we need next value for |
106 | 106 | * @return string Value if KO, <0 if KO |
107 | 107 | */ |