@@ -21,6 +21,9 @@ discard block |
||
| 21 | 21 | * |
| 22 | 22 | */ |
| 23 | 23 | // http://code.spip.net/@_sqlite_init_functions |
| 24 | +/** |
|
| 25 | + * @param PDO $sqlite |
|
| 26 | + */ |
|
| 24 | 27 | function _sqlite_init_functions(&$sqlite){ |
| 25 | 28 | |
| 26 | 29 | if (!$sqlite) return false; |
@@ -89,6 +92,9 @@ discard block |
||
| 89 | 92 | |
| 90 | 93 | // permet au besoin de charger des fonctions ailleurs par _sqlite_init_functions(); |
| 91 | 94 | // http://code.spip.net/@_sqlite_add_function |
| 95 | +/** |
|
| 96 | + * @param string $f |
|
| 97 | + */ |
|
| 92 | 98 | function _sqlite_add_function(&$sqlite, &$f, &$r){ |
| 93 | 99 | if (_sqlite_is_version(3, $sqlite)){ |
| 94 | 100 | isset($r[1]) |
@@ -96,6 +96,9 @@ discard block |
||
| 96 | 96 | : xml_entites_html($data); |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | +/** |
|
| 100 | + * @param IndenteurXML $phraseur |
|
| 101 | + */ |
|
| 99 | 102 | function xml_piElement($phraseur, $target, $data) |
| 100 | 103 | { |
| 101 | 104 | $depth = $phraseur->depth; |
@@ -113,6 +116,9 @@ discard block |
||
| 113 | 116 | |
| 114 | 117 | |
| 115 | 118 | // http://code.spip.net/@xml_defautElement |
| 119 | +/** |
|
| 120 | + * @param IndenteurXML $phraseur |
|
| 121 | + */ |
|
| 116 | 122 | function xml_defaultElement($phraseur, $data) |
| 117 | 123 | { |
| 118 | 124 | $depth = $phraseur->depth; |
@@ -144,6 +150,9 @@ discard block |
||
| 144 | 150 | } |
| 145 | 151 | |
| 146 | 152 | // http://code.spip.net/@coordonnees_erreur |
| 153 | +/** |
|
| 154 | + * @param string $msg |
|
| 155 | + */ |
|
| 147 | 156 | function coordonnees_erreur($phraseur, $msg) |
| 148 | 157 | { |
| 149 | 158 | $entete_length = substr_count($phraseur->entete,"\n"); |
@@ -39,6 +39,9 @@ |
||
| 39 | 39 | } |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | +/** |
|
| 43 | + * @param string $name |
|
| 44 | + */ |
|
| 42 | 45 | function liste_tables_en_base($name) |
| 43 | 46 | { |
| 44 | 47 | $res = sql_alltable(); |
@@ -71,6 +71,9 @@ |
||
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | |
| 74 | +/** |
|
| 75 | + * @param string $nom |
|
| 76 | + */ |
|
| 74 | 77 | function phraser_logo_faux_filtres($nom) |
| 75 | 78 | { |
| 76 | 79 | switch($nom) { |
@@ -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)) |
@@ -389,6 +389,9 @@ |
||
| 389 | 389 | } |
| 390 | 390 | |
| 391 | 391 | // http://doc.spip.org/@import_init_meta |
| 392 | +/** |
|
| 393 | + * @return string |
|
| 394 | + */ |
|
| 392 | 395 | function import_init_meta($tag, $atts, $charset, $request) |
| 393 | 396 | { |
| 394 | 397 | $version_archive = $atts['version_archive']; |
@@ -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 | { |