@@ -37,8 +37,6 @@ discard block |
||
| 37 | 37 | * 'auto' - charger au besoin |
| 38 | 38 | * 'modif' - Si deja present, ne charger que si If-Modified-Since |
| 39 | 39 | * 'force' - charger toujours (mettre a jour) |
| 40 | - * @param string $local |
|
| 41 | - * permet de specifier le nom du fichier local (stockage d'un cache par exemple, et non document IMG) |
|
| 42 | 40 | * @return bool|string |
| 43 | 41 | */ |
| 44 | 42 | function copie_locale($source, $mode='auto') { |
@@ -101,6 +99,9 @@ discard block |
||
| 101 | 99 | } |
| 102 | 100 | |
| 103 | 101 | // http://doc.spip.org/@prepare_donnees_post |
| 102 | +/** |
|
| 103 | + * @param string $donnees |
|
| 104 | + */ |
|
| 104 | 105 | function prepare_donnees_post($donnees, $boundary = '') { |
| 105 | 106 | |
| 106 | 107 | // permettre a la fonction qui a demande le post de formater elle meme ses donnees |
@@ -193,6 +194,9 @@ discard block |
||
| 193 | 194 | // dans lequel on ecrit directement la page |
| 194 | 195 | // * si c'est true/null ca correspond a une demande d'encodage/charset |
| 195 | 196 | // http://doc.spip.org/@recuperer_page |
| 197 | +/** |
|
| 198 | + * @param integer $taille_max |
|
| 199 | + */ |
|
| 196 | 200 | function recuperer_page($url, $trans = false, $get_headers = false, |
| 197 | 201 | $taille_max = null, $datas = '', $boundary = '', $refuser_gz = false, |
| 198 | 202 | $date_verif = '', $uri_referer = ''){ |
@@ -621,6 +625,9 @@ discard block |
||
| 621 | 625 | // retourne le descripteur sur lequel lire la reponse |
| 622 | 626 | // |
| 623 | 627 | // http://doc.spip.org/@init_http |
| 628 | +/** |
|
| 629 | + * @param string $method |
|
| 630 | + */ |
|
| 624 | 631 | function init_http($method, $url, $refuse_gz = false, $referer = '', $datas = "", $vers = "HTTP/1.0", $date = ''){ |
| 625 | 632 | $user = $via_proxy = $proxy_user = ''; |
| 626 | 633 | $fopen = false; |
@@ -663,6 +670,9 @@ discard block |
||
| 663 | 670 | } |
| 664 | 671 | |
| 665 | 672 | // http://doc.spip.org/@lance_requete |
| 673 | +/** |
|
| 674 | + * @param string $noproxy |
|
| 675 | + */ |
|
| 666 | 676 | function lance_requete($method, $scheme, $user, $host, $path, $port, $noproxy, $refuse_gz = false, $referer = '', $datas = "", $vers = "HTTP/1.0", $date = ''){ |
| 667 | 677 | |
| 668 | 678 | $proxy_user = ''; |
@@ -56,6 +56,14 @@ discard block |
||
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | // http://doc.spip.org/@documenter_bloc |
| 59 | +/** |
|
| 60 | + * @param integer $id |
|
| 61 | + * @param string $res |
|
| 62 | + * @param string $s |
|
| 63 | + * @param string $script |
|
| 64 | + * @param string $ancre |
|
| 65 | + * @param string $type |
|
| 66 | + */ |
|
| 59 | 67 | function documenter_bloc($id, $res, $s, $script, $ancre, $tous, $type) |
| 60 | 68 | { |
| 61 | 69 | // seulement s'il y a au moins un document dedans |
@@ -78,6 +86,12 @@ discard block |
||
| 78 | 86 | } |
| 79 | 87 | |
| 80 | 88 | // http://doc.spip.org/@documenter_boucle |
| 89 | +/** |
|
| 90 | + * @param string $type |
|
| 91 | + * @param string $ancre |
|
| 92 | + * @param boolean $tous_autorises |
|
| 93 | + * @param string $appelant |
|
| 94 | + */ |
|
| 81 | 95 | function documenter_boucle($documents, $type, $ancre, &$tous_autorises, $appelant, $opt=array()) |
| 82 | 96 | { |
| 83 | 97 | // la derniere case d'une rangee |
@@ -335,6 +335,10 @@ |
||
| 335 | 335 | // et l'insere quand on le clique |
| 336 | 336 | // |
| 337 | 337 | // http://doc.spip.org/@affiche_raccourci_doc |
| 338 | +/** |
|
| 339 | + * @param string $doc |
|
| 340 | + * @param string $align |
|
| 341 | + */ |
|
| 338 | 342 | function affiche_raccourci_doc($doc, $id, $align) { |
| 339 | 343 | static $num = 0; |
| 340 | 344 | |
@@ -14,6 +14,9 @@ discard block |
||
| 14 | 14 | include_spip('base/abstract_sql'); |
| 15 | 15 | |
| 16 | 16 | // http://doc.spip.org/@formulaires_editer_objet_traiter |
| 17 | +/** |
|
| 18 | + * @param string $type |
|
| 19 | + */ |
|
| 17 | 20 | function formulaires_editer_objet_traiter($type, $id='new', $id_parent=0, $lier_trad=0, $retour='', $config_fonc='articles_edit_config', $row=array(), $hidden=''){ |
| 18 | 21 | |
| 19 | 22 | $res = array(); |
@@ -33,6 +36,9 @@ discard block |
||
| 33 | 36 | } |
| 34 | 37 | |
| 35 | 38 | // http://doc.spip.org/@formulaires_editer_objet_verifier |
| 39 | +/** |
|
| 40 | + * @param string $type |
|
| 41 | + */ |
|
| 36 | 42 | function formulaires_editer_objet_verifier($type,$id='new', $oblis = array()){ |
| 37 | 43 | $erreurs = array(); |
| 38 | 44 | if (intval($id)) { |
@@ -51,6 +57,9 @@ discard block |
||
| 51 | 57 | } |
| 52 | 58 | |
| 53 | 59 | // http://doc.spip.org/@formulaires_editer_objet_charger |
| 60 | +/** |
|
| 61 | + * @param string $type |
|
| 62 | + */ |
|
| 54 | 63 | function formulaires_editer_objet_charger($type, $id='new', $id_parent=0, $lier_trad=0, $retour='', $config_fonc='articles_edit_config', $row=array(), $hidden=''){ |
| 55 | 64 | $table_objet = table_objet($type); |
| 56 | 65 | $table_objet_sql = table_objet_sql($type); |
@@ -155,6 +164,9 @@ discard block |
||
| 155 | 164 | } |
| 156 | 165 | |
| 157 | 166 | // http://doc.spip.org/@editer_texte_recolle |
| 167 | +/** |
|
| 168 | + * @param string $att_text |
|
| 169 | + */ |
|
| 158 | 170 | function editer_texte_recolle($texte, $att_text) |
| 159 | 171 | { |
| 160 | 172 | if ((strlen($texte)<29*1024) |
@@ -203,6 +215,9 @@ discard block |
||
| 203 | 215 | } |
| 204 | 216 | |
| 205 | 217 | // http://doc.spip.org/@controler_contenu |
| 218 | +/** |
|
| 219 | + * @param string $id |
|
| 220 | + */ |
|
| 206 | 221 | function controler_contenu($type, $id, $options=array(), $c=false, $serveur='') { |
| 207 | 222 | include_spip('inc/filtres'); |
| 208 | 223 | |
@@ -273,6 +288,9 @@ discard block |
||
| 273 | 288 | // Controle la liste des md5 envoyes, supprime les inchanges, |
| 274 | 289 | // signale les modifies depuis telle date |
| 275 | 290 | // http://doc.spip.org/@controler_md5 |
| 291 | +/** |
|
| 292 | + * @param string $serveur |
|
| 293 | + */ |
|
| 276 | 294 | function controler_md5(&$champs, $ctr, $type, $id, $serveur, $prefix = 'ctr_') { |
| 277 | 295 | $table_objet = table_objet($type); |
| 278 | 296 | $spip_table_objet = table_objet_sql($type); |
@@ -183,6 +183,9 @@ discard block |
||
| 183 | 183 | } |
| 184 | 184 | |
| 185 | 185 | // http://doc.spip.org/@afficher_auteurs_objet |
| 186 | +/** |
|
| 187 | + * @param string $cond |
|
| 188 | + */ |
|
| 186 | 189 | function afficher_auteurs_objet($type, $id, $edit, $cond, $script, $arg_ajax) |
| 187 | 190 | { |
| 188 | 191 | |
@@ -227,6 +230,9 @@ discard block |
||
| 227 | 230 | } |
| 228 | 231 | |
| 229 | 232 | // http://doc.spip.org/@ajouter_auteurs_objet |
| 233 | +/** |
|
| 234 | + * @param string $cond_les_auteurs |
|
| 235 | + */ |
|
| 230 | 236 | function ajouter_auteurs_objet($type, $id, $cond_les_auteurs,$script_edit, $arg_ajax, $valeur='') |
| 231 | 237 | { |
| 232 | 238 | if (!$determiner_non_auteurs = charger_fonction('determiner_non_auteurs_'.$type,'inc',true)) |
@@ -294,6 +300,9 @@ discard block |
||
| 294 | 300 | } |
| 295 | 301 | |
| 296 | 302 | // http://doc.spip.org/@selecteur_auteur_ajax |
| 303 | +/** |
|
| 304 | + * @param string $text |
|
| 305 | + */ |
|
| 297 | 306 | function selecteur_auteur_ajax($type, $id, $js, $text, $idom='') |
| 298 | 307 | { |
| 299 | 308 | include_spip('inc/chercher_rubrique'); |
@@ -61,6 +61,9 @@ discard block |
||
| 61 | 61 | return ajax_action_greffe("editer_mots", $id_objet, $res); |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | +/** |
|
| 65 | + * @param string $url_base |
|
| 66 | + */ |
|
| 64 | 67 | function chercher_inserer_mot($cherche_mot, $select_groupe, $objet, $id_objet, $nom, $table_id, $url_base) |
| 65 | 68 | { |
| 66 | 69 | $modifier = false; |
@@ -142,6 +145,9 @@ discard block |
||
| 142 | 145 | } |
| 143 | 146 | |
| 144 | 147 | // http://doc.spip.org/@afficher_mots_cles |
| 148 | +/** |
|
| 149 | + * @param string $url |
|
| 150 | + */ |
|
| 145 | 151 | function afficher_mots_cles($flag, $objet, $id_objet, $table, $table_id, $url) |
| 146 | 152 | { |
| 147 | 153 | $q = array('SELECT' => "M.id_mot, M.titre, M.id_groupe", 'FROM' => "spip_mots AS M LEFT JOIN spip_mots_$table AS L ON M.id_mot=L.id_mot", 'WHERE' => "L.$table_id=$id_objet", 'ORDER BY' => "M.type, M.titre"); |
@@ -236,6 +242,11 @@ discard block |
||
| 236 | 242 | // boolean $visible : determiner si le formulaire est deplie |
| 237 | 243 | // string $objet : 'article' |
| 238 | 244 | // http://doc.spip.org/@formulaire_mots_cles |
| 245 | +/** |
|
| 246 | + * @param string $les_mots |
|
| 247 | + * @param string $url_base |
|
| 248 | + * @param boolean $visible |
|
| 249 | + */ |
|
| 239 | 250 | function formulaire_mots_cles($id_objet, $les_mots, $table, $table_id, $url_base, $visible, $objet) { |
| 240 | 251 | global $spip_lang, $spip_lang_right; |
| 241 | 252 | |
@@ -305,6 +316,9 @@ discard block |
||
| 305 | 316 | return array($visible, $res); |
| 306 | 317 | } |
| 307 | 318 | |
| 319 | +/** |
|
| 320 | + * @param string $url_base |
|
| 321 | + */ |
|
| 308 | 322 | function creer_mot($table, $id_objet, $table_id, $url_base, $mot='', $id_groupe=0) |
| 309 | 323 | { |
| 310 | 324 | static $titres = array( |
@@ -333,6 +347,9 @@ discard block |
||
| 333 | 347 | } |
| 334 | 348 | |
| 335 | 349 | // http://doc.spip.org/@menu_mots |
| 350 | +/** |
|
| 351 | + * @param string $cond_mots_vus |
|
| 352 | + */ |
|
| 336 | 353 | function menu_mots($row, $id_groupes_vus, $cond_mots_vus) |
| 337 | 354 | { |
| 338 | 355 | $id_groupe = $row['id_groupe']; |
@@ -205,6 +205,9 @@ |
||
| 205 | 205 | } |
| 206 | 206 | } |
| 207 | 207 | |
| 208 | +/** |
|
| 209 | + * @param string $to |
|
| 210 | + */ |
|
| 208 | 211 | function mail_normaliser_headers($headers, $from, $to, $texte, $parts="") |
| 209 | 212 | { |
| 210 | 213 | $charset = $GLOBALS['meta']['charset']; |
@@ -59,6 +59,9 @@ discard block |
||
| 59 | 59 | return ($etape > $all OR !$all) ? false : $dir; |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | +/** |
|
| 63 | + * @param string $dir |
|
| 64 | + */ |
|
| 62 | 65 | function export_trace($val_meta, $dir, $meta) |
| 63 | 66 | { |
| 64 | 67 | list($gz, $archive, $rub, $tables_for_dump, $etape_actuelle, $sous_etape, $serveur, $save) = $val_meta; |
@@ -182,6 +185,9 @@ discard block |
||
| 182 | 185 | // est plus court que le temps pour creer les parties |
| 183 | 186 | |
| 184 | 187 | // http://doc.spip.org/@export_objets |
| 188 | +/** |
|
| 189 | + * @param string $filetable |
|
| 190 | + */ |
|
| 185 | 191 | function export_objets($table, $cpt, $total, $filetable, $les_rubriques, $les_meres, $meta) { |
| 186 | 192 | global $tables_principales; |
| 187 | 193 | |
@@ -46,6 +46,9 @@ discard block |
||
| 46 | 46 | //une fonction qui permet de si un lien est un feed ou nom, si c'est un feed elle retourne son type |
| 47 | 47 | //si c'est pas un feed elle retourne 0, cette verification est evidemment tres tres legere |
| 48 | 48 | // http://doc.spip.org/@is_feed |
| 49 | +/** |
|
| 50 | + * @param string $url |
|
| 51 | + */ |
|
| 49 | 52 | function is_feed($url){ |
| 50 | 53 | |
| 51 | 54 | # methode SPIP |
@@ -187,6 +190,9 @@ discard block |
||
| 187 | 190 | //petite fonction qui prend en charge les problemes de double slash |
| 188 | 191 | //qunad on concatene les lien |
| 189 | 192 | // http://doc.spip.org/@concat_url |
| 193 | +/** |
|
| 194 | + * @param string $path |
|
| 195 | + */ |
|
| 190 | 196 | function concat_url($url1, $path){ |
| 191 | 197 | # methode spip |
| 192 | 198 | if(function_exists('suivre_lien')) { |