@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | * @uses _DIR_IMG |
| 41 | 41 | * |
| 42 | 42 | * @param string $fichier |
| 43 | - * @return bool|string |
|
| 43 | + * @return string|false |
|
| 44 | 44 | */ |
| 45 | 45 | function get_spip_doc($fichier) { |
| 46 | 46 | // fichier distant |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | * @param string $ext |
| 116 | 116 | * @param string $orig |
| 117 | 117 | * @param string $source |
| 118 | - * @return bool|mixed|string |
|
| 118 | + * @return string|false |
|
| 119 | 119 | */ |
| 120 | 120 | function copier_document($ext, $orig, $source) { |
| 121 | 121 | |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | * @uses sous_repertoire() |
| 150 | 150 | * |
| 151 | 151 | * @param string $type |
| 152 | - * @return bool|string |
|
| 152 | + * @return false|string |
|
| 153 | 153 | */ |
| 154 | 154 | function determine_upload($type='') { |
| 155 | 155 | if(!function_exists('autoriser')) |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | * @param bool $move |
| 185 | 185 | * - `true` : on déplace le fichier source vers le fichier de destination |
| 186 | 186 | * - `false` : valeur par défaut. On ne fait que copier le fichier source vers la destination. |
| 187 | - * @return bool|mixed|string |
|
| 187 | + * @return string|false |
|
| 188 | 188 | */ |
| 189 | 189 | function deplacer_fichier_upload($source, $dest, $move=false) { |
| 190 | 190 | // Securite |
@@ -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 | **/ |
@@ -164,6 +164,9 @@ discard block |
||
| 164 | 164 | // pour 'changer_lang' (langue de l'article, espace prive), c'est en Ajax |
| 165 | 165 | // |
| 166 | 166 | // http://code.spip.net/@menu_langues |
| 167 | +/** |
|
| 168 | + * @param string $nom_select |
|
| 169 | + */ |
|
| 167 | 170 | function menu_langues($nom_select, $default='') { |
| 168 | 171 | include_spip('inc/actions'); |
| 169 | 172 | |
@@ -194,6 +197,10 @@ discard block |
||
| 194 | 197 | } |
| 195 | 198 | |
| 196 | 199 | // http://code.spip.net/@select_langues |
| 200 | +/** |
|
| 201 | + * @param string $change |
|
| 202 | + * @param string $options |
|
| 203 | + */ |
|
| 197 | 204 | function select_langues($nom_select, $change, $options, $label="") |
| 198 | 205 | { |
| 199 | 206 | static $cpt = 0; |
@@ -19,6 +19,9 @@ |
||
| 19 | 19 | // |
| 20 | 20 | |
| 21 | 21 | // http://code.spip.net/@image_math |
| 22 | +/** |
|
| 23 | + * @param string $tex |
|
| 24 | + */ |
|
| 22 | 25 | function produire_image_math($tex) { |
| 23 | 26 | global $traiter_math; |
| 24 | 27 | switch ($traiter_math) { |
@@ -28,6 +28,11 @@ discard block |
||
| 28 | 28 | define('PCLZIP_TEMPORARY_DIR', _DIR_TMP); |
| 29 | 29 | } |
| 30 | 30 | if (!function_exists('gzopen') && function_exists('gzopen64')) { |
| 31 | + |
|
| 32 | + /** |
|
| 33 | + * @param string $filename |
|
| 34 | + * @param string $mode |
|
| 35 | + */ |
|
| 31 | 36 | function gzopen($filename, $mode, $use_include_path = 0) { |
| 32 | 37 | return gzopen64($filename, $mode, $use_include_path); |
| 33 | 38 | } |
@@ -221,6 +226,10 @@ discard block |
||
| 221 | 226 | // Note that no real action is taken, if the archive does not exist it is not |
| 222 | 227 | // created. Use create() for that. |
| 223 | 228 | // -------------------------------------------------------------------------------- |
| 229 | + |
|
| 230 | + /** |
|
| 231 | + * @param string $p_zipname |
|
| 232 | + */ |
|
| 224 | 233 | function PclZip($p_zipname) |
| 225 | 234 | { |
| 226 | 235 | |
@@ -2344,6 +2353,10 @@ discard block |
||
| 2344 | 2353 | // Description : |
| 2345 | 2354 | // Parameters : |
| 2346 | 2355 | // -------------------------------------------------------------------------------- |
| 2356 | + |
|
| 2357 | + /** |
|
| 2358 | + * @param string $p_mode |
|
| 2359 | + */ |
|
| 2347 | 2360 | function privOpenFd($p_mode) |
| 2348 | 2361 | { |
| 2349 | 2362 | $v_result=1; |
@@ -4160,6 +4173,10 @@ discard block |
||
| 4160 | 4173 | // Parameters : |
| 4161 | 4174 | // Return Values : |
| 4162 | 4175 | // -------------------------------------------------------------------------------- |
| 4176 | + |
|
| 4177 | + /** |
|
| 4178 | + * @param string $p_string |
|
| 4179 | + */ |
|
| 4163 | 4180 | function privExtractFileAsString(&$p_entry, &$p_string, &$p_options) |
| 4164 | 4181 | { |
| 4165 | 4182 | $v_result=1; |
@@ -5053,6 +5070,10 @@ discard block |
||
| 5053 | 5070 | // Parameters : |
| 5054 | 5071 | // Return Values : |
| 5055 | 5072 | // -------------------------------------------------------------------------------- |
| 5073 | + |
|
| 5074 | + /** |
|
| 5075 | + * @param PclZip $p_archive_to_add |
|
| 5076 | + */ |
|
| 5056 | 5077 | function privMerge(&$p_archive_to_add) |
| 5057 | 5078 | { |
| 5058 | 5079 | $v_result=1; |
@@ -5560,6 +5581,11 @@ discard block |
||
| 5560 | 5581 | // 3 : src & dest gzip |
| 5561 | 5582 | // Return Values : |
| 5562 | 5583 | // -------------------------------------------------------------------------------- |
| 5584 | + |
|
| 5585 | + /** |
|
| 5586 | + * @param integer $p_src |
|
| 5587 | + * @param integer $p_dest |
|
| 5588 | + */ |
|
| 5563 | 5589 | function PclZipUtilCopyBlock($p_src, $p_dest, $p_size, $p_mode=0) |
| 5564 | 5590 | { |
| 5565 | 5591 | $v_result = 1; |
@@ -5622,6 +5648,11 @@ discard block |
||
| 5622 | 5648 | // Return Values : |
| 5623 | 5649 | // 1 on success, 0 on failure. |
| 5624 | 5650 | // -------------------------------------------------------------------------------- |
| 5651 | + |
|
| 5652 | + /** |
|
| 5653 | + * @param string $p_src |
|
| 5654 | + * @param string $p_dest |
|
| 5655 | + */ |
|
| 5625 | 5656 | function PclZipUtilRename($p_src, $p_dest) |
| 5626 | 5657 | { |
| 5627 | 5658 | $v_result = 1; |
@@ -138,7 +138,7 @@ |
||
| 138 | 138 | * @param string $primary |
| 139 | 139 | * @param array $rows |
| 140 | 140 | * @param string $serveur |
| 141 | - * @return array |
|
| 141 | + * @return string[] |
|
| 142 | 142 | */ |
| 143 | 143 | function generer_select_where_explicites($table, $primary, $rows, $serveur){ |
| 144 | 144 | # calculer le {id_article IN()} et le {... as points} |
@@ -101,6 +101,10 @@ discard block |
||
| 101 | 101 | // checkbox pour activer ou desactiver |
| 102 | 102 | // si ce n'est pas une extension |
| 103 | 103 | |
| 104 | +/** |
|
| 105 | + * @param integer $id_input |
|
| 106 | + * @param string $file |
|
| 107 | + */ |
|
| 104 | 108 | function plugin_checkbox($id_input, $file, $actif) |
| 105 | 109 | { |
| 106 | 110 | $name = substr(md5($file),0,16); |
@@ -162,6 +166,9 @@ discard block |
||
| 162 | 166 | . "</div>"; |
| 163 | 167 | } |
| 164 | 168 | |
| 169 | +/** |
|
| 170 | + * @param string $nom |
|
| 171 | + */ |
|
| 165 | 172 | function plugin_desintalle($plug_file, $nom, $dir_plugins=null){ |
| 166 | 173 | if (!$dir_plugins) |
| 167 | 174 | $dir_plugins = _DIR_PLUGINS; |
@@ -412,6 +412,10 @@ |
||
| 412 | 412 | * aller a la position $n en parcourant |
| 413 | 413 | * un par un tous les elements |
| 414 | 414 | */ |
| 415 | + |
|
| 416 | + /** |
|
| 417 | + * @param integer $n |
|
| 418 | + */ |
|
| 415 | 419 | private function seek_loop($n) { |
| 416 | 420 | if ($this->pos > $n) |
| 417 | 421 | $this->rewind(); |
@@ -211,7 +211,7 @@ |
||
| 211 | 211 | * |
| 212 | 212 | * @param array $depart |
| 213 | 213 | * @param array $arrivee |
| 214 | - * @param string|array $col |
|
| 214 | + * @param string $col |
|
| 215 | 215 | * @return bool |
| 216 | 216 | */ |
| 217 | 217 | function nogroupby_if($depart, $arrivee, $col){ |
@@ -214,6 +214,9 @@ discard block |
||
| 214 | 214 | // on recommence tant qu'il y a des [...] en substituant a l'appel suivant |
| 215 | 215 | |
| 216 | 216 | // http://code.spip.net/@phraser_champs_etendus |
| 217 | +/** |
|
| 218 | + * @param integer $ligne |
|
| 219 | + */ |
|
| 217 | 220 | function phraser_champs_etendus($texte, $ligne,$result) { |
| 218 | 221 | if ($texte==="") return $result; |
| 219 | 222 | $sep = '##'; |
@@ -229,6 +232,9 @@ discard block |
||
| 229 | 232 | // Tres chevelu |
| 230 | 233 | |
| 231 | 234 | // http://code.spip.net/@phraser_args |
| 235 | +/** |
|
| 236 | + * @param string $fin |
|
| 237 | + */ |
|
| 232 | 238 | function phraser_args($texte, $fin, $sep, $result, &$pointeur_champ) { |
| 233 | 239 | $texte = ltrim($texte); |
| 234 | 240 | while (($texte!=="") && strpos($fin, $texte[0]) === false) { |
@@ -242,6 +248,9 @@ discard block |
||
| 242 | 248 | } |
| 243 | 249 | |
| 244 | 250 | // http://code.spip.net/@phraser_arg |
| 251 | +/** |
|
| 252 | + * @param string $texte |
|
| 253 | + */ |
|
| 245 | 254 | function phraser_arg(&$texte, $sep, $result, &$pointeur_champ) { |
| 246 | 255 | preg_match(",^(\|?[^}{)|]*)(.*)$,ms", $texte, $match); |
| 247 | 256 | $suite = ltrim($match[2]); |
@@ -359,6 +368,9 @@ discard block |
||
| 359 | 368 | |
| 360 | 369 | |
| 361 | 370 | // http://code.spip.net/@phraser_champs_exterieurs |
| 371 | +/** |
|
| 372 | + * @param string $texte |
|
| 373 | + */ |
|
| 362 | 374 | function phraser_champs_exterieurs($texte, $ligne, $sep, $nested) { |
| 363 | 375 | $res = array(); |
| 364 | 376 | while (($p=strpos($texte, "%$sep"))!==false) { |
@@ -375,6 +387,9 @@ discard block |
||
| 375 | 387 | } |
| 376 | 388 | |
| 377 | 389 | // http://code.spip.net/@phraser_champs_interieurs |
| 390 | +/** |
|
| 391 | + * @param string $sep |
|
| 392 | + */ |
|
| 378 | 393 | function phraser_champs_interieurs($texte, $ligne, $sep, $result) { |
| 379 | 394 | $i = 0; // en fait count($result) |
| 380 | 395 | $x = ""; |
@@ -649,6 +664,10 @@ discard block |
||
| 649 | 664 | } |
| 650 | 665 | |
| 651 | 666 | // http://code.spip.net/@phraser_critere_infixe |
| 667 | +/** |
|
| 668 | + * @param string $arg1 |
|
| 669 | + * @param string $arg2 |
|
| 670 | + */ |
|
| 652 | 671 | function phraser_critere_infixe($arg1, $arg2, $args, $op, $not, $cond) |
| 653 | 672 | { |
| 654 | 673 | $args[0] = new Texte; |