Completed
Push — spip-2.1 ( b6b097 )
by cam
42:28 queued 30:44
created
ecrire/inc/pclzip.php 1 patch
Doc Comments   +26 added lines patch added patch discarded remove patch
@@ -268,6 +268,10 @@  discard block
 block discarded – undo
268 268
   //   The list of the added files, with a status of the add action.
269 269
   //   (see PclZip::listContent() for list entry format)
270 270
   // --------------------------------------------------------------------------------
271
+
272
+  /**
273
+   * @param string $p_filelist
274
+   */
271 275
   function create($p_filelist)
272 276
   {
273 277
     $v_result=1;
@@ -2335,6 +2339,10 @@  discard block
 block discarded – undo
2335 2339
   // Description :
2336 2340
   // Parameters :
2337 2341
   // --------------------------------------------------------------------------------
2342
+
2343
+  /**
2344
+   * @param string $p_mode
2345
+   */
2338 2346
   function privOpenFd($p_mode)
2339 2347
   {
2340 2348
     $v_result=1;
@@ -4151,6 +4159,10 @@  discard block
 block discarded – undo
4151 4159
   // Parameters :
4152 4160
   // Return Values :
4153 4161
   // --------------------------------------------------------------------------------
4162
+
4163
+  /**
4164
+   * @param string $p_string
4165
+   */
4154 4166
   function privExtractFileAsString(&$p_entry, &$p_string, &$p_options)
4155 4167
   {
4156 4168
     $v_result=1;
@@ -5044,6 +5056,10 @@  discard block
 block discarded – undo
5044 5056
   // Parameters :
5045 5057
   // Return Values :
5046 5058
   // --------------------------------------------------------------------------------
5059
+
5060
+  /**
5061
+   * @param PclZip $p_archive_to_add
5062
+   */
5047 5063
   function privMerge(&$p_archive_to_add)
5048 5064
   {
5049 5065
     $v_result=1;
@@ -5551,6 +5567,11 @@  discard block
 block discarded – undo
5551 5567
   //             3 : src & dest gzip
5552 5568
   // Return Values :
5553 5569
   // --------------------------------------------------------------------------------
5570
+
5571
+  /**
5572
+   * @param integer $p_src
5573
+   * @param integer $p_dest
5574
+   */
5554 5575
   function PclZipUtilCopyBlock($p_src, $p_dest, $p_size, $p_mode=0)
5555 5576
   {
5556 5577
     $v_result = 1;
@@ -5613,6 +5634,11 @@  discard block
 block discarded – undo
5613 5634
   // Return Values :
5614 5635
   //   1 on success, 0 on failure.
5615 5636
   // --------------------------------------------------------------------------------
5637
+
5638
+  /**
5639
+   * @param string $p_src
5640
+   * @param string $p_dest
5641
+   */
5616 5642
   function PclZipUtilRename($p_src, $p_dest)
5617 5643
   {
5618 5644
     $v_result = 1;
Please login to merge, or discard this patch.
ecrire/inc/plugin.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@  discard block
 block discarded – undo
21 21
 // besoin de inc_meta
22 22
 include_spip('inc/texte');
23 23
 
24
+/**
25
+ * @param string $op
26
+ */
24 27
 function spip_version_compare($v1,$v2,$op){
25 28
 	$v1 = strtolower(preg_replace(',([0-9])[\s-.]?(dev|alpha|a|beta|b|rc|pl|p),i','\\1.\\2',$v1));
26 29
 	$v2 = strtolower(preg_replace(',([0-9])[\s-.]?(dev|alpha|a|beta|b|rc|pl|p),i','\\1.\\2',$v2));
@@ -42,6 +45,9 @@  discard block
 block discarded – undo
42 45
 // $dir_plugins pour forcer un repertoire (ex: _DIR_EXTENSIONS)
43 46
 // _DIR_PLUGINS_SUPPL pour aller en chercher ailleurs (separes par des ":")
44 47
 // http://doc.spip.org/@liste_plugin_files
48
+/**
49
+ * @param string $dir_plugins
50
+ */
45 51
 function liste_plugin_files($dir_plugins = null){
46 52
 	static $plugin_files=array();
47 53
 
@@ -307,6 +313,9 @@  discard block
 block discarded – undo
307 313
  * @return unknown
308 314
  */
309 315
 // http://doc.spip.org/@liste_chemin_plugin_actifs
316
+/**
317
+ * @param string $dir_plugins
318
+ */
310 319
 function liste_chemin_plugin_actifs($dir_plugins=_DIR_PLUGINS){
311 320
 	$liste = liste_plugin_actifs();
312 321
 	foreach ($liste as $prefix=>$infos) {
@@ -368,6 +377,9 @@  discard block
 block discarded – undo
368 377
     return $plugin_s;
369 378
 }
370 379
 
380
+/**
381
+ * @param boolean $pipe_recherche
382
+ */
371 383
 function ecrire_plugin_actifs2($plugin_valides, $ordre, $infos, $pipe_recherche)
372 384
 {	
373 385
 	static $liste_pipe_manquants=array();
@@ -584,6 +596,9 @@  discard block
 block discarded – undo
584 596
 	return $liste_fichier_verif;
585 597
 }
586 598
 
599
+/**
600
+ * @param string $nom
601
+ */
587 602
 function ecrire_fichier_actif($nom, $corps)
588 603
 {
589 604
     $corps = '<'."?php\nif (defined('_ECRIRE_INC_VERSION')) {\n$corps}\n?".'>';
@@ -609,6 +624,9 @@  discard block
 block discarded – undo
609 624
 }
610 625
 
611 626
 // http://doc.spip.org/@spip_plugin_install
627
+/**
628
+ * @param string $action
629
+ */
612 630
 function spip_plugin_install($action, $infos){
613 631
 	$prefix = $infos['prefix'];
614 632
 	$version_cible = $infos['version_base'];
Please login to merge, or discard this patch.
ecrire/inc/presentation.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -22,6 +22,9 @@  discard block
 block discarded – undo
22 22
 define('_INTERFACE_ONGLETS', false);
23 23
 
24 24
 // http://doc.spip.org/@echo_log
25
+/**
26
+ * @param string $f
27
+ */
25 28
 function echo_log($f, $ret) {
26 29
 	spip_log("Page " . self() . " function $f: echo ".substr($ret,0,50)."...",'echo');
27 30
 	echo
@@ -303,6 +306,9 @@  discard block
 block discarded – undo
303 306
 // Afficher un petit "+" pour lien vers autre page
304 307
 
305 308
 // http://doc.spip.org/@afficher_plus
309
+/**
310
+ * @param string $lien
311
+ */
306 312
 function afficher_plus($lien) {
307 313
 	global $spip_lang_right, $spip_display;
308 314
 
@@ -367,6 +373,9 @@  discard block
 block discarded – undo
367 373
 }
368 374
 
369 375
 // http://doc.spip.org/@generer_onclic_ajax
376
+/**
377
+ * @param integer $val
378
+ */
370 379
 function generer_onclic_ajax($url, $idom, $val)
371 380
 {
372 381
 	return "\nonclick=\"return charger_id_url('"
@@ -598,6 +607,9 @@  discard block
 block discarded – undo
598 607
 }
599 608
 
600 609
 // http://doc.spip.org/@icone
610
+/**
611
+ * @param string $fond
612
+ */
601 613
 function icone($texte, $lien, $fond, $fonction="", $align="", $echo=false){
602 614
 	$retour = "<div style='padding-top: 20px;width:100px' class='icone36'>" . icone_inline($texte, $lien, $fond, $fonction, $align) . "</div>";
603 615
 	if ($echo) echo_log('icone',$retour); else return $retour;
@@ -776,6 +788,9 @@  discard block
 block discarded – undo
776 788
 
777 789
 
778 790
 // http://doc.spip.org/@formulaire_recherche
791
+/**
792
+ * @param string $page
793
+ */
779 794
 function formulaire_recherche($page, $complement=""){
780 795
 	$recherche = _request('recherche');
781 796
 	$recherche_aff = entites_html($recherche);
@@ -1095,6 +1110,9 @@  discard block
 block discarded – undo
1095 1110
 
1096 1111
 // Voir en ligne, ou apercu, ou rien (renvoie tout le bloc)
1097 1112
 // http://doc.spip.org/@voir_en_ligne
1113
+/**
1114
+ * @param string $type
1115
+ */
1098 1116
 function voir_en_ligne ($type, $id, $statut=false, $image='racine-24.gif', $af = true, $inline=true) {
1099 1117
 
1100 1118
 	$en_ligne = $message = '';
Please login to merge, or discard this patch.
ecrire/inc/presenter_liste.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -119,6 +119,9 @@
 block discarded – undo
119 119
 }
120 120
 
121 121
 // http://doc.spip.org/@affiche_tranche_bandeau
122
+/**
123
+ * @param string $idom
124
+ */
122 125
 function affiche_tranche_bandeau(&$requete, $idom, $url='', $cpt=NULL, $pas=10)
123 126
 {
124 127
 	if (!isset($requete['GROUP BY'])) $requete['GROUP BY'] = '';
Please login to merge, or discard this patch.
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.