@@ -73,6 +73,11 @@ discard block |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | // http://doc.spip.org/@valider_xml_ok |
| 76 | +/** |
|
| 77 | + * @param string $url |
|
| 78 | + * @param string $req_ext |
|
| 79 | + * @param integer $limit |
|
| 80 | + */ |
|
| 76 | 81 | function valider_xml_ok($url, $req_ext, $limit, $rec, $process = true) { |
| 77 | 82 | $url = urldecode($url); |
| 78 | 83 | $rec = !$rec ? false : array(); |
@@ -169,6 +174,9 @@ discard block |
||
| 169 | 174 | } |
| 170 | 175 | |
| 171 | 176 | // http://doc.spip.org/@valider_resultats |
| 177 | +/** |
|
| 178 | + * @param boolean $mode |
|
| 179 | + */ |
|
| 172 | 180 | function valider_resultats($res, $mode) |
| 173 | 181 | { |
| 174 | 182 | include_spip('inc/securiser_action'); |
@@ -343,6 +351,9 @@ discard block |
||
| 343 | 351 | } |
| 344 | 352 | |
| 345 | 353 | // http://doc.spip.org/@valider_dir |
| 354 | +/** |
|
| 355 | + * @param string $dir |
|
| 356 | + */ |
|
| 346 | 357 | function valider_dir($files, $ext, $dir) |
| 347 | 358 | { |
| 348 | 359 | $res = array(); |
@@ -177,6 +177,9 @@ |
||
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | // http://doc.spip.org/@copy_request |
| 180 | +/** |
|
| 181 | + * @param string $suite |
|
| 182 | + */ |
|
| 180 | 183 | function copy_request($script, $suite, $submit='') |
| 181 | 184 | { |
| 182 | 185 | include_spip('inc/filtres'); |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | * @param string $charset |
| 34 | 34 | * Charset à charger |
| 35 | 35 | * Par défaut (AUTO), utilise le charset du site |
| 36 | - * @return string|bool |
|
| 36 | + * @return string|false |
|
| 37 | 37 | * Nom du charset |
| 38 | 38 | * false si le charset n'est pas décrit dans le répertoire charsets/ |
| 39 | 39 | **/ |
@@ -644,7 +644,7 @@ discard block |
||
| 644 | 644 | * |
| 645 | 645 | * @param int $num |
| 646 | 646 | * Numéro de l'entité unicode |
| 647 | - * @return char |
|
| 647 | + * @return string |
|
| 648 | 648 | * Caractère utf8 si trouvé, '' sinon |
| 649 | 649 | **/ |
| 650 | 650 | function caractere_utf_8($num) { |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * Nettoyer les echappements |
| 17 | - * @param $val |
|
| 17 | + * @param string $val |
|
| 18 | 18 | * @return string |
| 19 | 19 | */ |
| 20 | 20 | function autosave_clean_value($val){ |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | * http://doc.spip.org/@get_spip_doc |
| 35 | 35 | * |
| 36 | 36 | * @param string $fichier |
| 37 | - * @return bool|string |
|
| 37 | + * @return string|false |
|
| 38 | 38 | */ |
| 39 | 39 | function get_spip_doc($fichier) { |
| 40 | 40 | // fichier distant |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | * @param string $ext |
| 112 | 112 | * @param string $orig |
| 113 | 113 | * @param string $source |
| 114 | - * @return bool|mixed|string |
|
| 114 | + * @return string|false |
|
| 115 | 115 | */ |
| 116 | 116 | function copier_document($ext, $orig, $source) { |
| 117 | 117 | |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | * http://doc.spip.org/@determine_upload |
| 143 | 143 | * |
| 144 | 144 | * @param string $type |
| 145 | - * @return bool|string |
|
| 145 | + * @return false|string |
|
| 146 | 146 | */ |
| 147 | 147 | function determine_upload($type='') { |
| 148 | 148 | if(!function_exists('autoriser')) |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | * @param string $source |
| 173 | 173 | * @param string $dest |
| 174 | 174 | * @param bool $move |
| 175 | - * @return bool|mixed|string |
|
| 175 | + * @return string|false |
|
| 176 | 176 | */ |
| 177 | 177 | function deplacer_fichier_upload($source, $dest, $move=false) { |
| 178 | 178 | // Securite |
@@ -105,6 +105,9 @@ |
||
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | // http://doc.spip.org/@mention_qui_edite |
| 108 | +/** |
|
| 109 | + * @param integer $id |
|
| 110 | + */ |
|
| 108 | 111 | function mention_qui_edite ($id, $type='article') { |
| 109 | 112 | $modif = qui_edite($id, $type); |
| 110 | 113 | unset($modif[$GLOBALS['visiteur_session']['id_auteur']]); |
@@ -142,6 +142,9 @@ |
||
| 142 | 142 | return @mail($destinataire, $sujet, $texte, $headers); |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | +/** |
|
| 146 | + * @param string $to |
|
| 147 | + */ |
|
| 145 | 148 | function mail_normaliser_headers($headers, $from, $to, $texte, $parts="") |
| 146 | 149 | { |
| 147 | 150 | $charset = $GLOBALS['meta']['charset']; |
@@ -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 | { |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | * |
| 31 | 31 | * @param string $lang |
| 32 | 32 | * La langue à utiliser |
| 33 | - * @return string|bool |
|
| 33 | + * @return false|string |
|
| 34 | 34 | * string : La langue qui a été utilisée si trouvée |
| 35 | 35 | * false : aucune langue ne correspondait à la demande |
| 36 | 36 | **/ |
@@ -154,6 +154,9 @@ discard block |
||
| 154 | 154 | // pour 'changer_lang' (langue de l'article, espace prive), c'est en Ajax |
| 155 | 155 | // |
| 156 | 156 | // http://doc.spip.org/@menu_langues |
| 157 | +/** |
|
| 158 | + * @param string $nom_select |
|
| 159 | + */ |
|
| 157 | 160 | function menu_langues($nom_select, $default='') { |
| 158 | 161 | include_spip('inc/actions'); |
| 159 | 162 | |
@@ -184,6 +187,10 @@ discard block |
||
| 184 | 187 | } |
| 185 | 188 | |
| 186 | 189 | // http://doc.spip.org/@select_langues |
| 190 | +/** |
|
| 191 | + * @param string $change |
|
| 192 | + * @param string $options |
|
| 193 | + */ |
|
| 187 | 194 | function select_langues($nom_select, $change, $options, $label="") |
| 188 | 195 | { |
| 189 | 196 | static $cpt = 0; |