Completed
Push — spip-2.1 ( 40676b...3873a3 )
by cam
106:54 queued 93:44
created
ecrire/inc/joindre.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -130,6 +130,9 @@  discard block
 block discarded – undo
130 130
 //
131 131
 
132 132
 // http://doc.spip.org/@texte_upload_manuel
133
+/**
134
+ * @param string $dir
135
+ */
133 136
 function texte_upload_manuel($dir, $mode = 'document') {
134 137
 	$fichiers = preg_files($dir);
135 138
 	$exts = array();
@@ -191,6 +194,9 @@  discard block
 block discarded – undo
191 194
 
192 195
 
193 196
 // http://doc.spip.org/@afficher_transferer_upload
197
+/**
198
+ * @param string $dir
199
+ */
194 200
 function afficher_transferer_upload($texte_upload, $dir)
195 201
 {
196 202
 	$doc = array('upload' => '<b>' . joli_repertoire($dir) . '</b>');
Please login to merge, or discard this patch.
ecrire/inc/lang.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -123,6 +123,9 @@  discard block
 block discarded – undo
123 123
 // gestion de la globale $lang_objet pour que les textes soient affiches
124 124
 // avec les memes typo et direction dans l'espace prive que dans le public
125 125
 // http://doc.spip.org/@changer_typo
126
+/**
127
+ * @return string
128
+ */
126 129
 function changer_typo($lang = '') {
127 130
 	global $lang_objet;
128 131
 
@@ -136,6 +139,9 @@  discard block
 block discarded – undo
136 139
 // pour 'changer_lang' (langue de l'article, espace prive), c'est en Ajax
137 140
 //
138 141
 // http://doc.spip.org/@menu_langues
142
+/**
143
+ * @param string $nom_select
144
+ */
139 145
 function menu_langues($nom_select) {
140 146
 	include_spip('inc/actions');
141 147
 
@@ -159,6 +165,10 @@  discard block
 block discarded – undo
159 165
 }
160 166
 
161 167
 // http://doc.spip.org/@select_langues
168
+/**
169
+ * @param string $change
170
+ * @param string $options
171
+ */
162 172
 function select_langues($nom_select, $change, $options, $label="")
163 173
 {
164 174
 	static $cpt = 0;
@@ -294,6 +304,9 @@  discard block
 block discarded – undo
294 304
 // Une fonction qui donne le repertoire ou trouver des fichiers de langue
295 305
 // note : pourrait en donner une liste... complique
296 306
 // http://doc.spip.org/@repertoire_lang
307
+/**
308
+ * @return string
309
+ */
297 310
 function repertoire_lang($module='spip', $lang='fr') {
298 311
 	# valeur forcee (par ex.sur spip.net), old style, a faire disparaitre
299 312
 	if (defined('_DIR_LANG'))
Please login to merge, or discard this patch.
ecrire/inc/layer.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -13,6 +13,10 @@
 block discarded – undo
13 13
 if (!defined('_ECRIRE_INC_VERSION')) return;
14 14
 
15 15
 // http://doc.spip.org/@cadre_depliable
16
+/**
17
+ * @param string $icone
18
+ * @param string $titre
19
+ */
16 20
 function cadre_depliable($icone,$titre,$deplie,$contenu,$ids='',$style_cadre='r'){
17 21
 	$bouton = bouton_block_depliable($titre,$deplie,$ids);
18 22
 	return 
Please login to merge, or discard this patch.
ecrire/inc/legender.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -80,6 +80,10 @@  discard block
 block discarded – undo
80 80
 	return sinon($entete,_T('info_sans_titre'));
81 81
 }
82 82
 
83
+/**
84
+ * @param string $s
85
+ * @param string $supp
86
+ */
83 87
 function legender_suppression($id, $id_document, $ancre, $s, $script, $supp, $type)
84 88
 {
85 89
 	// le cas $id<0 correspond a un doc charge dans un article pas encore cree,
@@ -108,6 +112,10 @@  discard block
 block discarded – undo
108 112
 }
109 113
 
110 114
 
115
+/**
116
+ * @param boolean|string $flag
117
+ * @param string|null $taille
118
+ */
111 119
 function legender_corps($ancre, $flag, $id, $id_document, $script, $type, $document, $label, $taille)
112 120
 {
113 121
 	include_spip('inc/editer');
@@ -178,6 +186,9 @@  discard block
 block discarded – undo
178 186
 //
179 187
 // Changement de mode image/document
180 188
 //
189
+/**
190
+ * @param string $s
191
+ */
181 192
 function legender_image_doc($document, $id_document, $id, $type, $s, $script, $ancre)
182 193
 {
183 194
 	define('_INTERFACE_DOCUMENTS', true);
Please login to merge, or discard this patch.
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.