@@ -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){ |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | * |
| 67 | 67 | * http://doc.spip.org/@calculer_taille_dossier |
| 68 | 68 | * |
| 69 | - * @param $dir |
|
| 69 | + * @param string|null $dir |
|
| 70 | 70 | * @return int |
| 71 | 71 | */ |
| 72 | 72 | function calculer_taille_dossier ($dir) { |
@@ -35,6 +35,9 @@ |
||
| 35 | 35 | redirige_par_entete($redirect, true); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | +/** |
|
| 39 | + * @param boolean $update_session |
|
| 40 | + */ |
|
| 38 | 41 | function action_converser_changer_langue($update_session){ |
| 39 | 42 | if ($lang = _request('var_lang')) |
| 40 | 43 | action_converser_post($lang); |
@@ -221,7 +221,7 @@ |
||
| 221 | 221 | * @param $id_auteur |
| 222 | 222 | * @param $c |
| 223 | 223 | * @param bool $force_webmestre |
| 224 | - * @return bool|string |
|
| 224 | + * @return false|string |
|
| 225 | 225 | */ |
| 226 | 226 | function auteur_instituer($id_auteur, $c, $force_webmestre = false) { |
| 227 | 227 | if (!$id_auteur=intval($id_auteur)) |
@@ -208,19 +208,19 @@ discard block |
||
| 208 | 208 | * @api |
| 209 | 209 | * @uses sql_select() |
| 210 | 210 | * |
| 211 | - * @param array|string $select |
|
| 211 | + * @param string $select |
|
| 212 | 212 | * Liste des champs a recuperer (Select) |
| 213 | - * @param array|string $from |
|
| 213 | + * @param string $from |
|
| 214 | 214 | * Tables a consulter (From) |
| 215 | - * @param array|string $where |
|
| 215 | + * @param string $where |
|
| 216 | 216 | * Conditions a remplir (Where) |
| 217 | - * @param array|string $groupby |
|
| 217 | + * @param string $groupby |
|
| 218 | 218 | * Critere de regroupement (Group by) |
| 219 | - * @param array|string $orderby |
|
| 219 | + * @param string $orderby |
|
| 220 | 220 | * Tableau de classement (Order By) |
| 221 | 221 | * @param string $limit |
| 222 | 222 | * Critere de limite (Limit) |
| 223 | - * @param array $having |
|
| 223 | + * @param string $having |
|
| 224 | 224 | * Tableau des des post-conditions a remplir (Having) |
| 225 | 225 | * @param string $serveur |
| 226 | 226 | * Le serveur sollicite (pour retrouver la connexion) |
@@ -249,9 +249,9 @@ discard block |
||
| 249 | 249 | * Tables a consulter (From) |
| 250 | 250 | * @param array|string $where |
| 251 | 251 | * Conditions a remplir (Where) |
| 252 | - * @param array|string $groupby |
|
| 252 | + * @param string $groupby |
|
| 253 | 253 | * Critere de regroupement (Group by) |
| 254 | - * @param array $having |
|
| 254 | + * @param string $having |
|
| 255 | 255 | * Tableau des des post-conditions a remplir (Having) |
| 256 | 256 | * @param string $serveur |
| 257 | 257 | * Le serveur sollicite (pour retrouver la connexion) |
@@ -507,6 +507,9 @@ discard block |
||
| 507 | 507 | } |
| 508 | 508 | |
| 509 | 509 | // http://doc.spip.org/@sql_update |
| 510 | +/** |
|
| 511 | + * @param string $table |
|
| 512 | + */ |
|
| 510 | 513 | function sql_update($table, $exp, $where='', $desc=array(), $serveur='', $option=true) |
| 511 | 514 | { |
| 512 | 515 | $f = sql_serveur('update', $serveur, $option==='continue' OR $option===false); |
@@ -540,6 +543,9 @@ discard block |
||
| 540 | 543 | } |
| 541 | 544 | |
| 542 | 545 | // http://doc.spip.org/@sql_replace |
| 546 | +/** |
|
| 547 | + * @param string $table |
|
| 548 | + */ |
|
| 543 | 549 | function sql_replace($table, $couples, $desc=array(), $serveur='', $option=true) |
| 544 | 550 | { |
| 545 | 551 | $f = sql_serveur('replace', $serveur, $option==='continue' OR $option===false); |
@@ -663,6 +669,9 @@ discard block |
||
| 663 | 669 | } |
| 664 | 670 | |
| 665 | 671 | // http://doc.spip.org/@sql_create |
| 672 | +/** |
|
| 673 | + * @param string $nom |
|
| 674 | + */ |
|
| 666 | 675 | function sql_create($nom, $champs, $cles=array(), $autoinc=false, $temporary=false, $serveur='', $option=true) { |
| 667 | 676 | $f = sql_serveur('create', $serveur, $option==='continue' OR $option===false); |
| 668 | 677 | if (!is_string($f) OR !$f) return false; |
@@ -694,6 +703,9 @@ discard block |
||
| 694 | 703 | } |
| 695 | 704 | |
| 696 | 705 | // http://doc.spip.org/@sql_multi |
| 706 | +/** |
|
| 707 | + * @param string $sel |
|
| 708 | + */ |
|
| 697 | 709 | function sql_multi($sel, $lang, $serveur='', $option=true) |
| 698 | 710 | { |
| 699 | 711 | $f = sql_serveur('multi', $serveur, $option==='continue' OR $option===false); |
@@ -753,6 +765,9 @@ discard block |
||
| 753 | 765 | } |
| 754 | 766 | |
| 755 | 767 | // http://doc.spip.org/@sql_repair |
| 768 | +/** |
|
| 769 | + * @return string |
|
| 770 | + */ |
|
| 756 | 771 | function sql_repair($table, $serveur='', $option=true) { |
| 757 | 772 | $f = sql_serveur('repair', $serveur, $option==='continue' OR $option===false); |
| 758 | 773 | if (!is_string($f) OR !$f) return false; |
@@ -765,6 +780,9 @@ discard block |
||
| 765 | 780 | // A n'utiliser qu'en derniere extremite |
| 766 | 781 | |
| 767 | 782 | // http://doc.spip.org/@sql_query |
| 783 | +/** |
|
| 784 | + * @param string $ins |
|
| 785 | + */ |
|
| 768 | 786 | function sql_query($ins, $serveur='', $option=true) { |
| 769 | 787 | $f = sql_serveur('query', $serveur, $option==='continue' OR $option===false); |
| 770 | 788 | if (!is_string($f) OR !$f) return false; |
@@ -852,13 +870,13 @@ discard block |
||
| 852 | 870 | * Tables a consulter (From) |
| 853 | 871 | * @param array|string $where |
| 854 | 872 | * Conditions a remplir (Where) |
| 855 | - * @param array|string $groupby |
|
| 873 | + * @param string $groupby |
|
| 856 | 874 | * Critere de regroupement (Group by) |
| 857 | - * @param array|string $orderby |
|
| 875 | + * @param string $orderby |
|
| 858 | 876 | * Tableau de classement (Order By) |
| 859 | 877 | * @param string $limit |
| 860 | 878 | * Critere de limite (Limit) |
| 861 | - * @param array $having |
|
| 879 | + * @param string $having |
|
| 862 | 880 | * Tableau des des post-conditions a remplir (Having) |
| 863 | 881 | * @param string $serveur |
| 864 | 882 | * Le serveur sollicite (pour retrouver la connexion) |
@@ -1107,6 +1125,11 @@ discard block |
||
| 1107 | 1125 | return $f($val, $type); |
| 1108 | 1126 | } |
| 1109 | 1127 | |
| 1128 | +/** |
|
| 1129 | + * @param string $champ |
|
| 1130 | + * @param double $interval |
|
| 1131 | + * @param string $unite |
|
| 1132 | + */ |
|
| 1110 | 1133 | function sql_date_proche($champ, $interval, $unite, $serveur='', $option=true) |
| 1111 | 1134 | { |
| 1112 | 1135 | $f = sql_serveur('date_proche', $serveur, true); |
@@ -1159,6 +1182,10 @@ discard block |
||
| 1159 | 1182 | // s'il accepte les requetes imbriquees afin d'optimiser ca |
| 1160 | 1183 | |
| 1161 | 1184 | // http://doc.spip.org/@sql_in_select |
| 1185 | +/** |
|
| 1186 | + * @param string $in |
|
| 1187 | + * @param string $select |
|
| 1188 | + */ |
|
| 1162 | 1189 | function sql_in_select($in, $select, $from = array(), $where = array(), |
| 1163 | 1190 | $groupby = array(), $orderby = array(), $limit = '', $having = array(), $serveur='') |
| 1164 | 1191 | { |