Completed
Push — spip-2.1 ( 1b0d01...40676b )
by cam
14:08
created
ecrire/inc/puce_statut.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -364,6 +364,11 @@
 block discarded – undo
364 364
 }
365 365
 
366 366
 // http://doc.spip.org/@afficher_script_statut
367
+/**
368
+ * @param integer $n
369
+ * @param string $img
370
+ * @param string $statut
371
+ */
367 372
 function afficher_script_statut($id, $type, $n, $img, $statut, $titre, $act='') {
368 373
 	$i = http_wrapper($img);
369 374
 	$h = generer_action_auteur("instituer_$type","$id-$statut");
Please login to merge, or discard this patch.
ecrire/inc/securiser_action.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -36,6 +36,10 @@  discard block
 block discarded – undo
36 36
 // Attention: PHP applique urldecode sur $_GET mais pas sur $_POST
37 37
 // cf http://fr.php.net/urldecode#48481
38 38
 // http://doc.spip.org/@securiser_action_auteur
39
+/**
40
+ * @param string $action
41
+ * @param string $arg
42
+ */
39 43
 function securiser_action_auteur($action, $arg, $redirect="", $mode=false, $att='', $public=false)
40 44
 {
41 45
 	static $id_auteur=0, $pass;
@@ -99,6 +103,9 @@  discard block
 block discarded – undo
99 103
 }
100 104
 
101 105
 // http://doc.spip.org/@_action_auteur
106
+/**
107
+ * @param string $alea
108
+ */
102 109
 function _action_auteur($action, $id_auteur, $pass, $alea) {
103 110
 	static $sha = array();
104 111
 	if (!isset($sha[$id_auteur.$pass.$alea])){
@@ -169,6 +176,9 @@  discard block
 block discarded – undo
169 176
 }
170 177
 
171 178
 // http://doc.spip.org/@verifier_cle_action
179
+/**
180
+ * @param string $action
181
+ */
172 182
 function verifier_cle_action($action, $cle) {
173 183
 	return ($cle == calculer_cle_action($action));
174 184
 }
Please login to merge, or discard this patch.
ecrire/inc/selectionner.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -58,6 +58,12 @@
 block discarded – undo
58 58
 }
59 59
 
60 60
 // http://doc.spip.org/@construire_selectionner_hierarchie
61
+/**
62
+ * @param string $idom
63
+ * @param string|boolean $racine
64
+ * @param string $url
65
+ * @param string $name
66
+ */
61 67
 function construire_selectionner_hierarchie($idom, $liste, $racine, $url, $name, $url_init='')
62 68
 {
63 69
 	global $spip_lang_right;
Please login to merge, or discard this patch.
ecrire/inc/session.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -113,6 +113,9 @@  discard block
 block discarded – undo
113 113
 
114 114
 // Ajouter une donnee dans la session SPIP
115 115
 // http://doc.spip.org/@session_set
116
+/**
117
+ * @param string $nom
118
+ */
116 119
 function session_set($nom, $val=null) {
117 120
 	// On ajoute la valeur dans la globale
118 121
 	$GLOBALS['visiteur_session'][$nom] = $val;
@@ -123,6 +126,9 @@  discard block
 block discarded – undo
123 126
 
124 127
 // Lire une valeur dans la session SPIP
125 128
 // http://doc.spip.org/@session_get
129
+/**
130
+ * @param string $nom
131
+ */
126 132
 function session_get($nom) {
127 133
 	return isset($GLOBALS['visiteur_session'][$nom]) ? $GLOBALS['visiteur_session'][$nom] : null;
128 134
 }
@@ -291,6 +297,9 @@  discard block
 block discarded – undo
291 297
 // Calcule le nom du fichier session
292 298
 //
293 299
 // http://doc.spip.org/@fichier_session
300
+/**
301
+ * @param string $alea
302
+ */
294 303
 function fichier_session($alea, $tantpis=false) {
295 304
 
296 305
 	if (!isset($GLOBALS['meta'][$alea])) {
Please login to merge, or discard this patch.
ecrire/inc/statistiques.php 1 patch
Doc Comments   +34 added lines patch added patch discarded remove patch
@@ -13,6 +13,10 @@  discard block
 block discarded – undo
13 13
 if (!defined('_ECRIRE_INC_VERSION')) return;
14 14
 
15 15
 // http://doc.spip.org/@aff_statistique_visites_popularite
16
+/**
17
+ * @param string $serveur
18
+ * @param integer $liste
19
+ */
16 20
 function aff_statistique_visites_popularite($serveur, $id_article, &$classement, &$liste){
17 21
 	// Par popularite
18 22
 	$result = sql_select("id_article, titre, popularite, visites", "spip_articles", "statut='publie' AND popularite > 0", "", "popularite DESC",'','',$serveur);
@@ -139,6 +143,10 @@  discard block
 block discarded – undo
139 143
 }
140 144
 
141 145
 // http://doc.spip.org/@cadre_stat
146
+/**
147
+ * @param string[] $stats
148
+ * @param string $table
149
+ */
142 150
 function cadre_stat($stats, $table, $id_article)
143 151
 {
144 152
 	if (!$stats) return '';
@@ -149,6 +157,10 @@  discard block
 block discarded – undo
149 157
 }
150 158
 
151 159
 // http://doc.spip.org/@statistiques_collecte_date
160
+/**
161
+ * @param string $count
162
+ * @param string $table
163
+ */
152 164
 function statistiques_collecte_date($count, $date, $table, $where, $serveur)
153 165
 {
154 166
 	$result = sql_select("$count AS n, $date AS d", $table, $where, 'd', 'd', '','', $serveur);
@@ -159,6 +171,10 @@  discard block
 block discarded – undo
159 171
 }
160 172
 
161 173
 // http://doc.spip.org/@statistiques_tous
174
+/**
175
+ * @param string $table
176
+ * @param string $order
177
+ */
162 178
 function statistiques_tous($log, $id_article, $table, $where, $order, $serveur, $duree, $interval, $total, $popularite, $liste='', $classement=array(), $script='')
163 179
 {
164 180
 	$r = array_keys($log);
@@ -318,6 +334,10 @@  discard block
 block discarded – undo
318 334
 // Presentation graphique
319 335
 // (rq: on n'affiche pas le jour courant, c'est a la charge de la prevision)
320 336
 // http://doc.spip.org/@stat_log1
337
+/**
338
+ * @param double $agreg
339
+ * @param string $script
340
+ */
321 341
 function stat_log1($log, $agreg, $date_today, $largeur, $rapport, $interval, $script) {
322 342
 	$res = '';
323 343
 	$rien = http_img_rien($largeur, 1, 'trait_bas', '');
@@ -365,6 +385,9 @@  discard block
 block discarded – undo
365 385
 }
366 386
 
367 387
 // http://doc.spip.org/@statistiques_vides
388
+/**
389
+ * @param integer $moyenne
390
+ */
368 391
 function statistiques_vides($prec, $largeur, $rapport, $moyenne, $script)
369 392
 {
370 393
 	$hauteur_moyenne = round($moyenne*$rapport)-1;
@@ -412,6 +435,11 @@  discard block
 block discarded – undo
412 435
 
413 436
 // Dimanche en couleur foncee
414 437
 // http://doc.spip.org/@statistiques_jour
438
+/**
439
+ * @param double $moyenne
440
+ * @param double $hauteur
441
+ * @param boolean $dimanche
442
+ */
415 443
 function statistiques_jour($key, $value, $largeur, $moyenne, $hauteur, $rapport, $dimanche, $script)
416 444
 {
417 445
 	$hauteur_moyenne = round($moyenne * $rapport) - 1;
@@ -448,6 +476,9 @@  discard block
 block discarded – undo
448 476
 }
449 477
 
450 478
 // http://doc.spip.org/@statistiques_nom_des_mois
479
+/**
480
+ * @param double $agreg
481
+ */
451 482
 function statistiques_nom_des_mois($date_debut, $date_today, $largeur, $pas, $agreg)
452 483
 {
453 484
 	global $spip_lang_left;
@@ -474,6 +505,9 @@  discard block
 block discarded – undo
474 505
 }
475 506
 
476 507
 // http://doc.spip.org/@statistiques_par_mois
508
+/**
509
+ * @param string $script
510
+ */
477 511
 function statistiques_par_mois($entrees, $script){
478 512
 
479 513
 	$maxgraph = maxgraph(max($entrees));
Please login to merge, or discard this patch.
ecrire/inc/suivi_versions.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -135,6 +135,9 @@  discard block
 block discarded – undo
135 135
 }
136 136
 
137 137
 // http://doc.spip.org/@revisions_bouton
138
+/**
139
+ * @param string $lang_dir
140
+ */
138 141
 function revisions_bouton($id_article, $id_auteur, $id_version, $titre, $statut, $date, $lang_dir, $nom)
139 142
 {
140 143
 	$titre_bouton = "<span class='arial2'>";
@@ -149,6 +152,15 @@  discard block
 block discarded – undo
149 152
 }
150 153
 
151 154
 // http://doc.spip.org/@revisions_entete_boite
155
+/**
156
+ * @param boolean $court
157
+ * @param integer $debut
158
+ * @param integer $id_secteur
159
+ * @param string $lang
160
+ * @param integer $nb_aff
161
+ * @param string $req_from
162
+ * @param boolean $uniq_auteur
163
+ */
152 164
 function revisions_entete_boite($court, $debut, $id_secteur, $lang, $nb_aff, $req_from, $req_where, $uniq_auteur)
153 165
 {
154 166
 
Please login to merge, or discard this patch.
ecrire/inc/syndic.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -281,6 +281,9 @@  discard block
 block discarded – undo
281 281
 // helas strtotime ne reconnait pas le format W3C
282 282
 // http://www.w3.org/TR/NOTE-datetime
283 283
 // http://doc.spip.org/@my_strtotime
284
+/**
285
+ * @param string $la_date
286
+ */
284 287
 function my_strtotime($la_date) {
285 288
 
286 289
 	// format complet
@@ -317,6 +320,9 @@  discard block
 block discarded – undo
317 320
 // A partir d'un <dc:subject> ou autre essayer de recuperer
318 321
 // le mot et son url ; on cree <a href="url" rel="tag">mot</a>
319 322
 // http://doc.spip.org/@creer_tag
323
+/**
324
+ * @param string $type
325
+ */
320 326
 function creer_tag($mot,$type,$url) {
321 327
 	if (!strlen($mot = trim($mot))) return '';
322 328
 	$mot = "<a rel=\"tag\">$mot</a>";
Please login to merge, or discard this patch.
ecrire/inc/texte.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -478,6 +478,9 @@  discard block
 block discarded – undo
478 478
 // avec protection prealable des balises HTML et SPIP
479 479
 
480 480
 // http://doc.spip.org/@typo
481
+/**
482
+ * @param string $connect
483
+ */
481 484
 function typo($letexte, $echapper=true, $connect=null) {
482 485
 	// Plus vite !
483 486
 	if (!$letexte) return $letexte;
@@ -581,6 +584,9 @@  discard block
 block discarded – undo
581 584
 define('_RACCOURCI_THEAD', true);
582 585
 
583 586
 // http://doc.spip.org/@traiter_tableau
587
+/**
588
+ * @param string $bloc
589
+ */
584 590
 function traiter_tableau($bloc) {
585 591
 
586 592
 	// Decouper le tableau en lignes
@@ -809,6 +815,9 @@  discard block
 block discarded – undo
809 815
 // Sert aussi a nettoyer un texte qu'on veut mettre dans un <a> etc.
810 816
 // TODO: gerer les modeles ?
811 817
 // http://doc.spip.org/@supprime_img
818
+/**
819
+ * @param string $message
820
+ */
812 821
 function supprime_img($letexte, $message=NULL) {
813 822
 	if ($message===NULL) $message = '(' . _T('img_indisponible') . ')';
814 823
 	return preg_replace(',<(img|doc|emb)([0-9]+)(\|([^>]*))?'.'\s*/?'.'>,i',
@@ -823,6 +832,9 @@  discard block
 block discarded – undo
823 832
 // deuxieme argument : forcer les <p> meme pour un seul paragraphe
824 833
 //
825 834
 // http://doc.spip.org/@paragrapher
835
+/**
836
+ * @param string $letexte
837
+ */
826 838
 function paragrapher($letexte, $forcer=true) {
827 839
 	global $class_spip;
828 840
 
@@ -884,6 +896,9 @@  discard block
 block discarded – undo
884 896
 
885 897
 // Harmonise les retours chariots et mange les paragraphes html
886 898
 // http://doc.spip.org/@traiter_retours_chariots
899
+/**
900
+ * @return string
901
+ */
887 902
 function traiter_retours_chariots($letexte) {
888 903
 	$letexte = preg_replace(",\r\n?,S", "\n", $letexte);
889 904
 	$letexte = preg_replace(",<p[>[:space:]],iS", "\n\n\\0", $letexte);
Please login to merge, or discard this patch.
ecrire/inc/tourner.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -68,6 +68,9 @@  discard block
 block discarded – undo
68 68
 }
69 69
 
70 70
 // http://doc.spip.org/@tourner_greffe
71
+/**
72
+ * @param string|null $res
73
+ */
71 74
 function tourner_greffe($id_document, $document, $url, $res)
72 75
 {
73 76
 	$res .= "<div style='text-align: center;'>"
@@ -81,6 +84,9 @@  discard block
 block discarded – undo
81 84
 }
82 85
 
83 86
 // http://doc.spip.org/@boutons_rotateurs
87
+/**
88
+ * @param integer $id
89
+ */
84 90
 function boutons_rotateurs($document, $type, $id, $id_document, $script) {
85 91
 	global $spip_lang_right;
86 92
 
@@ -112,6 +118,10 @@  discard block
 block discarded – undo
112 118
 }
113 119
 
114 120
 // http://doc.spip.org/@bouton_tourner_document
121
+/**
122
+ * @param integer $rot
123
+ * @param string $img
124
+ */
115 125
 function bouton_tourner_document($id, $id_document, $script, $rot, $type, $img, $title)
116 126
 {
117 127
   return ajax_action_auteur("tourner",
Please login to merge, or discard this patch.