@@ -87,6 +87,10 @@ discard block |
||
| 87 | 87 | |
| 88 | 88 | |
| 89 | 89 | // http://doc.spip.org/@indiquer_logo |
| 90 | +/** |
|
| 91 | + * @param string $mode |
|
| 92 | + * @param string $iframe_script |
|
| 93 | + */ |
|
| 90 | 94 | function indiquer_logo($titre, $id_objet, $mode, $id, $script, $iframe_script) { |
| 91 | 95 | |
| 92 | 96 | global $formats_logos; |
@@ -144,6 +148,11 @@ discard block |
||
| 144 | 148 | } |
| 145 | 149 | |
| 146 | 150 | // http://doc.spip.org/@decrire_logo |
| 151 | +/** |
|
| 152 | + * @param string $mode |
|
| 153 | + * @param integer $width |
|
| 154 | + * @param integer $height |
|
| 155 | + */ |
|
| 147 | 156 | function decrire_logo($id_objet, $mode, $id, $width, $height, $img, $titre="", $script="", $flag_modif=true) { |
| 148 | 157 | |
| 149 | 158 | list($fid, $dir, $nom, $format, $timestamp) = $img; |
@@ -389,6 +389,9 @@ |
||
| 389 | 389 | } |
| 390 | 390 | |
| 391 | 391 | // http://doc.spip.org/@import_init_meta |
| 392 | +/** |
|
| 393 | + * @return string |
|
| 394 | + */ |
|
| 392 | 395 | function import_init_meta($tag, $atts, $charset, $request) |
| 393 | 396 | { |
| 394 | 397 | $version_archive = $atts['version_archive']; |
@@ -149,6 +149,10 @@ |
||
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | // http://doc.spip.org/@import_lire_champs |
| 152 | +/** |
|
| 153 | + * @param string $gz |
|
| 154 | + * @param string $table |
|
| 155 | + */ |
|
| 152 | 156 | function import_lire_champs($f, $fields, $gz, $phpmyadmin, $table, $atts) |
| 153 | 157 | { |
| 154 | 158 | $values = array(); |
@@ -15,6 +15,10 @@ discard block |
||
| 15 | 15 | // Pour ecrire les fichiers memorisant les parametres de connexion |
| 16 | 16 | |
| 17 | 17 | // http://doc.spip.org/@install_fichier_connexion |
| 18 | +/** |
|
| 19 | + * @param string $nom |
|
| 20 | + * @param string $texte |
|
| 21 | + */ |
|
| 18 | 22 | function install_fichier_connexion($nom, $texte) |
| 19 | 23 | { |
| 20 | 24 | $texte = "<"."?php\n" |
@@ -183,6 +187,11 @@ discard block |
||
| 183 | 187 | } |
| 184 | 188 | |
| 185 | 189 | // http://doc.spip.org/@info_progression_etape |
| 190 | +/** |
|
| 191 | + * @param integer $en_cours |
|
| 192 | + * @param string $phase |
|
| 193 | + * @param string $dir |
|
| 194 | + */ |
|
| 186 | 195 | function info_progression_etape($en_cours,$phase,$dir, $erreur = false){ |
| 187 | 196 | //$en_cours = _request('etape')?_request('etape'):""; |
| 188 | 197 | $liste = find_all_in_path($dir,$phase.'(([0-9])+|fin)[.]php$'); |
@@ -457,6 +466,9 @@ discard block |
||
| 457 | 466 | return array($checked, $bases); |
| 458 | 467 | } |
| 459 | 468 | |
| 469 | +/** |
|
| 470 | + * @param string[] $hidden |
|
| 471 | + */ |
|
| 460 | 472 | function install_propager($hidden) |
| 461 | 473 | { |
| 462 | 474 | $res = ''; |
@@ -115,6 +115,9 @@ |
||
| 115 | 115 | |
| 116 | 116 | // Menu de choix d'un statut d'auteur |
| 117 | 117 | // http://doc.spip.org/@choix_statut_auteur |
| 118 | +/** |
|
| 119 | + * @param integer $id_auteur |
|
| 120 | + */ |
|
| 118 | 121 | function choix_statut_auteur($statut, $id_auteur, $ancre) { |
| 119 | 122 | |
| 120 | 123 | // Le menu doit-il etre actif ? |
@@ -24,6 +24,9 @@ discard block |
||
| 24 | 24 | // Donne le nombre de fichiers dans un repertoire (plat, pour aller vite) |
| 25 | 25 | // false si erreur |
| 26 | 26 | // http://doc.spip.org/@nombre_de_fichiers_repertoire |
| 27 | +/** |
|
| 28 | + * @param string $dir |
|
| 29 | + */ |
|
| 27 | 30 | function nombre_de_fichiers_repertoire($dir,$nb_estim_taille = 20) { |
| 28 | 31 | $taille = 0; // mesurer la taille de N fichiers au hasard dans le repertoire |
| 29 | 32 | $nb = $nb_estim_taille; |
@@ -96,6 +99,9 @@ discard block |
||
| 96 | 99 | // plus recemment que cette date (via fileatime) |
| 97 | 100 | // retourne le nombre de fichiers supprimes |
| 98 | 101 | // http://doc.spip.org/@purger_repertoire |
| 102 | +/** |
|
| 103 | + * @param string|null $dir |
|
| 104 | + */ |
|
| 99 | 105 | function purger_repertoire($dir, $options=array()) { |
| 100 | 106 | $handle = @opendir($dir); |
| 101 | 107 | if (!$handle) return; |
@@ -130,6 +130,9 @@ discard block |
||
| 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 |
||
| 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>'); |
@@ -123,6 +123,9 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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')) |
@@ -13,6 +13,10 @@ |
||
| 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 |