@@ -337,8 +337,8 @@ discard block |
||
| 337 | 337 | * @param string|array $select Champs sélectionnés |
| 338 | 338 | * @param string|array $from Tables sélectionnées |
| 339 | 339 | * @param string|array $where Contraintes |
| 340 | - * @param string|array $groupby Regroupements |
|
| 341 | - * @param string|array $orderby Tris |
|
| 340 | + * @param string $groupby Regroupements |
|
| 341 | + * @param string $orderby Tris |
|
| 342 | 342 | * @param string $limit Limites de résultats |
| 343 | 343 | * @param string|array $having Contraintes posts sélections |
| 344 | 344 | * @param string $serveur Nom de la connexion |
@@ -970,7 +970,7 @@ discard block |
||
| 970 | 970 | * @param int $row_number Position. Déplacer le pointeur à cette ligne |
| 971 | 971 | * @param string $serveur Nom de la connexion |
| 972 | 972 | * @param bool $requeter Inutilisé |
| 973 | - * @return bool True si déplacement réussi, false sinon. |
|
| 973 | + * @return boolean|null True si déplacement réussi, false sinon. |
|
| 974 | 974 | **/ |
| 975 | 975 | function spip_mysql_seek($r, $row_number, $serveur = '', $requeter = true) { |
| 976 | 976 | if ($r and mysqli_num_rows($r)) { |
@@ -319,7 +319,7 @@ |
||
| 319 | 319 | /** |
| 320 | 320 | * Constructeur |
| 321 | 321 | * |
| 322 | - * @param array $process ? |
|
| 322 | + * @param boolean $process ? |
|
| 323 | 323 | **/ |
| 324 | 324 | public function __construct($process = array()) { |
| 325 | 325 | if (is_array($process)) { |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | * @param int $id_rubrique |
| 161 | 161 | * Identifiant de la rubrique parente |
| 162 | 162 | * @param array|null $set |
| 163 | - * @return int |
|
| 163 | + * @return boolean|string |
|
| 164 | 164 | * Identifiant du nouvel article |
| 165 | 165 | * |
| 166 | 166 | */ |
@@ -533,7 +533,7 @@ discard block |
||
| 533 | 533 | * |
| 534 | 534 | * @param int $id_rubrique |
| 535 | 535 | * Identifiant de la rubrique |
| 536 | - * @return int |
|
| 536 | + * @return boolean|string |
|
| 537 | 537 | * Identifiant du nouvel article |
| 538 | 538 | */ |
| 539 | 539 | function insert_article($id_rubrique) { |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | * the constructor |
| 89 | 89 | * |
| 90 | 90 | * @param array $options |
| 91 | - * @return boolean |
|
| 91 | + * @return boolean|null |
|
| 92 | 92 | * @since 0.5.2 |
| 93 | 93 | */ |
| 94 | 94 | public function __construct($options = false) |
@@ -393,7 +393,7 @@ discard block |
||
| 393 | 393 | /** |
| 394 | 394 | * Use this method to get the last error ocurred |
| 395 | 395 | * @param void |
| 396 | - * @return string The last error, that occured |
|
| 396 | + * @return boolean The last error, that occured |
|
| 397 | 397 | */ |
| 398 | 398 | public function get_last_error() |
| 399 | 399 | { |
@@ -403,7 +403,7 @@ discard block |
||
| 403 | 403 | /** |
| 404 | 404 | * The actual decoding algorithm |
| 405 | 405 | * @param string |
| 406 | - * @return mixed |
|
| 406 | + * @return false|string |
|
| 407 | 407 | */ |
| 408 | 408 | protected function _decode($encoded) |
| 409 | 409 | { |
@@ -464,7 +464,7 @@ discard block |
||
| 464 | 464 | /** |
| 465 | 465 | * The actual encoding algorithm |
| 466 | 466 | * @param string |
| 467 | - * @return mixed |
|
| 467 | + * @return false|string |
|
| 468 | 468 | */ |
| 469 | 469 | protected function _encode($decoded) |
| 470 | 470 | { |
@@ -699,7 +699,7 @@ discard block |
||
| 699 | 699 | * Decomposes a Hangul syllable |
| 700 | 700 | * (see http://www.unicode.org/unicode/reports/tr15/#Hangul |
| 701 | 701 | * @param integer 32bit UCS4 code point |
| 702 | - * @return array Either Hangul Syllable decomposed or original 32bit value as one value array |
|
| 702 | + * @return integer[] Either Hangul Syllable decomposed or original 32bit value as one value array |
|
| 703 | 703 | */ |
| 704 | 704 | protected function _hangul_decompose($char) |
| 705 | 705 | { |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | * @param string|null $source |
| 86 | 86 | * D'où provient l'auteur créé ? par défaut 'spip', mais peut être 'ldap' ou autre. |
| 87 | 87 | * @param array|null $set |
| 88 | - * @return int |
|
| 88 | + * @return boolean|string |
|
| 89 | 89 | * Identifiant de l'auteur créé |
| 90 | 90 | */ |
| 91 | 91 | function auteur_inserer($source = null, $set = null) { |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | * @param bool $force_update |
| 141 | 141 | * Permet de forcer la maj en base des champs fournis, sans passer par instancier. |
| 142 | 142 | * Utilise par auth/spip |
| 143 | - * @return string|null |
|
| 143 | + * @return string|false |
|
| 144 | 144 | * |
| 145 | 145 | * - Chaîne vide si aucune erreur, |
| 146 | 146 | * - Chaîne contenant un texte d'erreur sinon. |
@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | * Couples (colonne => valeur) des données à instituer |
| 305 | 305 | * @param bool $force_webmestre |
| 306 | 306 | * Autoriser un auteur à passer webmestre (force l'autorisation) |
| 307 | - * @return bool|string |
|
| 307 | + * @return false|string |
|
| 308 | 308 | */ |
| 309 | 309 | function auteur_instituer($id_auteur, $c, $force_webmestre = false) { |
| 310 | 310 | if (!$id_auteur = intval($id_auteur)) { |
@@ -449,7 +449,7 @@ discard block |
||
| 449 | 449 | * @see auteur_inserer() |
| 450 | 450 | * |
| 451 | 451 | * @param string|null $source |
| 452 | - * @return int |
|
| 452 | + * @return boolean|string |
|
| 453 | 453 | */ |
| 454 | 454 | function insert_auteur($source = null) { |
| 455 | 455 | return auteur_inserer($source); |
@@ -463,7 +463,7 @@ discard block |
||
| 463 | 463 | * |
| 464 | 464 | * @param int $id_auteur |
| 465 | 465 | * @param array|null $set |
| 466 | - * @return string|null |
|
| 466 | + * @return string|false |
|
| 467 | 467 | */ |
| 468 | 468 | function auteurs_set($id_auteur, $set = null) { |
| 469 | 469 | return auteur_modifier($id_auteur, $set); |
@@ -478,7 +478,7 @@ discard block |
||
| 478 | 478 | * @param int $id_auteur |
| 479 | 479 | * @param array $c |
| 480 | 480 | * @param bool $force_webmestre |
| 481 | - * @return bool|string |
|
| 481 | + * @return false|string |
|
| 482 | 482 | */ |
| 483 | 483 | function instituer_auteur($id_auteur, $c, $force_webmestre = false) { |
| 484 | 484 | return auteur_instituer($id_auteur, $c, $force_webmestre); |
@@ -492,7 +492,7 @@ discard block |
||
| 492 | 492 | * |
| 493 | 493 | * @param int $id_auteur |
| 494 | 494 | * @param array $c |
| 495 | - * @return string|null |
|
| 495 | + * @return string|false |
|
| 496 | 496 | */ |
| 497 | 497 | function revision_auteur($id_auteur, $c = false) { |
| 498 | 498 | return auteur_modifier($id_auteur, $c); |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | * Identifiant de la rubrique parente. |
| 74 | 74 | * 0 pour la racine. |
| 75 | 75 | * @param array|null $set |
| 76 | - * @return int |
|
| 76 | + * @return boolean|string |
|
| 77 | 77 | * Identifiant de la rubrique crée |
| 78 | 78 | */ |
| 79 | 79 | function rubrique_inserer($id_parent, $set = null) { |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | * Identifiant de la rubrique modifiée |
| 121 | 121 | * @param array|null $set |
| 122 | 122 | * Tableau qu'on peut proposer en lieu et place de _request() |
| 123 | - * @return bool|string |
|
| 123 | + * @return string|false |
|
| 124 | 124 | * - false : Aucune modification, aucun champ n'est à modifier |
| 125 | 125 | * - chaîne vide : Vide si tout s'est bien passé |
| 126 | 126 | * - chaîne : Texte d'un message d'erreur |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | * @param int $id_parent |
| 278 | 278 | * Identifiant de la rubrique parente. |
| 279 | 279 | * 0 pour la racine. |
| 280 | - * @return int |
|
| 280 | + * @return boolean|string |
|
| 281 | 281 | * Identifiant de la rubrique crée |
| 282 | 282 | **/ |
| 283 | 283 | function insert_rubrique($id_parent) { |
@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | * Identifiant de la rubrique à instituer |
| 297 | 297 | * @param array|null $set |
| 298 | 298 | * Tableau qu'on peut proposer en lieu et place de _request() |
| 299 | - * @return bool|string |
|
| 299 | + * @return string|false |
|
| 300 | 300 | * - false : Aucune modification, aucun champ n'est à modifier |
| 301 | 301 | * - chaîne vide : Vide si tout s'est bien passé |
| 302 | 302 | * - chaîne : Texte d'un message d'erreur |
@@ -369,7 +369,7 @@ |
||
| 369 | 369 | * Effacer le jeton d'un auteur apres utilisation |
| 370 | 370 | * |
| 371 | 371 | * @param int $id_auteur |
| 372 | - * @return bool |
|
| 372 | + * @return boolean|string |
|
| 373 | 373 | */ |
| 374 | 374 | function auteur_effacer_jeton($id_auteur) { |
| 375 | 375 | return sql_updateq("spip_auteurs", array("cookie_oubli" => ''), "id_auteur=" . intval($id_auteur)); |
@@ -314,7 +314,7 @@ |
||
| 314 | 314 | * @param $new_pass |
| 315 | 315 | * @param $id_auteur |
| 316 | 316 | * @param string $serveur |
| 317 | - * @return bool |
|
| 317 | + * @return string|boolean |
|
| 318 | 318 | * Informe du succès ou de l'echec du changement du mot de passe |
| 319 | 319 | */ |
| 320 | 320 | function auth_ldap_modifier_pass($login, $new_pass, $id_auteur, $serveur = '') { |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | * @see trouver_fond() |
| 61 | 61 | * @param string $form |
| 62 | 62 | * Nom du formulaire |
| 63 | - * @return string|bool |
|
| 63 | + * @return string|false |
|
| 64 | 64 | * - string : chemin du squelette |
| 65 | 65 | * - false : pas de squelette trouvé |
| 66 | 66 | **/ |