Completed
Push — spip-2.1 ( 1b0d01...40676b )
by cam
14:08
created
ecrire/inc/lien.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -175,6 +175,9 @@  discard block
 block discarded – undo
175 175
 define('_RACCOURCI_ATTRIBUTS', '/^(.*?)([|]([^<>]*?))?([{]([a-z_]*)[}])?$/');
176 176
 
177 177
 // http://doc.spip.org/@traiter_raccourci_lien_atts
178
+/**
179
+ * @param string $texte
180
+ */
178 181
 function traiter_raccourci_lien_atts($texte) {
179 182
 
180 183
 	$bulle = $hlang = false;
@@ -390,6 +393,9 @@  discard block
 block discarded – undo
390 393
 }
391 394
 
392 395
 // Retourne le champ textuel associe a une cle primaire, et sa langue
396
+/**
397
+ * @param string $connect
398
+ */
393 399
 function traiter_raccourci_titre($id, $type, $connect=NULL)
394 400
 {
395 401
 	$trouver_table = charger_fonction('trouver_table', 'base');
@@ -565,6 +571,9 @@  discard block
 block discarded – undo
565 571
 }
566 572
 
567 573
 // http://doc.spip.org/@glossaire_std
574
+/**
575
+ * @param string $terme
576
+ */
568 577
 function glossaire_std($terme)
569 578
 {
570 579
 	global $url_glossaire_externe;
Please login to merge, or discard this patch.
ecrire/inc/math.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -19,6 +19,9 @@  discard block
 block discarded – undo
19 19
 //
20 20
 
21 21
 // http://doc.spip.org/@produire_image_math
22
+/**
23
+ * @param string $tex
24
+ */
22 25
 function produire_image_math($tex) {
23 26
 	global $traiter_math;
24 27
 	switch ($traiter_math) {
@@ -76,6 +79,9 @@  discard block
 block discarded – undo
76 79
 
77 80
 // Fonction appelee par propre() s'il repere un mode <math>
78 81
 // http://doc.spip.org/@traiter_math
82
+/**
83
+ * @param string $letexte
84
+ */
79 85
 function traiter_math($letexte, $source='') {
80 86
 
81 87
 	$texte_a_voir = $letexte;
Please login to merge, or discard this patch.
ecrire/inc/message_select.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -15,6 +15,10 @@
 block discarded – undo
15 15
 // $messages_vus en reference pour interdire l'affichage de message en double
16 16
 
17 17
 
18
+/**
19
+ * @param string $titre
20
+ * @param string $from
21
+ */
18 22
 function afficher_ses_messages($titre, $from, $where, &$messages_vus, $afficher_auteurs = true, $important = false) {
19 23
 
20 24
 	$requete = array('SELECT' => 'messages.id_message, messages.date_heure, messages.date_fin, messages.titre, messages.type, messages.rv', 'FROM' => "spip_messages AS messages$from", 'WHERE' => $where .(!$messages_vus ? '' : ' AND messages.id_message NOT IN ('.join(',', $messages_vus).')'), 'ORDER BY'=> 'date_heure DESC');
Please login to merge, or discard this patch.
ecrire/inc/meta.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -107,6 +107,9 @@
 block discarded – undo
107 107
 }
108 108
 
109 109
 // http://doc.spip.org/@ecrire_meta
110
+/**
111
+ * @param string $importable
112
+ */
110 113
 function ecrire_meta($nom, $valeur, $importable = NULL, $table='meta') {
111 114
 
112 115
 	static $touch = array();
Please login to merge, or discard this patch.
ecrire/inc/modifier.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -193,6 +193,9 @@  discard block
 block discarded – undo
193 193
 }
194 194
 
195 195
 // http://doc.spip.org/@marquer_doublons_documents
196
+/**
197
+ * @param integer $id
198
+ */
196 199
 function marquer_doublons_documents($champs,$id,$type,$id_table_objet,$table_objet,$spip_table_objet, $desc=array(), $serveur=''){
197 200
 	if (!isset($champs['texte']) AND !isset($champs['chapo'])) return;
198 201
 	if (!$desc){
@@ -342,6 +345,9 @@  discard block
 block discarded – undo
342 345
 }
343 346
 
344 347
 // http://doc.spip.org/@revision_petition
348
+/**
349
+ * @param integer $id_article
350
+ */
345 351
 function revision_petition($id_article, $c=false) {
346 352
 
347 353
 	modifier_contenu('petition', $id_article,
Please login to merge, or discard this patch.
ecrire/inc/mots.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -15,6 +15,10 @@
 block discarded – undo
15 15
 
16 16
 // ne pas faire d'erreur si les chaines sont > 254 caracteres
17 17
 // http://doc.spip.org/@levenshtein255
18
+/**
19
+ * @param string $a
20
+ * @param string $b
21
+ */
18 22
 function levenshtein255 ($a, $b) {
19 23
 	$a = substr($a, 0, 254);
20 24
 	$b = substr($b, 0, 254);
Please login to merge, or discard this patch.
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.