Completed
Push — spip-2.1 ( 1b0d01...40676b )
by cam
14:08
created
ecrire/inc/acces.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -199,6 +199,9 @@
 block discarded – undo
199 199
 // Installe ou verifie un .htaccess, y compris sa prise en compte par Apache
200 200
 //
201 201
 // http://doc.spip.org/@verifier_htaccess
202
+/**
203
+ * @param string|null $rep
204
+ */
202 205
 function verifier_htaccess($rep, $force=false) {
203 206
 	$htaccess = rtrim($rep,"/") . "/" . _ACCESS_FILE_NAME;
204 207
 	if (((@file_exists($htaccess)) OR defined('_TEST_DIRS')) AND !$force)
Please login to merge, or discard this patch.
ecrire/inc/actions.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@  discard block
 block discarded – undo
30 30
 }
31 31
 
32 32
 // http://doc.spip.org/@redirige_action_post
33
+/**
34
+ * @return string
35
+ */
33 36
 function redirige_action_post($action, $arg, $ret, $gra, $corps, $att='') {
34 37
 	$r = _DIR_RESTREINT . generer_url_ecrire($ret, $gra, false, true);
35 38
 	return generer_action_auteur($action, $arg, $r, $corps, $att . " method='post'");
@@ -41,6 +44,9 @@  discard block
 block discarded – undo
41 44
 // d'attribut  id = $action-$id (cf. AjaxSqueeze dans layer.js)
42 45
 
43 46
 // http://doc.spip.org/@ajax_action_auteur
47
+/**
48
+ * @param string $action
49
+ */
44 50
 function ajax_action_auteur($action, $id, $script, $args='', $corps=false, $args_ajax='', $fct_ajax='')
45 51
 {
46 52
 	if (strpos($args,"#")===FALSE)
@@ -109,6 +115,9 @@  discard block
 block discarded – undo
109 115
 // Comme ci-dessus, mais reduit au cas POST et on fournit le bouton Submit.
110 116
 // 
111 117
 // http://doc.spip.org/@ajax_action_post
118
+/**
119
+ * @param string $action
120
+ */
112 121
 function ajax_action_post($action, $arg, $retour, $gra, $corps, $clic='', $atts_i='', $atts_span = "", $args_ajax='', $fct_ajax='')
113 122
 {
114 123
 	global $spip_lang_right;
@@ -187,6 +196,9 @@  discard block
 block discarded – undo
187 196
 // $fonction : denomination semantique du bloc, que l'on retouve en attribut class
188 197
 // $id : id de l'objet concerne si il y a lieu ou "", sert a construire un identifiant unique au bloc ("fonction-id")
189 198
 // http://doc.spip.org/@ajax_action_greffe
199
+/**
200
+ * @param string $fonction
201
+ */
190 202
 function ajax_action_greffe($fonction, $id, $corps)
191 203
 {
192 204
 	$idom = $fonction.(strlen($id)?"-$id":"");
Please login to merge, or discard this patch.
ecrire/inc/admin.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -167,6 +167,9 @@
 block discarded – undo
167 167
 }
168 168
 
169 169
 // http://doc.spip.org/@copy_request
170
+/**
171
+ * @param string $suite
172
+ */
170 173
 function copy_request($script, $suite, $submit='')
171 174
 {
172 175
         include_spip('inc/filtres');
Please login to merge, or discard this patch.
ecrire/inc/agenda.php 1 patch
Doc Comments   +64 added lines patch added patch discarded remove patch
@@ -48,6 +48,9 @@  discard block
 block discarded – undo
48 48
 /// Pas si simple: certains param ne sont pas remplaces 
49 49
 /// et doivent reprendre leur valeur par defaut -- esj.
50 50
 /// http://doc.spip.org/@calendrier_retire_args_ancre
51
+/**
52
+ * @param string $script
53
+ */
51 54
 function calendrier_retire_args_ancre($script)
52 55
 {
53 56
 
@@ -78,6 +81,9 @@  discard block
 block discarded – undo
78 81
 /// on peut definir generer_url_date et un htacces pour simplifier les URL
79 82
 
80 83
 // http://doc.spip.org/@calendrier_args_date
84
+/**
85
+ * @param string $finurl
86
+ */
81 87
 function calendrier_args_date($script, $annee, $mois, $jour, $type, $finurl) {
82 88
 	if (function_exists('generer_url_date'))
83 89
 		return generer_url_date($script, $annee, $mois, $jour, $type, $finurl);
@@ -89,6 +95,9 @@  discard block
 block discarded – undo
89 95
 	return $script . $finurl;
90 96
 }
91 97
 
98
+/**
99
+ * @param integer $time
100
+ */
92 101
 function calendrier_args_time($time, $script, $type, $fin='')
93 102
 {
94 103
 	if (!is_numeric($time)) $time = strtotime($time);
@@ -381,6 +390,9 @@  discard block
 block discarded – undo
381 390
 /// Appelle la fonction precedente en sachant que ca produira 1 TD/TR unique.
382 391
 /// retourne le contenu du TD
383 392
 
393
+/**
394
+ * @param string $finurl
395
+ */
384 396
 function http_calendrier_sept_un($annee, $mois, $jour,$evenements, $script, $finurl, $ancre='', $class='', $att='')
385 397
 {
386 398
 	$res = http_calendrier_mois_sept($annee, $mois, $jour, $jour,$evenements, $script, $finurl, $ancre);
@@ -391,6 +403,12 @@  discard block
 block discarded – undo
391 403
 
392 404
 /// typo pour l'espace public
393 405
 // http://doc.spip.org/@http_calendrier_mois_clics
406
+/**
407
+ * @param string $annee
408
+ * @param string $mois
409
+ * @param string $jour
410
+ * @param string $ancre
411
+ */
394 412
 function http_calendrier_mois_clics($annee, $mois, $jour, $script, $finurl, $ancre)
395 413
 {
396 414
 	$d = mktime(0,0,0,$mois, $jour, $annee);
@@ -484,6 +502,9 @@  discard block
 block discarded – undo
484 502
 }
485 503
 
486 504
 // http://doc.spip.org/@http_calendrier_semaine_noms
505
+/**
506
+ * @param string $finurl
507
+ */
487 508
 function http_calendrier_semaine_noms($annee, $mois, $jour, $script, $finurl, $ancre){
488 509
 
489 510
 	$bandeau = '';
@@ -553,6 +574,9 @@  discard block
 block discarded – undo
553 574
 }
554 575
 
555 576
 // http://doc.spip.org/@http_calendrier_jour_noms
577
+/**
578
+ * @param double $jour
579
+ */
556 580
 function http_calendrier_jour_noms($annee, $mois, $jour, $echelle, $partie_cal, $script, $ancre){
557 581
 
558 582
 	global $spip_ecran;
@@ -576,6 +600,9 @@  discard block
 block discarded – undo
576 600
 }
577 601
 
578 602
 // http://doc.spip.org/@http_calendrier_jour_sept
603
+/**
604
+ * @param double $jour
605
+ */
579 606
 function http_calendrier_jour_sept($annee, $mois, $jour, $echelle,  $partie_cal, $script, $ancre, $evt){
580 607
 	global $spip_ecran;
581 608
 
@@ -613,6 +640,9 @@  discard block
 block discarded – undo
613 640
 /// a travers la globale calendrier_partie ou sous la forme D_F
614 641
 
615 642
 // http://doc.spip.org/@http_calendrier_ics
643
+/**
644
+ * @param integer $largeur
645
+ */
616 646
 function http_calendrier_ics($annee, $mois, $jour, $echelle, $partie_cal, $largeur, $evt, $style='', $class='') {
617 647
 	global $spip_lang_left;
618 648
 
@@ -647,6 +677,12 @@  discard block
 block discarded – undo
647 677
 	  $sansheure;
648 678
 }
649 679
 
680
+/**
681
+ * @param string $date
682
+ * @param double $dimheure
683
+ * @param double $dimjour
684
+ * @param double $padding
685
+ */
650 686
 function http_calendrier_ics_div($evts, $date, $debut, $fin, $dimheure, $dimjour, $echelle, $largeur, $padding)
651 687
 {
652 688
 	global $spip_lang_left;
@@ -752,6 +788,10 @@  discard block
 block discarded – undo
752 788
 /// Selon l'echelle demandee, on affiche heure, 1/2 heure 1/4 heure, 5minutes.
753 789
 
754 790
 // http://doc.spip.org/@http_calendrier_ics_grille
791
+/**
792
+ * @param double $dimheure
793
+ * @param double $dimjour
794
+ */
755 795
 function http_calendrier_ics_grille($debut, $fin, $dimheure, $dimjour, $echelle)
756 796
 {
757 797
 	global $spip_lang_left, $spip_lang_right;
@@ -787,6 +827,11 @@  discard block
 block discarded – undo
787 827
 /// se placent a cote des autres, sinon en dessous
788 828
 
789 829
 // http://doc.spip.org/@http_calendrier_ics_trois
830
+/**
831
+ * @param double $dimjour
832
+ * @param double $echelle
833
+ * @param string $border
834
+ */
790 835
 function http_calendrier_ics_trois($evt, $largeur, $dimjour, $echelle, $border)
791 836
 {
792 837
 	global $spip_lang_left; 
@@ -858,6 +903,9 @@  discard block
 block discarded – undo
858 903
 }
859 904
 
860 905
 // http://doc.spip.org/@http_calendrier_avec_heure
906
+/**
907
+ * @param string $amj
908
+ */
861 909
 function http_calendrier_avec_heure($evenement, $amj)
862 910
 {
863 911
 	$jour_debut = substr($evenement['DTSTART'], 0,8);
@@ -1007,6 +1055,9 @@  discard block
 block discarded – undo
1007 1055
 /// et le $nom du calendrier
1008 1056
 
1009 1057
 // http://doc.spip.org/@http_calendrier_navigation
1058
+/**
1059
+ * @param string $type
1060
+ */
1010 1061
 function http_calendrier_navigation($annee, $mois, $jour, $echelle, $partie_cal, $nom, $script, $args_pred, $args_suiv, $type, $ancre)
1011 1062
 {
1012 1063
 	global $spip_lang_right, $spip_lang_left;
@@ -1163,6 +1214,9 @@  discard block
 block discarded – undo
1163 1214
 /// typographie un mois sous forme d'un tableau de 7 colonnes
1164 1215
 
1165 1216
 // http://doc.spip.org/@http_calendrier_agenda_rv
1217
+/**
1218
+ * @param string $fclic
1219
+ */
1166 1220
 function http_calendrier_agenda_rv ($annee, $mois, $les_rv, $fclic,
1167 1221
 				    $script='', $ancre='',
1168 1222
 				    $jour_ved='', $mois_ved='', $annee_ved='',
@@ -1261,6 +1315,9 @@  discard block
 block discarded – undo
1261 1315
 }
1262 1316
 
1263 1317
 // http://doc.spip.org/@http_calendrier_rv
1318
+/**
1319
+ * @param string $type
1320
+ */
1264 1321
 function http_calendrier_rv($messages, $type) {
1265 1322
 
1266 1323
 	$total = $date_rv = '';
@@ -1324,6 +1381,10 @@  discard block
 block discarded – undo
1324 1381
 }
1325 1382
 
1326 1383
 // http://doc.spip.org/@calendrier_categories
1384
+/**
1385
+ * @param string $table
1386
+ * @param string $objet
1387
+ */
1327 1388
 function calendrier_categories($table, $num, $objet)
1328 1389
 {
1329 1390
   if (function_exists('generer_calendrier_class'))
@@ -1337,6 +1398,9 @@  discard block
 block discarded – undo
1337 1398
 }
1338 1399
 
1339 1400
 // http://doc.spip.org/@http_calendrier_ics_message
1401
+/**
1402
+ * @param boolean $large
1403
+ */
1340 1404
 function http_calendrier_ics_message($annee, $mois, $jour, $large)
1341 1405
 {	
1342 1406
 
Please login to merge, or discard this patch.
ecrire/inc/aider.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -66,6 +66,9 @@
 block discarded – undo
66 66
 	return aider_icone(generer_url_ecrire("aide_index", $args));
67 67
 }
68 68
 
69
+/**
70
+ * @param string $url
71
+ */
69 72
 function aider_icone($url, $clic= '')
70 73
 {
71 74
 	global $spip_lang, $spip_lang_rtl;
Please login to merge, or discard this patch.
ecrire/inc/ajouter_documents.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -464,6 +464,9 @@  discard block
 block discarded – undo
464 464
 // A noter : une extension 'pdf ' passe dans la requete de controle
465 465
 // mysql> SELECT * FROM spip_types_documents WHERE extension="pdf ";
466 466
 // http://doc.spip.org/@corriger_extension
467
+/**
468
+ * @param string $ext
469
+ */
467 470
 function corriger_extension($ext) {
468 471
 	$ext = preg_replace(',[^a-z0-9],i', '', $ext);
469 472
 	switch ($ext) {
@@ -510,6 +513,11 @@  discard block
 block discarded – undo
510 513
 // Passer ca en squelette un de ces jours.
511 514
 
512 515
 // http://doc.spip.org/@liste_archive_jointe
516
+/**
517
+ * @param string $hash
518
+ * @param string $redirect
519
+ * @param string $iframe_redirect
520
+ */
513 521
 function liste_archive_jointe($valables, $zip, $type, $id, $mode, $id_document, $hash, $redirect, $iframe_redirect)
514 522
 {
515 523
 	include_spip('inc/layer');
Please login to merge, or discard this patch.
ecrire/inc/article_select.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -93,6 +93,9 @@
 block discarded – undo
93 93
 // on initialise les donnees de maniere specifique
94 94
 //
95 95
 // http://doc.spip.org/@article_select_trad
96
+/**
97
+ * @param integer $lier_trad
98
+ */
96 99
 function article_select_trad($lier_trad, $id_rubrique=0) {
97 100
 	// Recuperer les donnees de l'article original
98 101
 	$row = sql_fetsel("*", "spip_articles", "id_article=$lier_trad");
Please login to merge, or discard this patch.
ecrire/inc/auth.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -300,6 +300,9 @@  discard block
 block discarded – undo
300 300
 }
301 301
 
302 302
 // http://doc.spip.org/@auth_trace
303
+/**
304
+ * @param string $date
305
+ */
303 306
 function auth_trace($row, $date=null)
304 307
 {
305 308
 	// Indiquer la connexion. A la minute pres ca suffit.
@@ -454,6 +457,10 @@  discard block
 block discarded – undo
454 457
 	return $securiser_action('auth', "$auth_methode/$login", $redirect, true);
455 458
 }
456 459
 
460
+/**
461
+ * @param string $auth_methode
462
+ * @param string $login
463
+ */
457 464
 function auth_terminer_identifier_login($auth_methode, $login, $serveur=''){
458 465
 	$args = func_get_args();
459 466
 	$auteur = auth_administrer('terminer_identifier_login',$args);
Please login to merge, or discard this patch.
ecrire/inc/autoriser.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -122,6 +122,10 @@  discard block
 block discarded – undo
122 122
 // une globale pour aller au plus vite dans la fonction generique ci dessus
123 123
 $GLOBALS['autoriser_exception']=array();
124 124
 // http://doc.spip.org/@autoriser_exception
125
+/**
126
+ * @param string $type
127
+ * @param integer $id
128
+ */
125 129
 function autoriser_exception($faire,$type,$id,$autoriser=true){
126 130
 	// une static innaccessible par url pour verifier que la globale est positionnee a bon escient
127 131
 	static $autorisation;
@@ -709,6 +713,10 @@  discard block
 block discarded – undo
709 713
 }
710 714
 
711 715
 // http://doc.spip.org/@autoriser_rubrique_editermots_dist
716
+/**
717
+ * @param string $quoi
718
+ * @param integer $id
719
+ */
712 720
 function autoriser_rubrique_editermots_dist($faire,$quoi,$id,$qui,$opts){
713 721
 	// on recupere les champs du groupe s'ils ne sont pas passes en opt
714 722
 	if (!isset($opts['groupe_champs'])){
Please login to merge, or discard this patch.