@@ -66,6 +66,9 @@ |
||
| 66 | 66 | return aider_icone(generer_url_ecrire("aide_index", $args)); |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | +/** |
|
| 70 | + * @param string $url |
|
| 71 | + */ |
|
| 69 | 72 | function aider_icone($url, $clic= '') |
| 70 | 73 | { |
| 71 | 74 | global $spip_lang, $spip_lang_rtl; |
@@ -464,6 +464,9 @@ discard block |
||
| 464 | 464 | // A noter : une extension 'pdf ' passe dans la requete de controle |
| 465 | 465 | // mysql> SELECT * FROM spip_types_documents WHERE extension="pdf "; |
| 466 | 466 | // http://doc.spip.org/@corriger_extension |
| 467 | +/** |
|
| 468 | + * @param string $ext |
|
| 469 | + */ |
|
| 467 | 470 | function corriger_extension($ext) { |
| 468 | 471 | $ext = preg_replace(',[^a-z0-9],i', '', $ext); |
| 469 | 472 | switch ($ext) { |
@@ -510,6 +513,11 @@ discard block |
||
| 510 | 513 | // Passer ca en squelette un de ces jours. |
| 511 | 514 | |
| 512 | 515 | // http://doc.spip.org/@liste_archive_jointe |
| 516 | +/** |
|
| 517 | + * @param string $hash |
|
| 518 | + * @param string $redirect |
|
| 519 | + * @param string $iframe_redirect |
|
| 520 | + */ |
|
| 513 | 521 | function liste_archive_jointe($valables, $zip, $type, $id, $mode, $id_document, $hash, $redirect, $iframe_redirect) |
| 514 | 522 | { |
| 515 | 523 | include_spip('inc/layer'); |
@@ -93,6 +93,9 @@ |
||
| 93 | 93 | // on initialise les donnees de maniere specifique |
| 94 | 94 | // |
| 95 | 95 | // http://doc.spip.org/@article_select_trad |
| 96 | +/** |
|
| 97 | + * @param integer $lier_trad |
|
| 98 | + */ |
|
| 96 | 99 | function article_select_trad($lier_trad, $id_rubrique=0) { |
| 97 | 100 | // Recuperer les donnees de l'article original |
| 98 | 101 | $row = sql_fetsel("*", "spip_articles", "id_article=$lier_trad"); |
@@ -300,6 +300,9 @@ discard block |
||
| 300 | 300 | } |
| 301 | 301 | |
| 302 | 302 | // http://doc.spip.org/@auth_trace |
| 303 | +/** |
|
| 304 | + * @param string $date |
|
| 305 | + */ |
|
| 303 | 306 | function auth_trace($row, $date=null) |
| 304 | 307 | { |
| 305 | 308 | // Indiquer la connexion. A la minute pres ca suffit. |
@@ -454,6 +457,10 @@ discard block |
||
| 454 | 457 | return $securiser_action('auth', "$auth_methode/$login", $redirect, true); |
| 455 | 458 | } |
| 456 | 459 | |
| 460 | +/** |
|
| 461 | + * @param string $auth_methode |
|
| 462 | + * @param string $login |
|
| 463 | + */ |
|
| 457 | 464 | function auth_terminer_identifier_login($auth_methode, $login, $serveur=''){ |
| 458 | 465 | $args = func_get_args(); |
| 459 | 466 | $auteur = auth_administrer('terminer_identifier_login',$args); |
@@ -122,6 +122,10 @@ discard block |
||
| 122 | 122 | // une globale pour aller au plus vite dans la fonction generique ci dessus |
| 123 | 123 | $GLOBALS['autoriser_exception']=array(); |
| 124 | 124 | // http://doc.spip.org/@autoriser_exception |
| 125 | +/** |
|
| 126 | + * @param string $type |
|
| 127 | + * @param integer $id |
|
| 128 | + */ |
|
| 125 | 129 | function autoriser_exception($faire,$type,$id,$autoriser=true){ |
| 126 | 130 | // une static innaccessible par url pour verifier que la globale est positionnee a bon escient |
| 127 | 131 | static $autorisation; |
@@ -709,6 +713,10 @@ discard block |
||
| 709 | 713 | } |
| 710 | 714 | |
| 711 | 715 | // http://doc.spip.org/@autoriser_rubrique_editermots_dist |
| 716 | +/** |
|
| 717 | + * @param string $quoi |
|
| 718 | + * @param integer $id |
|
| 719 | + */ |
|
| 712 | 720 | function autoriser_rubrique_editermots_dist($faire,$quoi,$id,$qui,$opts){ |
| 713 | 721 | // on recupere les champs du groupe s'ils ne sont pas passes en opt |
| 714 | 722 | if (!isset($opts['groupe_champs'])){ |
@@ -289,6 +289,9 @@ discard block |
||
| 289 | 289 | } |
| 290 | 290 | |
| 291 | 291 | // http://doc.spip.org/@icone_bandeau_principal |
| 292 | +/** |
|
| 293 | + * @param integer $decal |
|
| 294 | + */ |
|
| 292 | 295 | function icone_bandeau_principal($detail, $lien, $rubrique_icone = "vide", $rubrique = "", $lien_noscript = "", $sous_rubrique_icone = "", $sous_rubrique = "",$largeur,$decal){ |
| 293 | 296 | global $spip_display, $menu_accesskey, $compteur_survol; |
| 294 | 297 | |
@@ -336,6 +339,10 @@ discard block |
||
| 336 | 339 | } |
| 337 | 340 | |
| 338 | 341 | // http://doc.spip.org/@bandeau_principal2 |
| 342 | +/** |
|
| 343 | + * @param string $rubrique |
|
| 344 | + * @param string $sous_rubrique |
|
| 345 | + */ |
|
| 339 | 346 | function bandeau_principal2($sousmenu,$rubrique, $sous_rubrique, $largeur, $decal) { |
| 340 | 347 | |
| 341 | 348 | $res = ''; |
@@ -27,6 +27,9 @@ discard block |
||
| 27 | 27 | var $sousmenu= null;/* sous barre de boutons / onglets */ |
| 28 | 28 | |
| 29 | 29 | // http://doc.spip.org/@Bouton |
| 30 | + /** |
|
| 31 | + * @param string $target |
|
| 32 | + */ |
|
| 30 | 33 | function Bouton($icone, $libelle, $url=null, $urlArg=null, |
| 31 | 34 | $url2=null, $target=null) { |
| 32 | 35 | $this->icone = $icone; |
@@ -174,6 +177,9 @@ discard block |
||
| 174 | 177 | |
| 175 | 178 | |
| 176 | 179 | // http://doc.spip.org/@barre_onglets |
| 180 | +/** |
|
| 181 | + * @param string $rubrique |
|
| 182 | + */ |
|
| 177 | 183 | function barre_onglets($rubrique, $ongletCourant){ |
| 178 | 184 | |
| 179 | 185 | $res = ''; |
@@ -64,6 +64,9 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | |
| 66 | 66 | // http://doc.spip.org/@interface_plugins_auto |
| 67 | +/** |
|
| 68 | + * @param string $retour |
|
| 69 | + */ |
|
| 67 | 70 | function interface_plugins_auto($retour) { |
| 68 | 71 | |
| 69 | 72 | $res = "<div class='verdana2'>"; |
@@ -444,6 +447,9 @@ discard block |
||
| 444 | 447 | // les renvoie sous forme de tableau url => titre |
| 445 | 448 | // si $desc on ramene aussi le descriptif du paquet desc |
| 446 | 449 | // http://doc.spip.org/@chercher_enclosures_zip |
| 450 | +/** |
|
| 451 | + * @param string $rss |
|
| 452 | + */ |
|
| 447 | 453 | function chercher_enclosures_zip($rss, $desc = '') { |
| 448 | 454 | $liste = array(); |
| 449 | 455 | include_spip('inc/syndic'); |
@@ -517,6 +523,9 @@ discard block |
||
| 517 | 523 | // Si le chargement auto est autorise, un bouton |
| 518 | 524 | // sinon on donne l'url du zip |
| 519 | 525 | // http://doc.spip.org/@bouton_telechargement_plugin |
| 526 | +/** |
|
| 527 | + * @param string $rep |
|
| 528 | + */ |
|
| 520 | 529 | function bouton_telechargement_plugin($url, $rep) { |
| 521 | 530 | // essayer de creer le repertoire lib/ si on en a le droit |
| 522 | 531 | if (($rep == 'lib') AND !is_dir(_DIR_RACINE . 'lib')) |
@@ -557,6 +557,9 @@ discard block |
||
| 557 | 557 | |
| 558 | 558 | |
| 559 | 559 | // http://doc.spip.org/@translitteration_rapide |
| 560 | +/** |
|
| 561 | + * @return string |
|
| 562 | + */ |
|
| 560 | 563 | function translitteration_rapide($texte, $charset='AUTO', $complexe='') { |
| 561 | 564 | static $trans; |
| 562 | 565 | if ($charset == 'AUTO') |
@@ -699,6 +702,9 @@ discard block |
||
| 699 | 702 | // Gerer les outils mb_string |
| 700 | 703 | // |
| 701 | 704 | // http://doc.spip.org/@spip_substr |
| 705 | +/** |
|
| 706 | + * @param integer $length |
|
| 707 | + */ |
|
| 702 | 708 | function spip_substr($c, $start=0, $length = NULL) { |
| 703 | 709 | // Si ce n'est pas utf-8, utiliser substr |
| 704 | 710 | if ($GLOBALS['meta']['charset'] != 'utf-8') { |
@@ -722,6 +728,9 @@ discard block |
||
| 722 | 728 | |
| 723 | 729 | // version manuelle de substr utf8, pour php vieux et/ou mal installe |
| 724 | 730 | // http://doc.spip.org/@spip_substr_manuelle |
| 731 | +/** |
|
| 732 | + * @param integer $start |
|
| 733 | + */ |
|
| 725 | 734 | function spip_substr_manuelle($c, $start, $length = NULL) { |
| 726 | 735 | |
| 727 | 736 | // Cas pathologique |