@@ -239,6 +239,11 @@ |
||
| 239 | 239 | |
| 240 | 240 | |
| 241 | 241 | // http://doc.spip.org/@lien_change_var |
| 242 | +/** |
|
| 243 | + * @param string $set |
|
| 244 | + * @param string $couleur |
|
| 245 | + * @param string $coords |
|
| 246 | + */ |
|
| 242 | 247 | function lien_change_var($lien, $set, $couleur, $coords, $titre, $mouseOver="") { |
| 243 | 248 | $lien = parametre_url($lien, $set, $couleur); |
| 244 | 249 | return "\n<area shape='rect' href='$lien' coords='$coords' title=\"$titre\" alt=\"$titre\" $mouseOver />"; |
@@ -84,6 +84,9 @@ discard block |
||
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | // http://doc.spip.org/@afficher_heure |
| 87 | +/** |
|
| 88 | + * @param string $heure |
|
| 89 | + */ |
|
| 87 | 90 | function afficher_heure($heure, $attributs, $autre=false){ |
| 88 | 91 | $res = ''; |
| 89 | 92 | for($i=0;$i<=23;$i++){ |
@@ -94,6 +97,9 @@ discard block |
||
| 94 | 97 | } |
| 95 | 98 | |
| 96 | 99 | // http://doc.spip.org/@afficher_minute |
| 100 | +/** |
|
| 101 | + * @param string $minute |
|
| 102 | + */ |
|
| 97 | 103 | function afficher_minute($minute, $attributs, $autre=false){ |
| 98 | 104 | $res = ''; |
| 99 | 105 | for($i=0;$i<=59;$i+=5){ |
@@ -34,6 +34,9 @@ discard block |
||
| 34 | 34 | return ajax_action_greffe("dater", $id, $res); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | +/** |
|
| 38 | + * @param string $date_redac |
|
| 39 | + */ |
|
| 37 | 40 | function dater_lecture($date, $date_redac, $possedeDateRedac, $label) |
| 38 | 41 | { |
| 39 | 42 | $res = "<div style='text-align:center;'><b> <span class='verdana1'>" |
@@ -54,6 +57,10 @@ discard block |
||
| 54 | 57 | return $res; |
| 55 | 58 | } |
| 56 | 59 | |
| 60 | +/** |
|
| 61 | + * @param string $date_redac |
|
| 62 | + * @param string $fct_ajax |
|
| 63 | + */ |
|
| 57 | 64 | function dater_ecriture($id, $possedeDateRedac, $statut, $type, $script, $date, $date_redac, $fct_ajax) { |
| 58 | 65 | global $spip_lang_left, $spip_lang_right, $debut_date_publication; |
| 59 | 66 | |
@@ -194,6 +194,9 @@ |
||
| 194 | 194 | } |
| 195 | 195 | |
| 196 | 196 | // http://doc.spip.org/@_diff |
| 197 | + /** |
|
| 198 | + * @return string |
|
| 199 | + */ |
|
| 197 | 200 | function _diff($p, $p_old) { |
| 198 | 201 | $diff = new Diff(new DiffPara); |
| 199 | 202 | return $diff->comparer($p, $p_old); |
@@ -16,6 +16,11 @@ |
||
| 16 | 16 | include_spip('inc/presentation'); |
| 17 | 17 | |
| 18 | 18 | // http://doc.spip.org/@formulaire_discuter |
| 19 | +/** |
|
| 20 | + * @param integer $debut |
|
| 21 | + * @param integer $pas |
|
| 22 | + * @param string $ancre |
|
| 23 | + */ |
|
| 19 | 24 | function formulaire_discuter($script, $args, $debut, $pas, $ancre, $total, $objet) |
| 20 | 25 | { |
| 21 | 26 | $nav = ''; |
@@ -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); |