Completed
Push — spip-2.1 ( 1b0d01...40676b )
by cam
14:08
created
ecrire/inc/utils.php 1 patch
Doc Comments   +27 added lines patch added patch discarded remove patch
@@ -62,6 +62,9 @@  discard block
 block discarded – undo
62 62
 // la fonction cherchant un fichier PHP dans le SPIP_PATH
63 63
 //
64 64
 // http://doc.spip.org/@include_spip
65
+/**
66
+ * @param string $f
67
+ */
65 68
 function include_spip($f, $include = true) {
66 69
 	return find_in_path($f . '.php', '', $include);
67 70
 }
@@ -178,6 +181,9 @@  discard block
 block discarded – undo
178 181
 // Methode set de la fonction _request()
179 182
 // Attention au cas ou l'on fait set_request('truc', NULL);
180 183
 // http://doc.spip.org/@set_request
184
+/**
185
+ * @param string $var
186
+ */
181 187
 function set_request($var, $val = NULL, $c=false) {
182 188
 	if (is_array($c)) {
183 189
 		unset($c[$var]);
@@ -394,6 +400,9 @@  discard block
 block discarded – undo
394 400
 // Remplacer les variables @....@ par leur valeur dans une chaine de langue.
395 401
 // Aussi appelee quand une chaine n'est pas encore dans les fichiers de langue
396 402
 // http://doc.spip.org/@_L
403
+/**
404
+ * @param string $class
405
+ */
397 406
 function _L($text, $args=array(), $class=NULL) {
398 407
 	$f = $text;
399 408
 	if (is_array($args)) {
@@ -459,6 +468,9 @@  discard block
 block discarded – undo
459 468
 // Renvoie False si un fichier n'est pas plus vieux que $duree secondes,
460 469
 // sinon renvoie True et le date sauf si ca n'est pas souhaite
461 470
 // http://doc.spip.org/@spip_touch
471
+/**
472
+ * @param string $fichier
473
+ */
462 474
 function spip_touch($fichier, $duree=0, $touch=true) {
463 475
 	if ($duree) {
464 476
 		clearstatcache();
@@ -576,6 +588,9 @@  discard block
 block discarded – undo
576 588
 // retourne le chemin courant sinon, sous forme de array
577 589
 // seul le dossier squelette peut etre modifie en dehors de cette fonction, pour raison historique
578 590
 // http://doc.spip.org/@_chemin
591
+/**
592
+ * @param string $dir_path
593
+ */
579 594
 function _chemin($dir_path=NULL){
580 595
 	static $path_base = NULL;
581 596
 	static $path_full = NULL;
@@ -878,6 +893,9 @@  discard block
 block discarded – undo
878 893
 }
879 894
 
880 895
 // http://doc.spip.org/@generer_url_entite_absolue
896
+/**
897
+ * @param boolean|string $connect
898
+ */
881 899
 function generer_url_entite_absolue($id='', $entite='', $args='', $ancre='', $connect=NULL)
882 900
 {
883 901
 	if (!$connect) $connect = true;
@@ -1077,6 +1095,9 @@  discard block
 block discarded – undo
1077 1095
 // qui ne sont pas destines a etre mis en signets
1078 1096
 
1079 1097
 // http://doc.spip.org/@generer_form_action
1098
+/**
1099
+ * @param string $corps
1100
+ */
1080 1101
 function generer_form_action($script, $corps, $atts='', $public=false) {
1081 1102
 	// si l'on est dans l'espace prive, on garde dans l'url
1082 1103
 	// l'exec a l'origine de l'action, qui permet de savoir si il est necessaire
@@ -1812,6 +1833,9 @@  discard block
 block discarded – undo
1812 1833
 		return $options['trim'] ? ltrim($texte) : $texte;
1813 1834
 }
1814 1835
 
1836
+/**
1837
+ * @param string $nom
1838
+ */
1815 1839
 function trouve_modele($nom)
1816 1840
 {
1817 1841
 	return find_in_path( 'modeles/' . $nom.'.'. _EXTENSION_SQUELETTES);
@@ -1819,6 +1843,9 @@  discard block
 block discarded – undo
1819 1843
 
1820 1844
 // Charger dynamiquement une extension php
1821 1845
 // http://doc.spip.org/@charger_php_extension
1846
+/**
1847
+ * @param string $module
1848
+ */
1822 1849
 function charger_php_extension($module) {
1823 1850
 	if (extension_loaded($module)) {
1824 1851
 		return true;
Please login to merge, or discard this patch.
ecrire/inc/xml.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -158,6 +158,9 @@
 block discarded – undo
158 158
 }
159 159
 
160 160
 // http://doc.spip.org/@spip_xml_match_nodes
161
+/**
162
+ * @param string $regexp
163
+ */
161 164
 function spip_xml_match_nodes($regexp,&$arbre,&$matches){
162 165
 	if(is_array($arbre) && count($arbre))
163 166
 		foreach(array_keys($arbre) as $tag){
Please login to merge, or discard this patch.
ecrire/install/etape_2.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -147,6 +147,11 @@
 block discarded – undo
147 147
 }
148 148
 
149 149
 // http://doc.spip.org/@install_etape_2_form
150
+/**
151
+ * @param string $hidden
152
+ * @param string $res
153
+ * @param integer $etape
154
+ */
150 155
 function install_etape_2_form($hidden, $checked, $res, $etape)
151 156
  {
152 157
 	return generer_form_ecrire('install', (
Please login to merge, or discard this patch.
ecrire/install/etape_3.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -185,6 +185,9 @@
 block discarded – undo
185 185
 
186 186
 
187 187
 // http://doc.spip.org/@install_premier_auteur
188
+/**
189
+ * @param string $hidden
190
+ */
188 191
 function install_premier_auteur($email, $login, $nom, $pass, $hidden)
189 192
 {
190 193
 	return info_progression_etape(3,'etape_','install/') .
Please login to merge, or discard this patch.
ecrire/install/etape_sup1.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -83,6 +83,11 @@
 block discarded – undo
83 83
 }
84 84
 
85 85
 // http://doc.spip.org/@install_etape_sup1_form
86
+/**
87
+ * @param string $hidden
88
+ * @param string $checked
89
+ * @param string $etape
90
+ */
86 91
 function install_etape_sup1_form($hidden, $checked, $bases, $etape)
87 92
  {
88 93
 	if ($bases) {
Please login to merge, or discard this patch.
ecrire/maj/v019_pre193.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -12,6 +12,9 @@
 block discarded – undo
12 12
 
13 13
 if (!defined('_ECRIRE_INC_VERSION')) return;
14 14
 
15
+/**
16
+ * @param integer $version_cible
17
+ */
15 18
 function v019_pre193($version_installee, $version_cible)
16 19
 {
17 20
 	// Syndication : ajout de l'option resume=oui/non et de la langue
Please login to merge, or discard this patch.
ecrire/maj/vieille_base/create.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@
 block discarded – undo
14 14
 
15 15
 $serveur_vieille_base =0;
16 16
 
17
+/**
18
+ * @param boolean $autoinc
19
+ */
17 20
 function	spip_create_vieille_table($table,$fields,$keys,$autoinc){
18 21
 	static $fcreate = null;
19 22
 	$serveur = $GLOBALS['serveur_vieille_base'];
Please login to merge, or discard this patch.
ecrire/plugins/afficher_liste.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -51,6 +51,10 @@
 block discarded – undo
51 51
 
52 52
 
53 53
 // http://doc.spip.org/@affiche_block_initiale
54
+/**
55
+ * @param string $initiale
56
+ * @param string $block
57
+ */
54 58
 function affiche_block_initiale($initiale,$block,$block_actif){
55 59
 	if (strlen($block)){
56 60
 		return "<li class='item'>"
Please login to merge, or discard this patch.
ecrire/plugins/afficher_plugin.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -76,6 +76,9 @@
 block discarded – undo
76 76
 // checkbox pour activer ou desactiver
77 77
 // si ce n'est pas une extension
78 78
 
79
+/**
80
+ * @param integer $id_input
81
+ */
79 82
 function plugin_checkbox($id_input, $file, $actif)
80 83
 {
81 84
 	$name = substr(md5($file),0,16);
Please login to merge, or discard this patch.