@@ -107,6 +107,9 @@ |
||
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | // http://doc.spip.org/@ecrire_meta |
| 110 | +/** |
|
| 111 | + * @param string $importable |
|
| 112 | + */ |
|
| 110 | 113 | function ecrire_meta($nom, $valeur, $importable = NULL, $table='meta') { |
| 111 | 114 | |
| 112 | 115 | static $touch = array(); |
@@ -58,6 +58,12 @@ |
||
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | // http://doc.spip.org/@construire_selectionner_hierarchie |
| 61 | +/** |
|
| 62 | + * @param string $idom |
|
| 63 | + * @param string|boolean $racine |
|
| 64 | + * @param string $url |
|
| 65 | + * @param string $name |
|
| 66 | + */ |
|
| 61 | 67 | function construire_selectionner_hierarchie($idom, $liste, $racine, $url, $name, $url_init='') |
| 62 | 68 | { |
| 63 | 69 | global $spip_lang_right; |
@@ -158,6 +158,9 @@ |
||
| 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){ |
@@ -147,6 +147,11 @@ |
||
| 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', ( |
@@ -185,6 +185,9 @@ |
||
| 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/') . |
@@ -12,6 +12,9 @@ |
||
| 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 |
@@ -51,6 +51,10 @@ |
||
| 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'>" |
@@ -69,11 +69,19 @@ |
||
| 69 | 69 | // vraiment n'importe quoi la gestion des chemins des plugins |
| 70 | 70 | // une fonction pour aider... |
| 71 | 71 | // http://doc.spip.org/@chemin_plug |
| 72 | +/** |
|
| 73 | + * @param string $racine |
|
| 74 | + * |
|
| 75 | + * @return string |
|
| 76 | + */ |
|
| 72 | 77 | function chemin_plug($racine, $plug) { |
| 73 | 78 | return preg_replace(',[^/]+/\.\./,', '', "$racine/$plug"); |
| 74 | 79 | } |
| 75 | 80 | |
| 76 | 81 | // http://doc.spip.org/@tree_open_close_dir |
| 82 | +/** |
|
| 83 | + * @param string $target |
|
| 84 | + */ |
|
| 77 | 85 | function tree_open_close_dir(&$current,$target,$deplie=array()){ |
| 78 | 86 | if ($current == $target) return ""; |
| 79 | 87 | $tcur = explode("/",$current); |
@@ -21,6 +21,9 @@ discard block |
||
| 21 | 21 | // Compatibilite : on utilise stripos/strripos() qui n'existent pas en php4 |
| 22 | 22 | if (!function_exists('strripos')) { |
| 23 | 23 | // http://doc.spip.org/@strripos |
| 24 | + /** |
|
| 25 | + * @param string $aiguille |
|
| 26 | + */ |
|
| 24 | 27 | function strripos($botte, $aiguille) { |
| 25 | 28 | if (preg_match('@^(.*)' . preg_quote($aiguille, '@') . '@is', |
| 26 | 29 | $botte, $regs)) { |
@@ -31,6 +34,9 @@ discard block |
||
| 31 | 34 | } |
| 32 | 35 | if (!function_exists('stripos')) { |
| 33 | 36 | // http://doc.spip.org/@stripos |
| 37 | + /** |
|
| 38 | + * @param string $aiguille |
|
| 39 | + */ |
|
| 34 | 40 | function stripos($botte, $aiguille) { |
| 35 | 41 | if (preg_match('@^(.*)' . preg_quote($aiguille, '@') . '@isU', |
| 36 | 42 | $botte, $regs)) { |