@@ -21,6 +21,9 @@ |
||
| 21 | 21 | // |
| 22 | 22 | |
| 23 | 23 | // http://code.spip.net/@image_math |
| 24 | +/** |
|
| 25 | + * @param string $tex |
|
| 26 | + */ |
|
| 24 | 27 | function produire_image_math($tex) { |
| 25 | 28 | |
| 26 | 29 | switch ($GLOBALS['traiter_math']) { |
@@ -623,11 +623,11 @@ |
||
| 623 | 623 | * |
| 624 | 624 | * @param $liste |
| 625 | 625 | * Liste de description des plugins |
| 626 | - * @param $nom |
|
| 626 | + * @param string $nom |
|
| 627 | 627 | * Le plugin donc on cherche la presence |
| 628 | 628 | * @param $intervalle |
| 629 | 629 | * L'éventuelle intervalle de compatibilité de la dépendance. ex: [1.1.0;] |
| 630 | - * @param $balise |
|
| 630 | + * @param string $balise |
|
| 631 | 631 | * Permet de définir si on teste un utilise ou un nécessite |
| 632 | 632 | * @return string. |
| 633 | 633 | * Vide si ok, |
@@ -165,7 +165,7 @@ |
||
| 165 | 165 | * @param string $primary |
| 166 | 166 | * @param array $rows |
| 167 | 167 | * @param string $serveur |
| 168 | - * @return array |
|
| 168 | + * @return string[] |
|
| 169 | 169 | */ |
| 170 | 170 | function generer_select_where_explicites($table, $primary, $rows, $serveur) { |
| 171 | 171 | # calculer le {id_article IN()} et le {... as points} |
@@ -30,6 +30,9 @@ discard block |
||
| 30 | 30 | include_spip('inc/filtres_boites'); |
| 31 | 31 | |
| 32 | 32 | // http://code.spip.net/@debut_cadre |
| 33 | +/** |
|
| 34 | + * @param string $style |
|
| 35 | + */ |
|
| 33 | 36 | function debut_cadre($style, $icone = "", $fonction = "", $titre = "", $id = "", $class = "", $padding = true) { |
| 34 | 37 | $style_mapping = array( |
| 35 | 38 | 'r' => 'simple', |
@@ -183,6 +186,10 @@ discard block |
||
| 183 | 186 | function fin_onglet() { return "</ul></div>\n"; } |
| 184 | 187 | |
| 185 | 188 | // http://code.spip.net/@onglet |
| 189 | +/** |
|
| 190 | + * @param string $texte |
|
| 191 | + * @param string $onglet |
|
| 192 | + */ |
|
| 186 | 193 | function onglet($texte, $lien, $onglet_ref, $onglet, $icone = "") { |
| 187 | 194 | return "<li>" |
| 188 | 195 | . ($icone ? http_img_pack($icone, '', " class='cadre-icone'") : '') |
@@ -415,6 +415,13 @@ |
||
| 415 | 415 | } |
| 416 | 416 | |
| 417 | 417 | |
| 418 | +/** |
|
| 419 | + * @param integer $id |
|
| 420 | + * @param string $type |
|
| 421 | + * @param double $n |
|
| 422 | + * @param string|null $img |
|
| 423 | + * @param string $titre |
|
| 424 | + */ |
|
| 418 | 425 | function afficher_script_statut($id, $type, $n, $img, $statut, $titre, $act = '') { |
| 419 | 426 | $h = generer_action_auteur("instituer_objet", "$type-$id-$statut"); |
| 420 | 427 | $h = "selec_statut('$id', '$type', $n, jQuery('img',this).attr('src'), '$h');return false;"; |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | * Ancien statut de la rubrique |
| 51 | 51 | * @param bool $postdate |
| 52 | 52 | * true pour recalculer aussi la date du prochain article post-daté |
| 53 | - * @return bool |
|
| 53 | + * @return boolean|null |
|
| 54 | 54 | * true si le statut change effectivement |
| 55 | 55 | **/ |
| 56 | 56 | function calculer_rubriques_if($id_rubrique, $modifs, $statut_ancien = '', $postdate = false) { |
@@ -424,7 +424,7 @@ discard block |
||
| 424 | 424 | * de la rubrique parente lorsque langue_choisie est différent de oui, |
| 425 | 425 | * et les corrige. |
| 426 | 426 | * |
| 427 | - * @return bool |
|
| 427 | + * @return boolean|string |
|
| 428 | 428 | * true si un changement a eu lieu |
| 429 | 429 | **/ |
| 430 | 430 | function calculer_langues_rubriques_etape() { |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | /** |
| 32 | 32 | * Raccourcis dépendant du sens de la langue |
| 33 | 33 | * |
| 34 | - * @return array Tablea ('','') |
|
| 34 | + * @return string[] Tablea ('','') |
|
| 35 | 35 | */ |
| 36 | 36 | function definir_raccourcis_alineas() { |
| 37 | 37 | return array('', ''); |
@@ -354,7 +354,7 @@ discard block |
||
| 354 | 354 | * Ne fait rien ici. Voir plugin Textwheel |
| 355 | 355 | * |
| 356 | 356 | * @param string $letexte |
| 357 | - * @param null $forcer |
|
| 357 | + * @param boolean|null $forcer |
|
| 358 | 358 | * @return string |
| 359 | 359 | */ |
| 360 | 360 | function paragrapher($letexte, $forcer = true) { |
@@ -245,7 +245,7 @@ |
||
| 245 | 245 | * @param array $matches |
| 246 | 246 | * Branches de l'arbre validant la rexgep |
| 247 | 247 | * @param bool $init ? |
| 248 | - * @return bool |
|
| 248 | + * @return integer |
|
| 249 | 249 | * false si aucun élément ne valide l'expression régulière, true sinon. |
| 250 | 250 | **/ |
| 251 | 251 | function spip_xml_match_nodes($regexp, &$arbre, &$matches, $init = true) { |
@@ -235,6 +235,9 @@ |
||
| 235 | 235 | |
| 236 | 236 | |
| 237 | 237 | // http://code.spip.net/@install_premier_auteur |
| 238 | +/** |
|
| 239 | + * @param string $hidden |
|
| 240 | + */ |
|
| 238 | 241 | function install_premier_auteur($email, $login, $nom, $pass, $hidden, $auteur_obligatoire) { |
| 239 | 242 | return info_progression_etape(3, 'etape_', 'install/') . |
| 240 | 243 | info_etape( |