Completed
Push — spip-3.0 ( 300bac...77f3d0 )
by cam
08:54
created
ecrire/inc/puce_statut.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -243,6 +243,12 @@  discard block
 block discarded – undo
243 243
 }
244 244
 
245 245
 // http://doc.spip.org/@puce_statut_article_dist
246
+/**
247
+ * @param integer $id
248
+ * @param string $statut
249
+ * @param integer $id_rubrique
250
+ * @param boolean $menu_rapide
251
+ */
246 252
 function puce_statut_changement_rapide($id, $statut, $id_rubrique, $type='article', $ajax = false, $menu_rapide=_ACTIVER_PUCE_RAPIDE) {
247 253
 	$src = statut_image($type, $statut);
248 254
 	if (!$src)
@@ -317,6 +323,11 @@  discard block
 block discarded – undo
317 323
 }
318 324
 
319 325
 // http://doc.spip.org/@afficher_script_statut
326
+/**
327
+ * @param string $type
328
+ * @param double $n
329
+ * @param string $img
330
+ */
320 331
 function afficher_script_statut($id, $type, $n, $img, $statut, $titre, $act='') {
321 332
 	$h = generer_action_auteur("instituer_objet","$type-$id-$statut");
322 333
 	$h = "selec_statut('$id', '$type', $n, jQuery('img',this).attr('src'), '$h');return false;";
Please login to merge, or discard this patch.
ecrire/inc/queue.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
  *
269 269
  * @param array $force_jobs
270 270
  *   list of id_job to execute when provided
271
- * @return null|false
271
+ * @return null|boolean
272 272
  */
273 273
 function queue_schedule($force_jobs = null){
274 274
 	$time = time();
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
  *
395 395
  * @param <type> $function
396 396
  * @param <type> $inclure
397
- * @return <type>
397
+ * @return integer
398 398
  */
399 399
 function queue_is_cron_job($function,$inclure){
400 400
 	static $taches = null;
Please login to merge, or discard this patch.
ecrire/inc/rubriques.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
  *     Ancien statut de la rubrique
45 45
  * @param bool $postdate
46 46
  *     true pour recalculer aussi la date du prochain article post-daté
47
- * @return bool
47
+ * @return boolean|null
48 48
  *     true si le statut change effectivement
49 49
 **/
50 50
 function calculer_rubriques_if ($id_rubrique, $modifs, $statut_ancien='', $postdate = false)
Please login to merge, or discard this patch.
ecrire/inc/surligne.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -20,6 +20,9 @@
 block discarded – undo
20 20
 
21 21
 
22 22
 // http://doc.spip.org/@surligner_mots
23
+/**
24
+ * @param string $page
25
+ */
23 26
 function surligner_mots($page, $surcharge_surligne = '') {
24 27
 	$surlignejs_engines = array(
25 28
 		array(",".str_replace(array("/", "."), array("\/", "\."), $GLOBALS['meta']['adresse_site']).",i", ",recherche=([^&]+),i"), //SPIP
Please login to merge, or discard this patch.
ecrire/inc/texte.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -65,6 +65,9 @@  discard block
 block discarded – undo
65 65
 
66 66
 // afficher joliment les <script>
67 67
 // http://doc.spip.org/@echappe_js
68
+/**
69
+ * @param string $t
70
+ */
68 71
 function echappe_js($t,$class=' class="echappe-js"') {
69 72
 	if (preg_match_all(',<script.*?($|</script.),isS', $t, $r, PREG_SET_ORDER))
70 73
 	foreach ($r as $regs)
@@ -256,6 +259,9 @@  discard block
 block discarded – undo
256 259
 //
257 260
 // http://doc.spip.org/@paragrapher
258 261
 // /!\ appelee dans inc/filtres et public/composer
262
+/**
263
+ * @param string $letexte
264
+ */
259 265
 function paragrapher($letexte, $forcer=true) {
260 266
 	return $letexte;
261 267
 }
Please login to merge, or discard this patch.
ecrire/inc/texte_mini.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -58,6 +58,9 @@  discard block
 block discarded – undo
58 58
 // une $source differente ; le script detecte automagiquement si ce qu'on
59 59
 // echappe est un div ou un span
60 60
 // http://doc.spip.org/@code_echappement
61
+/**
62
+ * @param string $mode
63
+ */
61 64
 function code_echappement($rempl, $source='', $no_transform=false, $mode=NULL) {
62 65
 	if (!strlen($rempl)) return '';
63 66
 
@@ -453,6 +456,9 @@  discard block
 block discarded – undo
453 456
 // Sert aussi a nettoyer un texte qu'on veut mettre dans un <a> etc.
454 457
 // TODO: gerer les modeles ?
455 458
 // http://doc.spip.org/@supprime_img
459
+/**
460
+ * @param string $message
461
+ */
456 462
 function supprime_img($letexte, $message=NULL) {
457 463
 	if ($message===NULL) $message = '(' . _T('img_indisponible') . ')';
458 464
 	return preg_replace(',<(img|doc|emb)([0-9]+)(\|([^>]*))?'.'\s*/?'.'>,i',
Please login to merge, or discard this patch.
ecrire/inc/traduire.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * version dediee et optimisee pour cet usage de find_in_path
19 19
  *
20 20
  * @staticvar <type> $dirs
21
- * @param <type> $file
21
+ * @param string $file
22 22
  * @param <type> $dirname
23 23
  * @return <type>
24 24
  */
@@ -40,6 +40,9 @@  discard block
 block discarded – undo
40 40
 // Charger un fichier langue
41 41
 //
42 42
 // http://doc.spip.org/@chercher_module_lang
43
+/**
44
+ * @param string $module
45
+ */
43 46
 function chercher_module_lang($module, $lang = '') {
44 47
 	if ($lang)
45 48
 		$lang = '_'.$lang;
Please login to merge, or discard this patch.
ecrire/inc/urls.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -187,8 +187,9 @@
 block discarded – undo
187 187
  * @param int $id
188 188
  * @param string $args
189 189
  * @param string $ancre
190
- * @param string $statut
191 190
  * @param string $connect
191
+ * @param string $objet
192
+ * @param boolean $public
192 193
  * @return string
193 194
  *
194 195
  */
Please login to merge, or discard this patch.
ecrire/inc/utils.php 1 patch
Doc Comments   +31 added lines, -6 removed lines patch added patch discarded remove patch
@@ -88,6 +88,9 @@  discard block
 block discarded – undo
88 88
 // la fonction cherchant un fichier PHP dans le SPIP_PATH
89 89
 //
90 90
 // http://doc.spip.org/@include_spip
91
+/**
92
+ * @param string $f
93
+ */
91 94
 function include_spip($f, $include = true) {
92 95
 	return find_in_path($f . '.php', '', $include);
93 96
 }
@@ -180,8 +183,6 @@  discard block
 block discarded – undo
180 183
  *
181 184
  * @param string $message
182 185
  * @param string|int $name
183
- * @param string $logdir  ## inutile !! a supprimer ?
184
- * @param string $logsuf  ## inutile !! a supprimer ?
185 186
  */
186 187
 function spip_log($message=NULL, $name=NULL) {
187 188
 	static $pre = array();
@@ -366,6 +367,10 @@  discard block
 block discarded – undo
366 367
 // pour l'ancre on translitere, vire les non alphanum du debut,
367 368
 // et on remplace ceux a l'interieur ou au bout par -
368 369
 // http://doc.spip.org/@ancre_url
370
+/**
371
+ * @param null|string $url
372
+ * @param string $ancre
373
+ */
369 374
 function ancre_url($url, $ancre) {
370 375
 	// lever l'#ancre
371 376
 	if (preg_match(',^([^#]*)(#.*)$,', $url, $r)) {
@@ -596,6 +601,9 @@  discard block
 block discarded – undo
596 601
 // Renvoie False si un fichier n'est pas plus vieux que $duree secondes,
597 602
 // sinon renvoie True et le date sauf si ca n'est pas souhaite
598 603
 // http://doc.spip.org/@spip_touch
604
+/**
605
+ * @param string $fichier
606
+ */
599 607
 function spip_touch($fichier, $duree=0, $touch=true) {
600 608
 	if ($duree) {
601 609
 		clearstatcache();
@@ -660,9 +668,9 @@  discard block
 block discarded – undo
660 668
 /**
661 669
  * Ajout d'une tache dans la file d'attente
662 670
  *
663
- * @param $function
671
+ * @param string $function
664 672
  *   The function name to call.
665
- * @param $description
673
+ * @param string $description
666 674
  *   A human-readable description of the queued job.
667 675
  * @param $arguments
668 676
  *   Optional array of arguments to pass to the function.
@@ -718,7 +726,6 @@  discard block
 block discarded – undo
718 726
  *  - si int, affecte la static directement avec la valeur
719 727
  *
720 728
  * @staticvar int $queue_next_job_time
721
- * @param int/bool $force_next
722 729
  * @return int
723 730
  */
724 731
 function queue_sleep_time_to_next_job($force=null) {
@@ -795,6 +802,9 @@  discard block
 block discarded – undo
795 802
 // du path, dans cet ordre.
796 803
 // Exception: si un $dossier_squelette est defini, il reste en tete, pour raison historique
797 804
 // http://doc.spip.org/@_chemin
805
+/**
806
+ * @param string $dir_path
807
+ */
798 808
 function _chemin($dir_path=NULL){
799 809
 	static $path_base = NULL;
800 810
 	static $path_full = NULL;
@@ -1050,6 +1060,9 @@  discard block
 block discarded – undo
1050 1060
  * @return array
1051 1061
  */
1052 1062
 // http://doc.spip.org/@find_all_in_path
1063
+/**
1064
+ * @param string $pattern
1065
+ */
1053 1066
 function find_all_in_path($dir,$pattern, $recurs=false){
1054 1067
 	$liste_fichiers=array();
1055 1068
 	$maxfiles = 10000;
@@ -1197,6 +1210,9 @@  discard block
 block discarded – undo
1197 1210
 }
1198 1211
 
1199 1212
 // http://doc.spip.org/@generer_url_entite_absolue
1213
+/**
1214
+ * @param boolean|string $connect
1215
+ */
1200 1216
 function generer_url_entite_absolue($id='', $entite='', $args='', $ancre='', $connect=NULL)
1201 1217
 {
1202 1218
 	if (!$connect) $connect = true;
@@ -1440,6 +1456,9 @@  discard block
 block discarded – undo
1440 1456
 }
1441 1457
 
1442 1458
 // http://doc.spip.org/@generer_url_action
1459
+/**
1460
+ * @param string $script
1461
+ */
1443 1462
 function generer_url_action($script, $args="", $no_entities=false , $public = false) {
1444 1463
 	// si l'on est dans l'espace prive, on garde dans l'url
1445 1464
 	// l'exec a l'origine de l'action, qui permet de savoir si il est necessaire
@@ -2202,7 +2221,7 @@  discard block
 block discarded – undo
2202 2221
 /**
2203 2222
  * Trouve un squelette dans le repertoire modeles/
2204 2223
  *
2205
- * @param  $nom
2224
+ * @param  string $nom
2206 2225
  * @return string
2207 2226
  */
2208 2227
 function trouve_modele($nom) {
@@ -2256,6 +2275,9 @@  discard block
 block discarded – undo
2256 2275
 
2257 2276
 // Charger dynamiquement une extension php
2258 2277
 // http://doc.spip.org/@charger_php_extension
2278
+/**
2279
+ * @param string $module
2280
+ */
2259 2281
 function charger_php_extension($module) {
2260 2282
 	if (extension_loaded($module)) {
2261 2283
 		return true;
@@ -2279,6 +2301,9 @@  discard block
 block discarded – undo
2279 2301
  */
2280 2302
 // Fonction depreciee
2281 2303
 // http://doc.spip.org/@lire_meta
2304
+/**
2305
+ * @param string $nom
2306
+ */
2282 2307
 function lire_meta($nom) {
2283 2308
 	return $GLOBALS['meta'][$nom];
2284 2309
 }
Please login to merge, or discard this patch.