Completed
Push — spip-2.1 ( b6b097...e95542 )
by cam
18:56 queued 09:04
created
ecrire/inc/documenter.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -56,6 +56,14 @@  discard block
 block discarded – undo
56 56
 }
57 57
 
58 58
 // http://doc.spip.org/@documenter_bloc
59
+/**
60
+ * @param integer $id
61
+ * @param string $res
62
+ * @param string $s
63
+ * @param string $script
64
+ * @param string $ancre
65
+ * @param string $type
66
+ */
59 67
 function documenter_bloc($id, $res, $s, $script, $ancre, $tous, $type)
60 68
 {
61 69
 	// seulement s'il y a au moins un document dedans
@@ -78,6 +86,12 @@  discard block
 block discarded – undo
78 86
 }
79 87
 
80 88
 // http://doc.spip.org/@documenter_boucle
89
+/**
90
+ * @param string $type
91
+ * @param string $ancre
92
+ * @param boolean $tous_autorises
93
+ * @param string $appelant
94
+ */
81 95
 function documenter_boucle($documents, $type, $ancre, &$tous_autorises, $appelant, $opt=array())
82 96
 {
83 97
 	// la derniere case d'une rangee
Please login to merge, or discard this patch.
ecrire/inc/documents.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -335,6 +335,10 @@
 block discarded – undo
335 335
 // et l'insere quand on le clique
336 336
 //
337 337
 // http://doc.spip.org/@affiche_raccourci_doc
338
+/**
339
+ * @param string $doc
340
+ * @param string $align
341
+ */
338 342
 function affiche_raccourci_doc($doc, $id, $align) {
339 343
 	static $num = 0;
340 344
 
Please login to merge, or discard this patch.
ecrire/inc/editer.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@  discard block
 block discarded – undo
14 14
 include_spip('base/abstract_sql');
15 15
 
16 16
 // http://doc.spip.org/@formulaires_editer_objet_traiter
17
+/**
18
+ * @param string $type
19
+ */
17 20
 function formulaires_editer_objet_traiter($type, $id='new', $id_parent=0, $lier_trad=0, $retour='', $config_fonc='articles_edit_config', $row=array(), $hidden=''){
18 21
 
19 22
 	$res = array();
@@ -33,6 +36,9 @@  discard block
 block discarded – undo
33 36
 }
34 37
 
35 38
 // http://doc.spip.org/@formulaires_editer_objet_verifier
39
+/**
40
+ * @param string $type
41
+ */
36 42
 function formulaires_editer_objet_verifier($type,$id='new', $oblis = array()){
37 43
 	$erreurs = array();
38 44
 	if (intval($id)) {
@@ -51,6 +57,9 @@  discard block
 block discarded – undo
51 57
 }
52 58
 
53 59
 // http://doc.spip.org/@formulaires_editer_objet_charger
60
+/**
61
+ * @param string $type
62
+ */
54 63
 function formulaires_editer_objet_charger($type, $id='new', $id_parent=0, $lier_trad=0, $retour='', $config_fonc='articles_edit_config', $row=array(), $hidden=''){
55 64
 	$table_objet = table_objet($type);
56 65
 	$table_objet_sql = table_objet_sql($type);
@@ -155,6 +164,9 @@  discard block
 block discarded – undo
155 164
 }
156 165
 
157 166
 // http://doc.spip.org/@editer_texte_recolle
167
+/**
168
+ * @param string $att_text
169
+ */
158 170
 function editer_texte_recolle($texte, $att_text)
159 171
 {
160 172
 	if ((strlen($texte)<29*1024)
@@ -203,6 +215,9 @@  discard block
 block discarded – undo
203 215
 }
204 216
 
205 217
 // http://doc.spip.org/@controler_contenu
218
+/**
219
+ * @param string $id
220
+ */
206 221
 function controler_contenu($type, $id, $options=array(), $c=false, $serveur='') {
207 222
 	include_spip('inc/filtres');
208 223
 
@@ -273,6 +288,9 @@  discard block
 block discarded – undo
273 288
 // Controle la liste des md5 envoyes, supprime les inchanges,
274 289
 // signale les modifies depuis telle date
275 290
 // http://doc.spip.org/@controler_md5
291
+/**
292
+ * @param string $serveur
293
+ */
276 294
 function controler_md5(&$champs, $ctr, $type, $id, $serveur, $prefix = 'ctr_') {
277 295
 	$table_objet = table_objet($type);
278 296
 	$spip_table_objet = table_objet_sql($type);
Please login to merge, or discard this patch.
ecrire/inc/editer_auteurs.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -183,6 +183,9 @@  discard block
 block discarded – undo
183 183
 }
184 184
 
185 185
 // http://doc.spip.org/@afficher_auteurs_objet
186
+/**
187
+ * @param string $cond
188
+ */
186 189
 function afficher_auteurs_objet($type, $id, $edit, $cond, $script, $arg_ajax)
187 190
 {
188 191
 	
@@ -227,6 +230,9 @@  discard block
 block discarded – undo
227 230
 }
228 231
 
229 232
 // http://doc.spip.org/@ajouter_auteurs_objet
233
+/**
234
+ * @param string $cond_les_auteurs
235
+ */
230 236
 function ajouter_auteurs_objet($type, $id, $cond_les_auteurs,$script_edit, $arg_ajax, $valeur='')
231 237
 {
232 238
 	if (!$determiner_non_auteurs = charger_fonction('determiner_non_auteurs_'.$type,'inc',true))
@@ -294,6 +300,9 @@  discard block
 block discarded – undo
294 300
 }
295 301
 
296 302
 // http://doc.spip.org/@selecteur_auteur_ajax
303
+/**
304
+ * @param string $text
305
+ */
297 306
 function selecteur_auteur_ajax($type, $id, $js, $text, $idom='')
298 307
 {
299 308
 	include_spip('inc/chercher_rubrique');
Please login to merge, or discard this patch.
ecrire/inc/editer_mots.php 1 patch
Doc Comments   +17 added lines patch added patch discarded remove patch
@@ -61,6 +61,9 @@  discard block
 block discarded – undo
61 61
 	return ajax_action_greffe("editer_mots", $id_objet, $res);
62 62
 }
63 63
 
64
+/**
65
+ * @param string $url_base
66
+ */
64 67
 function chercher_inserer_mot($cherche_mot, $select_groupe, $objet, $id_objet, $nom, $table_id, $url_base)
65 68
 {
66 69
 	$modifier = false;
@@ -142,6 +145,9 @@  discard block
 block discarded – undo
142 145
 }
143 146
 
144 147
 // http://doc.spip.org/@afficher_mots_cles
148
+/**
149
+ * @param string $url
150
+ */
145 151
 function afficher_mots_cles($flag, $objet, $id_objet, $table, $table_id, $url)
146 152
 {
147 153
 	$q = array('SELECT' => "M.id_mot, M.titre, M.id_groupe", 'FROM' => "spip_mots AS M LEFT JOIN spip_mots_$table AS L ON M.id_mot=L.id_mot", 'WHERE' => "L.$table_id=$id_objet", 'ORDER BY' => "M.type, M.titre");
@@ -236,6 +242,11 @@  discard block
 block discarded – undo
236 242
 // boolean $visible : determiner si le formulaire est deplie
237 243
 // string $objet : 'article'
238 244
 // http://doc.spip.org/@formulaire_mots_cles
245
+/**
246
+ * @param string $les_mots
247
+ * @param string $url_base
248
+ * @param boolean $visible
249
+ */
239 250
 function formulaire_mots_cles($id_objet, $les_mots, $table, $table_id, $url_base, $visible, $objet) {
240 251
 	global  $spip_lang, $spip_lang_right;
241 252
 
@@ -305,6 +316,9 @@  discard block
 block discarded – undo
305 316
 	return array($visible, $res);
306 317
 }
307 318
 
319
+/**
320
+ * @param string $url_base
321
+ */
308 322
 function creer_mot($table, $id_objet, $table_id, $url_base, $mot='', $id_groupe=0)
309 323
 {
310 324
 	static $titres = array(
@@ -333,6 +347,9 @@  discard block
 block discarded – undo
333 347
 }
334 348
 
335 349
 // http://doc.spip.org/@menu_mots
350
+/**
351
+ * @param string $cond_mots_vus
352
+ */
336 353
 function menu_mots($row, $id_groupes_vus, $cond_mots_vus)
337 354
 {
338 355
 	$id_groupe = $row['id_groupe'];
Please login to merge, or discard this patch.
ecrire/inc/envoyer_mail.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -205,6 +205,9 @@
 block discarded – undo
205 205
 	}
206 206
 }
207 207
 
208
+/**
209
+ * @param string $to
210
+ */
208 211
 function mail_normaliser_headers($headers, $from, $to, $texte, $parts="")
209 212
 {
210 213
 	$charset = $GLOBALS['meta']['charset'];
Please login to merge, or discard this patch.
ecrire/inc/export.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -59,6 +59,9 @@  discard block
 block discarded – undo
59 59
 	return ($etape > $all OR !$all) ? false : $dir;
60 60
 }
61 61
 
62
+/**
63
+ * @param string $dir
64
+ */
62 65
 function export_trace($val_meta, $dir, $meta)
63 66
 {
64 67
 	list($gz, $archive, $rub, $tables_for_dump, $etape_actuelle, $sous_etape, $serveur, $save) = $val_meta;
@@ -182,6 +185,9 @@  discard block
 block discarded – undo
182 185
 // est plus court que le temps pour creer les parties
183 186
 
184 187
 // http://doc.spip.org/@export_objets
188
+/**
189
+ * @param string $filetable
190
+ */
185 191
 function export_objets($table, $cpt, $total, $filetable, $les_rubriques, $les_meres, $meta) {
186 192
 	global $tables_principales;
187 193
 
Please login to merge, or discard this patch.
ecrire/inc/feedfinder.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -46,6 +46,9 @@  discard block
 block discarded – undo
46 46
 //une fonction qui permet de si un lien est un feed ou nom, si c'est un feed elle retourne son type
47 47
 //si c'est pas un feed elle retourne 0, cette verification est evidemment tres tres legere
48 48
 // http://doc.spip.org/@is_feed
49
+/**
50
+ * @param string $url
51
+ */
49 52
 function is_feed($url){
50 53
 
51 54
 	# methode SPIP
@@ -187,6 +190,9 @@  discard block
 block discarded – undo
187 190
 //petite fonction qui prend en charge les problemes de double slash
188 191
 //qunad on concatene les lien 
189 192
 // http://doc.spip.org/@concat_url
193
+/**
194
+ * @param string $path
195
+ */
190 196
 function concat_url($url1, $path){
191 197
 	# methode spip
192 198
 	if(function_exists('suivre_lien')) {
Please login to merge, or discard this patch.
ecrire/inc/filtres_images_lib_mini.php 1 patch
Doc Comments   +21 added lines patch added patch discarded remove patch
@@ -53,6 +53,9 @@  discard block
 block discarded – undo
53 53
 }
54 54
 
55 55
 
56
+/**
57
+ * @param boolean|string $stat
58
+ */
56 59
 function statut_effacer_images_temporaires($stat){
57 60
 	static $statut = false; // par defaut on grave toute les images
58 61
 	// une constante a utiliser lorsqu'on a des filtres image_xxx qui ne produisent pas des images
@@ -63,6 +66,9 @@  discard block
 block discarded – undo
63 66
 }
64 67
 
65 68
 // http://doc.spip.org/@cherche_image_nommee
69
+/**
70
+ * @param string $nom
71
+ */
66 72
 function cherche_image_nommee($nom, $formats = array ('gif', 'jpg', 'png')) {
67 73
 
68 74
 	if (strncmp(_DIR_IMG, $nom,$n=strlen(_DIR_IMG))==0) {
@@ -306,6 +312,9 @@  discard block
 block discarded – undo
306 312
 
307 313
 // $qualite est utilise pour la qualite de compression des jpeg
308 314
 // http://doc.spip.org/@image_gd_output
315
+/**
316
+ * @param resource $img
317
+ */
309 318
 function _image_gd_output($img,$valeurs, $qualite=_IMG_GD_QUALITE){
310 319
 	$fonction = "_image_image".$valeurs['format_dest'];
311 320
 	$ret = false;
@@ -732,6 +741,11 @@  discard block
 block discarded – undo
732 741
 }
733 742
 
734 743
 // http://doc.spip.org/@process_image_reduire
744
+/**
745
+ * @param boolean $force
746
+ * @param boolean $cherche_image
747
+ * @param string $process
748
+ */
735 749
 function process_image_reduire($fonction,$img,$taille,$taille_y,$force,$cherche_image,$process){
736 750
 	$image = false;
737 751
 	if (($process == 'AUTO') AND isset($GLOBALS['meta']['image_process']))
@@ -836,6 +850,10 @@  discard block
 block discarded – undo
836 850
 //////////////////////////////////////////////////////////////
837 851
 class phpthumb_functions {
838 852
 // http://doc.spip.org/@GetPixelColor
853
+	/**
854
+	 * @param integer $x
855
+	 * @param integer $y
856
+	 */
839 857
 	function GetPixelColor(&$img, $x, $y) {
840 858
 		if (!is_resource($img)) {
841 859
 			return false;
@@ -843,6 +861,9 @@  discard block
 block discarded – undo
843 861
 		return @ImageColorsForIndex($img, @ImageColorAt($img, $x, $y));
844 862
 	}
845 863
 // http://doc.spip.org/@LittleEndian2String
864
+	/**
865
+	 * @param integer $number
866
+	 */
846 867
 	function LittleEndian2String($number, $minbytes=1) {
847 868
 		$intstring = '';
848 869
 		while ($number > 0) {
Please login to merge, or discard this patch.