Completed
Push — spip-2.1 ( b6b097...e95542 )
by cam
18:56 queued 09:04
created
ecrire/auth/ldap.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -138,6 +138,9 @@
 block discarded – undo
138 138
 	return '';
139 139
 }
140 140
 
141
+/**
142
+ * @param string $dn
143
+ */
141 144
 function auth_ldap_retrouver($dn, $desc=array(), $serveur='')
142 145
 {
143 146
 	// Lire les infos sur l'utilisateur a partir de son DN depuis LDAP
Please login to merge, or discard this patch.
ecrire/auth/sha256.inc.php 1 patch
Doc Comments   +33 added lines patch added patch discarded remove patch
@@ -135,15 +135,41 @@  discard block
 block discarded – undo
135 135
             return (int)$x >> (int)$n;
136 136
         }
137 137
 
138
+        /**
139
+         * @param integer $n
140
+         */
138 141
         function ROTR($x, $n) { return (int)(($this->SHR($x, $n) | ($x << (32-$n)) & 0xFFFFFFFF)); }
142
+
143
+        /**
144
+         * @param integer $x
145
+         * @param integer $y
146
+         * @param integer $z
147
+         */
139 148
         function Ch($x, $y, $z) { return ($x & $y) ^ ((~$x) & $z); }
149
+
150
+        /**
151
+         * @param integer $x
152
+         * @param integer $y
153
+         * @param integer $z
154
+         */
140 155
         function Maj($x, $y, $z) { return ($x & $y) ^ ($x & $z) ^ ($y & $z); }
156
+
157
+        /**
158
+         * @param integer $x
159
+         */
141 160
         function Sigma0($x) { return (int) ($this->ROTR($x, 2)^$this->ROTR($x, 13)^$this->ROTR($x, 22)); }
161
+
162
+        /**
163
+         * @param integer $x
164
+         */
142 165
         function Sigma1($x) { return (int) ($this->ROTR($x, 6)^$this->ROTR($x, 11)^$this->ROTR($x, 25)); }
143 166
         function sigma_0($x) { return (int) ($this->ROTR($x, 7)^$this->ROTR($x, 18)^$this->SHR($x, 3)); }
144 167
         function sigma_1($x) { return (int) ($this->ROTR($x, 17)^$this->ROTR($x, 19)^$this->SHR($x, 10)); }
145 168
 
146 169
 
170
+				/**
171
+				 * @param integer $byteSize
172
+				 */
147 173
 				function string2ordUTF8($s,&$byteSize){
148 174
 					$chars = array();
149 175
 					// par defaut sur 8bits
@@ -219,6 +245,9 @@  discard block
 block discarded – undo
219 245
 					return $bin;
220 246
 				}
221 247
 
248
+				/**
249
+				 * @param integer $n
250
+				 */
222 251
 				function array_split($a, $n) {
223 252
 					$split = array();
224 253
 					while (count($a)>$n) {
@@ -434,6 +463,10 @@  discard block
 block discarded – undo
434 463
 if (!function_exists('hash'))
435 464
 {
436 465
     define('_NO_HASH_DEFINED',true);
466
+
467
+    /**
468
+     * @param string $algo
469
+     */
437 470
     function hash($algo, $data)
438 471
     {
439 472
         if (empty($algo) || !is_string($algo) || !is_string($data)) {
Please login to merge, or discard this patch.
ecrire/balise/formulaire_.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -57,6 +57,9 @@  discard block
 block discarded – undo
57 57
 
58 58
 /* prendre en charge par defaut les balises dynamiques formulaires simples */
59 59
 // http://doc.spip.org/@balise_FORMULAIRE__dyn
60
+/**
61
+ * @param string $form
62
+ */
60 63
 function balise_FORMULAIRE__dyn($form)
61 64
 {
62 65
 	$form = existe_formulaire($form);
@@ -77,6 +80,9 @@  discard block
 block discarded – undo
77 80
 	return array("formulaires/$form", 3600, $contexte);
78 81
 }
79 82
 
83
+/**
84
+ * @param string $form
85
+ */
80 86
 function balise_FORMULAIRE__contexte($form, $args)
81 87
 {
82 88
 	// tester si ce formulaire vient d'etre poste (memes arguments)
Please login to merge, or discard this patch.
ecrire/balise/formulaire_admin.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/@admin_preview
133
+/**
134
+ * @param string $id
135
+ */
133 136
 function admin_preview($id, $id_type)
134 137
 {
135 138
 	if ($GLOBALS['var_preview']) return '';
@@ -199,6 +202,9 @@  discard block
 block discarded – undo
199 202
 
200 203
 // Tant que les stats ne sont pas passees dans une extension, il faut les traiter ici
201 204
 // http://doc.spip.org/@admin_stats
205
+/**
206
+ * @param string $id
207
+ */
202 208
 function admin_stats($id, $id_type, $var_preview)
203 209
 {
204 210
 	if ($GLOBALS['meta']["activer_statistiques"] != "non" 
Please login to merge, or discard this patch.
ecrire/balise/logo_.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -96,6 +96,13 @@
 block discarded – undo
96 96
 	return $p;
97 97
 }
98 98
 
99
+/**
100
+ * @param string $id_objet
101
+ * @param string $_id_objet
102
+ * @param string $type
103
+ * @param integer $fichier
104
+ * @param string $suite
105
+ */
99 106
 function logo_survol($id_objet, $_id_objet, $type, $align, $fichier, $lien, $p, $suite)
100 107
 {
101 108
 	$code = "quete_logo('$id_objet', '" .
Please login to merge, or discard this patch.
ecrire/balise/menu_lang_ecrire.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -37,6 +37,9 @@
 block discarded – undo
37 37
 }
38 38
 
39 39
 // http://doc.spip.org/@menu_lang_pour_tous
40
+/**
41
+ * @param string $nom
42
+ */
40 43
 function menu_lang_pour_tous($nom, $default) {
41 44
 	include_spip('inc/lang');
42 45
 
Please login to merge, or discard this patch.
ecrire/balise/url_.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@
 block discarded – undo
25 25
 // car rien ne garantit que le .htaccess soit identique. A approfondir
26 26
 
27 27
 // http://doc.spip.org/@generer_generer_url
28
+/**
29
+ * @param string $type
30
+ */
28 31
 function generer_generer_url($type, $p)
29 32
 {
30 33
 	$_id = interprete_argument_balise(1,$p);
Please login to merge, or discard this patch.
ecrire/base/abstract_sql.php 1 patch
Doc Comments   +28 added lines patch added patch discarded remove patch
@@ -34,6 +34,9 @@  discard block
 block discarded – undo
34 34
 
35 35
 // Demande si un charset est disponible. 
36 36
 // http://doc.spip.org/@sql_get_charset
37
+/**
38
+ * @return string
39
+ */
37 40
 function sql_get_charset($charset, $serveur='', $option=true){
38 41
   // le nom http du charset differe parfois du nom SQL utf-8 ==> utf8 etc.
39 42
 	$desc = sql_serveur('', $serveur, true,true);
@@ -205,6 +208,9 @@  discard block
 block discarded – undo
205 208
 // Elle est fournie pour permettre l'actualisation de vieux codes 
206 209
 // par un Sed brutal qui peut donner des resultats provisoirement acceptables
207 210
 // http://doc.spip.org/@sql_insert
211
+/**
212
+ * @param string $table
213
+ */
208 214
 function sql_insert($table, $noms, $valeurs, $desc=array(), $serveur='', $option=true)
209 215
 {
210 216
 	$f = sql_serveur('insert', $serveur,  $option==='continue' OR $option===false);
@@ -225,6 +231,9 @@  discard block
 block discarded – undo
225 231
 }
226 232
 
227 233
 // http://doc.spip.org/@sql_insertq_multi
234
+/**
235
+ * @param string $table
236
+ */
228 237
 function sql_insertq_multi($table, $couples=array(), $desc=array(), $serveur='', $option=true)
229 238
 {
230 239
 	$f = sql_serveur('insertq_multi', $serveur,  $option==='continue' OR $option===false);
@@ -235,6 +244,9 @@  discard block
 block discarded – undo
235 244
 }
236 245
 
237 246
 // http://doc.spip.org/@sql_update
247
+/**
248
+ * @param string $table
249
+ */
238 250
 function sql_update($table, $exp, $where='', $desc=array(), $serveur='', $option=true)
239 251
 {
240 252
 	$f = sql_serveur('update', $serveur,  $option==='continue' OR $option===false);
@@ -322,6 +334,9 @@  discard block
 block discarded – undo
322 334
 	return $f($spip, $serveur, $option!==false);
323 335
 }
324 336
 
337
+/**
338
+ * @param string $spip
339
+ */
325 340
 function sql_alltable($spip=NULL, $serveur='', $option=true)
326 341
 {
327 342
 	$q = sql_showbase($spip, $serveur, $option);
@@ -382,6 +397,9 @@  discard block
 block discarded – undo
382 397
 }
383 398
 
384 399
 // http://doc.spip.org/@sql_multi
400
+/**
401
+ * @param string $sel
402
+ */
385 403
 function sql_multi($sel, $lang, $serveur='', $option=true)
386 404
 {
387 405
 	$f = sql_serveur('multi', $serveur,  $option==='continue' OR $option===false);
@@ -479,6 +497,9 @@  discard block
 block discarded – undo
479 497
 }
480 498
 
481 499
 // http://doc.spip.org/@sql_version
500
+/**
501
+ * @return string
502
+ */
482 503
 function sql_version($serveur='', $option=true) {
483 504
 	$row = sql_fetsel("version() AS n", '','','','','','',$serveur);
484 505
 	return ($row['n']);
@@ -488,6 +509,9 @@  discard block
 block discarded – undo
488 509
 // et retourne sa representation numerique:
489 510
 // FF ==> 0xFF en MySQL mais x'FF' en PG
490 511
 // http://doc.spip.org/@sql_hex
512
+/**
513
+ * @param string $val
514
+ */
491 515
 function sql_hex($val, $serveur='', $option=true)
492 516
 {
493 517
 	$f = sql_serveur('hex', $serveur,  $option==='continue' OR $option===false);
@@ -526,6 +550,10 @@  discard block
 block discarded – undo
526 550
 // s'il accepte les requetes imbriquees afin d'optimiser ca
527 551
 
528 552
 // http://doc.spip.org/@sql_in_select
553
+/**
554
+ * @param string $in
555
+ * @param string $select
556
+ */
529 557
 function sql_in_select($in, $select, $from = array(), $where = array(),
530 558
 		    $groupby = array(), $orderby = array(), $limit = '', $having = array(), $serveur='')
531 559
 {
Please login to merge, or discard this patch.
ecrire/base/connect_sql.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@  discard block
 block discarded – undo
24 24
 // A l'installation, il faut simuler l'existence de ce fichier
25 25
 
26 26
 // http://doc.spip.org/@spip_connect
27
+/**
28
+ * @return string
29
+ */
27 30
 function spip_connect($serveur='', $version='') {
28 31
 	global $connexions, $spip_sql_version;
29 32
 
@@ -128,6 +131,9 @@  discard block
 block discarded – undo
128 131
 // connue seulement des convertisseurs automatiques
129 132
 
130 133
 // http://doc.spip.org/@spip_connect_sql
134
+/**
135
+ * @return string
136
+ */
131 137
 function spip_connect_sql($version, $ins='', $serveur='', $cont=false) {
132 138
 	$desc = spip_connect($serveur, $version);
133 139
 	if (function_exists($f = @$desc[$version][$ins])) return $f;
@@ -330,6 +336,9 @@  discard block
 block discarded – undo
330 336
 
331 337
 // Recuperer le nom de la table de jointure xxxx sur l'objet yyyy
332 338
 // http://doc.spip.org/@table_jointure
339
+/**
340
+ * @param string $x
341
+ */
333 342
 function table_jointure($x, $y) {
334 343
 	$trouver_table = charger_fonction('trouver_table', 'base');
335 344
 	$xdesc = $trouver_table(table_objet($x));
Please login to merge, or discard this patch.