@@ -45,7 +45,7 @@ |
||
45 | 45 | * |
46 | 46 | * @param DoliDB $db Database handler |
47 | 47 | * @param int $socid Id third party |
48 | - * @param mixed $userid Id user for filter or array of user ids |
|
48 | + * @param integer $userid Id user for filter or array of user ids |
|
49 | 49 | * @return void |
50 | 50 | */ |
51 | 51 | function __construct($db, $socid=0, $userid=0) |
@@ -1285,7 +1285,7 @@ discard block |
||
1285 | 1285 | * @param int $info_bits Bits de type de lignes |
1286 | 1286 | * @param int $fk_fournprice Fourn price id |
1287 | 1287 | * @param int $pa_ht Buying price HT |
1288 | - * @param array $array_options extrafields array |
|
1288 | + * @param integer $array_options extrafields array |
|
1289 | 1289 | * @param string $fk_unit Code of the unit to use. Null to use the default one |
1290 | 1290 | * @return int <0 si erreur, >0 si ok |
1291 | 1291 | */ |
@@ -1474,7 +1474,7 @@ discard block |
||
1474 | 1474 | * @param int $info_bits Bits de type de lignes |
1475 | 1475 | * @param int $fk_fournprice Fourn price id |
1476 | 1476 | * @param int $pa_ht Buying price HT |
1477 | - * @param array $array_options extrafields array |
|
1477 | + * @param integer $array_options extrafields array |
|
1478 | 1478 | * @param string $fk_unit Code of the unit to use. Null to use the default one |
1479 | 1479 | * @return int < 0 si erreur, > 0 si ok |
1480 | 1480 | */ |
@@ -50,7 +50,7 @@ |
||
50 | 50 | * @param string $htmlname Nom de la zone html |
51 | 51 | * @param int $maxlength Maximum length of label |
52 | 52 | * @param int $showempty Show empty line |
53 | - * @return int Nbre of project if OK, <0 if KO |
|
53 | + * @return string Nbre of project if OK, <0 if KO |
|
54 | 54 | */ |
55 | 55 | function select_interventions($socid=-1, $selected='', $htmlname='interventionid', $maxlength=16, $showempty=1) |
56 | 56 | { |
@@ -51,7 +51,7 @@ |
||
51 | 51 | * |
52 | 52 | * @param CommonObject $object Object we want to get margin information for |
53 | 53 | * @param boolean $force_price True of not |
54 | - * @return array Array with info |
|
54 | + * @return integer Array with info |
|
55 | 55 | */ |
56 | 56 | function getMarginInfosArray($object, $force_price=false) |
57 | 57 | { |
@@ -95,7 +95,7 @@ |
||
95 | 95 | /** |
96 | 96 | * Return last error code |
97 | 97 | * |
98 | - * @return string lasterrno |
|
98 | + * @return integer lasterrno |
|
99 | 99 | */ |
100 | 100 | function lasterrno() |
101 | 101 | { |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | * @param int $usesavepoint 0=Default mode, 1=Run a savepoint before and a rollbock to savepoint if error (this allow to have some request with errors inside global transactions). |
320 | 320 | * Note that with Mysql, this parameter is not used as Myssql can already commit a transaction even if one request is in error, without using savepoints. |
321 | 321 | * @param string $type Type of SQL order ('ddl' for insert, update, select, delete or 'dml' for create, alter...) |
322 | - * @return false|resource|true Resultset of answer |
|
322 | + * @return resource Resultset of answer |
|
323 | 323 | */ |
324 | 324 | function query($query,$usesavepoint=0,$type='auto') |
325 | 325 | { |
@@ -516,7 +516,7 @@ discard block |
||
516 | 516 | * Renvoie le nombre de lignes dans le resultat d'une requete INSERT, DELETE ou UPDATE |
517 | 517 | * |
518 | 518 | * @param resource $resultset Curseur de la requete voulue |
519 | - * @return int Nombre de lignes |
|
519 | + * @return string Nombre de lignes |
|
520 | 520 | * @see num_rows |
521 | 521 | */ |
522 | 522 | function affected_rows($resultset) |
@@ -535,7 +535,7 @@ discard block |
||
535 | 535 | * Free last resultset used. |
536 | 536 | * |
537 | 537 | * @param resource $resultset Curseur de la requete voulue |
538 | - * @return bool |
|
538 | + * @return boolean|null |
|
539 | 539 | */ |
540 | 540 | function free($resultset=null) |
541 | 541 | { |
@@ -1015,7 +1015,7 @@ discard block |
||
1015 | 1015 | /** |
1016 | 1016 | * Return list of available charset that can be used to store data in database |
1017 | 1017 | * |
1018 | - * @return array List of Charset |
|
1018 | + * @return string List of Charset |
|
1019 | 1019 | */ |
1020 | 1020 | function getListOfCharacterSet() |
1021 | 1021 | { |
@@ -233,7 +233,7 @@ |
||
233 | 233 | * @param int $usesavepoint 0=Default mode, 1=Run a savepoint before and a rollbock to savepoint if error (this allow to have some request with errors inside global transactions). |
234 | 234 | * Note that with Mysql, this parameter is not used as Myssql can already commit a transaction even if one request is in error, without using savepoints. |
235 | 235 | * @param string $type Type of SQL order ('ddl' for insert, update, select, delete or 'dml' for create, alter...) |
236 | - * @return bool|mysqli_result Resultset of answer |
|
236 | + * @return mysqli_result|null Resultset of answer |
|
237 | 237 | */ |
238 | 238 | function query($query,$usesavepoint=0,$type='auto') |
239 | 239 | { |
@@ -464,7 +464,7 @@ discard block |
||
464 | 464 | * @param string $query SQL query string |
465 | 465 | * @param int $usesavepoint 0=Default mode, 1=Run a savepoint before and a rollback to savepoint if error (this allow to have some request with errors inside global transactions). |
466 | 466 | * @param string $type Type of SQL order ('ddl' for insert, update, select, delete or 'dml' for create, alter...) |
467 | - * @return false|resource Resultset of answer |
|
467 | + * @return resource|null Resultset of answer |
|
468 | 468 | */ |
469 | 469 | function query($query,$usesavepoint=0,$type='auto') |
470 | 470 | { |
@@ -790,7 +790,7 @@ discard block |
||
790 | 790 | * Decrypt sensitive data in database |
791 | 791 | * |
792 | 792 | * @param int $value Value to decrypt |
793 | - * @return string Decrypted value if used |
|
793 | + * @return integer Decrypted value if used |
|
794 | 794 | */ |
795 | 795 | function decrypt($value) |
796 | 796 | { |
@@ -1449,7 +1449,7 @@ |
||
1449 | 1449 | * |
1450 | 1450 | * @param int $daynr ??? |
1451 | 1451 | * @param bool $sunday_first_day_of_week ??? |
1452 | - * @return int |
|
1452 | + * @return double |
|
1453 | 1453 | */ |
1454 | 1454 | private static function calc_weekday($daynr, $sunday_first_day_of_week) { |
1455 | 1455 | $ret = floor(($daynr + 5 + ($sunday_first_day_of_week ? 1 : 0)) % 7); |