Completed
Push — spip-2.1 ( b6b097 )
by cam
42:28 queued 30:44
created
ecrire/public/normaliser.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -71,6 +71,9 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
ecrire/public/parametrer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
183 183
  * http://doc.spip.org/@tester_redirection
184 184
  *
185 185
  * @param string $fond
186
- * @param array $contexte
186
+ * @param string $contexte
187 187
  * @param string $connect
188 188
  * @return array|bool
189 189
  */
Please login to merge, or discard this patch.
ecrire/public/phraser_html.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -201,6 +201,9 @@  discard block
 block discarded – undo
201 201
 // on recommence tant qu'il y a des [...] en substituant a l'appel suivant
202 202
 
203 203
 // http://doc.spip.org/@phraser_champs_etendus
204
+/**
205
+ * @param integer $ligne
206
+ */
204 207
 function phraser_champs_etendus($texte, $ligne,$result) {
205 208
 	if ($texte==="") return $result;
206 209
 	$sep = '##';
@@ -216,6 +219,9 @@  discard block
 block discarded – undo
216 219
 // Tres chevelu
217 220
 
218 221
 // http://doc.spip.org/@phraser_args
222
+/**
223
+ * @param string $fin
224
+ */
219 225
 function phraser_args($texte, $fin, $sep, $result, &$pointeur_champ) {
220 226
   $texte = ltrim($texte);
221 227
   while (($texte!=="") && strpos($fin, $texte[0]) === false) {
@@ -229,6 +235,9 @@  discard block
 block discarded – undo
229 235
 }
230 236
 
231 237
 // http://doc.spip.org/@phraser_arg
238
+/**
239
+ * @param string $texte
240
+ */
232 241
 function phraser_arg(&$texte, $sep, $result, &$pointeur_champ) {
233 242
 	preg_match(",^(\|?[^}{)|]*)(.*)$,ms", $texte, $match);
234 243
 	$suite = ltrim($match[2]);
@@ -360,6 +369,9 @@  discard block
 block discarded – undo
360 369
 }
361 370
 
362 371
 // http://doc.spip.org/@phraser_champs_interieurs
372
+/**
373
+ * @param string $sep
374
+ */
363 375
 function phraser_champs_interieurs($texte, $ligne, $sep, $result) {
364 376
 	$i = 0; // en fait count($result)
365 377
 	$x = "";
@@ -585,6 +597,10 @@  discard block
 block discarded – undo
585 597
 }
586 598
 
587 599
 // http://doc.spip.org/@phraser_critere_infixe
600
+/**
601
+ * @param string $arg1
602
+ * @param string $arg2
603
+ */
588 604
 function phraser_critere_infixe($arg1, $arg2, $args, $op, $not, $cond)
589 605
 {
590 606
 	$args[0] = new Texte;
Please login to merge, or discard this patch.
ecrire/public/quete.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -23,10 +23,19 @@  discard block
 block discarded – undo
23 23
 # retourne le chapeau d'un article, et seulement s'il est publie
24 24
 
25 25
 // http://doc.spip.org/@quete_chapo
26
+/**
27
+ * @param integer $id_article
28
+ * @param string $connect
29
+ *
30
+ * @return string
31
+ */
26 32
 function quete_chapo($id_article, $connect) {
27 33
 	return sql_getfetsel('chapo', 'spip_articles', array("id_article=".intval($id_article), "statut='publie'"), '','','','',$connect);
28 34
 }
29 35
 
36
+/**
37
+ * @param string $table
38
+ */
30 39
 function quete_parent_lang($table,$id,$connect=''){
31 40
 	static $cache_quete = array();
32 41
 
@@ -53,6 +62,9 @@  discard block
 block discarded – undo
53 62
 # retourne la rubrique d'un article
54 63
 
55 64
 // http://doc.spip.org/@quete_rubrique
65
+/**
66
+ * @param string $serveur
67
+ */
56 68
 function quete_rubrique($id_article, $serveur) {
57 69
 	$id_parent = quete_parent_lang('spip_articles',$id_article,$serveur);
58 70
 	return $id_parent['id_rubrique'];
@@ -126,6 +138,10 @@  discard block
 block discarded – undo
126 138
 
127 139
 // recuperer une meta sur un site distant (en local il y a plus simple)
128 140
 // http://doc.spip.org/@quete_meta
141
+/**
142
+ * @param string $nom
143
+ * @param string $serveur
144
+ */
129 145
 function quete_meta($nom, $serveur) {
130 146
 	return sql_getfetsel("valeur", "spip_meta", "nom=" . sql_quote($nom),
131 147
 			     '','','','',$serveur);
Please login to merge, or discard this patch.
ecrire/public/references.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -61,6 +61,9 @@  discard block
 block discarded – undo
61 61
 }
62 62
 
63 63
 // http://doc.spip.org/@index_tables_en_pile
64
+/**
65
+ * @param string $nom_champ
66
+ */
64 67
 function index_tables_en_pile($idb, $nom_champ, &$boucles) {
65 68
 	global $exceptions_des_tables;
66 69
 
@@ -467,6 +470,9 @@  discard block
 block discarded – undo
467 470
 
468 471
 // Filtres et,ou,oui,non,sinon,xou,xor,and,or,not,yes
469 472
 // et comparateurs
473
+/**
474
+ * @param string $arg
475
+ */
470 476
 function filtre_logique($fonc, $code, $arg)
471 477
 {
472 478
 	global $table_criteres_infixes;
@@ -490,6 +496,9 @@  discard block
 block discarded – undo
490 496
 }
491 497
 
492 498
 // http://doc.spip.org/@compose_filtres_args
499
+/**
500
+ * @param string $sep
501
+ */
493 502
 function compose_filtres_args($p, $args, $sep)
494 503
 {
495 504
 	$arglist = "";
@@ -531,6 +540,10 @@  discard block
 block discarded – undo
531 540
 //
532 541
 
533 542
 // http://doc.spip.org/@rindex_pile
543
+/**
544
+ * @param string $champ
545
+ * @param string $motif
546
+ */
534 547
 function rindex_pile($p, $champ, $motif) 
535 548
 {
536 549
 	$n = 0;
Please login to merge, or discard this patch.
ecrire/public/tracer.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -36,6 +36,9 @@
 block discarded – undo
36 36
 }
37 37
 
38 38
 // http://doc.spip.org/@trace_query_chrono
39
+/**
40
+ * @param string $m2
41
+ */
39 42
 function trace_query_chrono($m1, $m2, $query, $result, $serveur='')
40 43
 {
41 44
 	static $tt = 0, $nb=0;
Please login to merge, or discard this patch.
ecrire/public/vertebrer.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@
 block discarded – undo
27 27
 // distingue champ numerique et non numerique
28 28
 
29 29
 // http://doc.spip.org/@vertebrer_sort
30
+/**
31
+ * @param string $direction
32
+ */
30 33
 function vertebrer_sort($fields, $direction)
31 34
 {
32 35
 	$res = '';
Please login to merge, or discard this patch.
ecrire/req/pg.php 1 patch
Doc Comments   +28 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,6 +105,11 @@  discard block
 block discarded – undo
105 105
 
106 106
 // Par ou ca passe une fois les traductions faites
107 107
 // http://doc.spip.org/@spip_pg_trace_query
108
+/**
109
+ * @param string $query
110
+ *
111
+ * @return resource
112
+ */
108 113
 function spip_pg_trace_query($query, $serveur='')
109 114
 {
110 115
 	$connexion = &$GLOBALS['connexions'][$serveur ? strtolower($serveur) : 0];
@@ -238,6 +243,9 @@  discard block
 block discarded – undo
238 243
 }
239 244
 	      
240 245
 // http://doc.spip.org/@spip_pg_alter_change
246
+/**
247
+ * @param string $arg
248
+ */
241 249
 function spip_pg_alter_change($table, $arg, $serveur='',$requeter=true)
242 250
 {
243 251
 	if (!preg_match('/^`?(\w+)`?\s+`?(\w+)`?\s+(.*?)\s*(DEFAULT .*?)?(NOT\s+NULL)?\s*(DEFAULT .*?)?$/i',$arg, $r)) {
@@ -357,7 +365,7 @@  discard block
 block discarded – undo
357 365
  * 
358 366
  * @param string $nom : nom de l'index
359 367
  * @param string $table : table sql de l'index
360
- * @param string/array $champs : liste de champs sur lesquels s'applique l'index
368
+ * @param string $champs : liste de champs sur lesquels s'applique l'index
361 369
  * @param string $serveur : nom de la connexion sql utilisee
362 370
  * @param bool $requeter : true pour executer la requete ou false pour retourner le texte de la requete
363 371
  * 
@@ -484,6 +492,9 @@  discard block
 block discarded – undo
484 492
 }
485 493
 
486 494
 // http://doc.spip.org/@spip_pg_orderby
495
+/**
496
+ * @param string $order
497
+ */
487 498
 function spip_pg_orderby($order, $select)
488 499
 {
489 500
 	$res = array();
@@ -631,6 +642,9 @@  discard block
 block discarded – undo
631 642
 }
632 643
 
633 644
 // http://doc.spip.org/@calculer_pg_where
645
+/**
646
+ * @param string $v
647
+ */
634 648
 function calculer_pg_where($v)
635 649
 {
636 650
 	if (!is_array($v))
@@ -654,6 +668,9 @@  discard block
 block discarded – undo
654 668
 
655 669
 
656 670
 // http://doc.spip.org/@calculer_pg_expression
671
+/**
672
+ * @param string $expression
673
+ */
657 674
 function calculer_pg_expression($expression, $v, $join = 'AND'){
658 675
 	if (empty($v))
659 676
 		return '';
@@ -700,6 +717,9 @@  discard block
 block discarded – undo
700 717
 }
701 718
 
702 719
 // http://doc.spip.org/@spip_pg_fetch
720
+/**
721
+ * @param resource $res
722
+ */
703 723
 function spip_pg_fetch($res, $t='', $serveur='',$requeter=true) {
704 724
 
705 725
 	if ($res) $res = pg_fetch_array($res, NULL, PGSQL_ASSOC);
@@ -756,6 +776,10 @@  discard block
 block discarded – undo
756 776
 }
757 777
 
758 778
 // http://doc.spip.org/@spip_pg_insert
779
+/**
780
+ * @param string $champs
781
+ * @param string $valeurs
782
+ */
759 783
 function spip_pg_insert($table, $champs, $valeurs, $desc=array(), $serveur='',$requeter=true) {
760 784
 	$connexion = &$GLOBALS['connexions'][$serveur ? strtolower($serveur) : 0];
761 785
 	$prefixe = $connexion['prefixe'];
@@ -1061,6 +1085,9 @@  discard block
 block discarded – undo
1061 1085
 }
1062 1086
 
1063 1087
 // http://doc.spip.org/@spip_pg_error
1088
+/**
1089
+ * @param string $serveur
1090
+ */
1064 1091
 function spip_pg_error($query='', $serveur, $requeter=true) {
1065 1092
 	$link = $GLOBALS['connexions'][$serveur ? strtolower($serveur) : 0]['link'];
1066 1093
 	$s = $link ? pg_last_error($link) : pg_last_error();
Please login to merge, or discard this patch.
ecrire/req/sqlite_fonctions.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -85,6 +85,9 @@  discard block
 block discarded – undo
85 85
 
86 86
 // permet au besoin de charger des fonctions ailleurs par _sqlite_init_functions();
87 87
 // http://doc.spip.org/@_sqlite_add_function
88
+/**
89
+ * @param string $f
90
+ */
88 91
 function _sqlite_add_function(&$sqlite, &$f, &$r){
89 92
 	if (_sqlite_is_version(3, $sqlite)){
90 93
 		isset($r[1])
@@ -246,6 +249,9 @@  discard block
 block discarded – undo
246 249
 
247 250
 
248 251
 // http://doc.spip.org/@_sqlite_func_unix_timestamp
252
+/**
253
+ * @param string $d
254
+ */
249 255
 function _sqlite_func_unix_timestamp($d) {
250 256
 	//2005-12-02 20:53:53
251 257
 	#spip_log("Passage avec UNIX_TIMESTAMP : $d",'debug');
Please login to merge, or discard this patch.