@@ -16,6 +16,10 @@ |
||
| 16 | 16 | include_spip('inc/acces'); // pour low_sec (iCal) |
| 17 | 17 | |
| 18 | 18 | // http://doc.spip.org/@afficher_liens_calendrier |
| 19 | +/** |
|
| 20 | + * @param string $lien |
|
| 21 | + * @param string $icone |
|
| 22 | + */ |
|
| 19 | 23 | function afficher_liens_calendrier($lien, $icone, $texte) { |
| 20 | 24 | |
| 21 | 25 | global $spip_display; |
@@ -19,6 +19,10 @@ |
||
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | // http://doc.spip.org/@exec_tourner_args |
| 22 | +/** |
|
| 23 | + * @param integer $id_document |
|
| 24 | + * @param integer $id |
|
| 25 | + */ |
|
| 22 | 26 | function exec_tourner_args($id_document, $type, $id) |
| 23 | 27 | { |
| 24 | 28 | if (!$id_document OR !($type == 'article' |
@@ -33,6 +33,9 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | // http://doc.spip.org/@valider_xml_ok |
| 36 | +/** |
|
| 37 | + * @param integer $limit |
|
| 38 | + */ |
|
| 36 | 39 | function valider_xml_ok($url, $req_ext, $limit, $rec) |
| 37 | 40 | { |
| 38 | 41 | $url = urldecode(trim($url)); |
@@ -122,6 +125,9 @@ discard block |
||
| 122 | 125 | } |
| 123 | 126 | |
| 124 | 127 | // http://doc.spip.org/@valider_resultats |
| 128 | +/** |
|
| 129 | + * @param boolean $mode |
|
| 130 | + */ |
|
| 125 | 131 | function valider_resultats($res, $mode) |
| 126 | 132 | { |
| 127 | 133 | $i = $j = $k = 0; |
@@ -203,6 +209,10 @@ discard block |
||
| 203 | 209 | } |
| 204 | 210 | |
| 205 | 211 | // http://doc.spip.org/@valider_pseudo_url |
| 212 | +/** |
|
| 213 | + * @param string $dir |
|
| 214 | + * @param string $script |
|
| 215 | + */ |
|
| 206 | 216 | function valider_pseudo_url($dir, $script, $args='') |
| 207 | 217 | { |
| 208 | 218 | return ($dir == 'exec') |
@@ -289,6 +299,9 @@ discard block |
||
| 289 | 299 | } |
| 290 | 300 | |
| 291 | 301 | // http://doc.spip.org/@valider_dir |
| 302 | +/** |
|
| 303 | + * @param string $dir |
|
| 304 | + */ |
|
| 292 | 305 | function valider_dir($files, $ext, $dir) |
| 293 | 306 | { |
| 294 | 307 | $res = array(); |
@@ -34,6 +34,10 @@ discard block |
||
| 34 | 34 | define('_VERSIONS_SERVEUR', 'http://files.spip.org/'); |
| 35 | 35 | define('_VERSIONS_LISTE', 'archives.xml'); |
| 36 | 36 | |
| 37 | +/** |
|
| 38 | + * @param string $dir |
|
| 39 | + * @param string $file |
|
| 40 | + */ |
|
| 37 | 41 | function info_maj ($dir, $file, $version){ |
| 38 | 42 | include_spip('inc/plugin'); |
| 39 | 43 | |
@@ -67,6 +71,11 @@ discard block |
||
| 67 | 71 | // on teste la nouveaute par If-Modified-Since, |
| 68 | 72 | // et seulement quand celui-ci a change' pour limiter les acces HTTP |
| 69 | 73 | |
| 74 | +/** |
|
| 75 | + * @param string $nom |
|
| 76 | + * |
|
| 77 | + * @return string |
|
| 78 | + */ |
|
| 70 | 79 | function info_maj_cache($nom, $dir, $page='') |
| 71 | 80 | { |
| 72 | 81 | $re = '<archives id="a' . $GLOBALS['meta']["alea_ephemere"] . '">'; |
@@ -65,6 +65,10 @@ |
||
| 65 | 65 | // L'index du SELECT doit s'appeler "id" |
| 66 | 66 | |
| 67 | 67 | // http://doc.spip.org/@optimiser_sansref |
| 68 | +/** |
|
| 69 | + * @param string $table |
|
| 70 | + * @param string $id |
|
| 71 | + */ |
|
| 68 | 72 | function optimiser_sansref($table, $id, $sel) |
| 69 | 73 | { |
| 70 | 74 | $in = array(); |
@@ -127,6 +127,9 @@ |
||
| 127 | 127 | // un autre item du meme feed qui aurait le meme link |
| 128 | 128 | // |
| 129 | 129 | // http://doc.spip.org/@inserer_article_syndique |
| 130 | +/** |
|
| 131 | + * @param string $statut |
|
| 132 | + */ |
|
| 130 | 133 | function inserer_article_syndique ($data, $now_id_syndic, $statut, $url_site, $url_syndic, $resume, $documents, &$faits) { |
| 131 | 134 | // Creer le lien s'il est nouveau - cle=(id_syndic,url) |
| 132 | 135 | // On coupe a 255 caracteres pour eviter tout doublon |
@@ -199,6 +199,9 @@ |
||
| 199 | 199 | // Installe ou verifie un .htaccess, y compris sa prise en compte par Apache |
| 200 | 200 | // |
| 201 | 201 | // http://doc.spip.org/@verifier_htaccess |
| 202 | +/** |
|
| 203 | + * @param string|null $rep |
|
| 204 | + */ |
|
| 202 | 205 | function verifier_htaccess($rep, $force=false) { |
| 203 | 206 | $htaccess = rtrim($rep,"/") . "/" . _ACCESS_FILE_NAME; |
| 204 | 207 | if (((@file_exists($htaccess)) OR defined('_TEST_DIRS')) AND !$force) |
@@ -30,6 +30,9 @@ discard block |
||
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | // http://doc.spip.org/@redirige_action_post |
| 33 | +/** |
|
| 34 | + * @return string |
|
| 35 | + */ |
|
| 33 | 36 | function redirige_action_post($action, $arg, $ret, $gra, $corps, $att='') { |
| 34 | 37 | $r = _DIR_RESTREINT . generer_url_ecrire($ret, $gra, false, true); |
| 35 | 38 | return generer_action_auteur($action, $arg, $r, $corps, $att . " method='post'"); |
@@ -41,6 +44,9 @@ discard block |
||
| 41 | 44 | // d'attribut id = $action-$id (cf. AjaxSqueeze dans layer.js) |
| 42 | 45 | |
| 43 | 46 | // http://doc.spip.org/@ajax_action_auteur |
| 47 | +/** |
|
| 48 | + * @param string $action |
|
| 49 | + */ |
|
| 44 | 50 | function ajax_action_auteur($action, $id, $script, $args='', $corps=false, $args_ajax='', $fct_ajax='') |
| 45 | 51 | { |
| 46 | 52 | if (strpos($args,"#")===FALSE) |
@@ -109,6 +115,9 @@ discard block |
||
| 109 | 115 | // Comme ci-dessus, mais reduit au cas POST et on fournit le bouton Submit. |
| 110 | 116 | // |
| 111 | 117 | // http://doc.spip.org/@ajax_action_post |
| 118 | +/** |
|
| 119 | + * @param string $action |
|
| 120 | + */ |
|
| 112 | 121 | function ajax_action_post($action, $arg, $retour, $gra, $corps, $clic='', $atts_i='', $atts_span = "", $args_ajax='', $fct_ajax='') |
| 113 | 122 | { |
| 114 | 123 | global $spip_lang_right; |
@@ -187,6 +196,9 @@ discard block |
||
| 187 | 196 | // $fonction : denomination semantique du bloc, que l'on retouve en attribut class |
| 188 | 197 | // $id : id de l'objet concerne si il y a lieu ou "", sert a construire un identifiant unique au bloc ("fonction-id") |
| 189 | 198 | // http://doc.spip.org/@ajax_action_greffe |
| 199 | +/** |
|
| 200 | + * @param string $fonction |
|
| 201 | + */ |
|
| 190 | 202 | function ajax_action_greffe($fonction, $id, $corps) |
| 191 | 203 | { |
| 192 | 204 | $idom = $fonction.(strlen($id)?"-$id":""); |
@@ -167,6 +167,9 @@ |
||
| 167 | 167 | } |
| 168 | 168 | |
| 169 | 169 | // http://doc.spip.org/@copy_request |
| 170 | +/** |
|
| 171 | + * @param string $suite |
|
| 172 | + */ |
|
| 170 | 173 | function copy_request($script, $suite, $submit='') |
| 171 | 174 | { |
| 172 | 175 | include_spip('inc/filtres'); |