@@ -116,8 +116,6 @@ |
||
| 116 | 116 | * - 'nom' (= id) |
| 117 | 117 | * - 'compatibilite' (= version) |
| 118 | 118 | * |
| 119 | - * @param array $utilise |
|
| 120 | - * Liste des necessite trouvés pour le plugin |
|
| 121 | 119 | * @return array |
| 122 | 120 | * Liste des necessite modifiés. |
| 123 | 121 | */ |
@@ -57,6 +57,9 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | |
| 59 | 59 | // http://doc.spip.org/@argumenter_inclure |
| 60 | +/** |
|
| 61 | + * @param boolean $rejet_filtres |
|
| 62 | + */ |
|
| 60 | 63 | function argumenter_inclure($params, $rejet_filtres, $p, &$boucles, $id_boucle, $echap=true, $lang = '', $fond1=false){ |
| 61 | 64 | $l = array(); |
| 62 | 65 | $erreur_p_i_i = ''; |
@@ -665,6 +668,9 @@ discard block |
||
| 665 | 668 | } |
| 666 | 669 | |
| 667 | 670 | // http://doc.spip.org/@calculer_dec |
| 671 | +/** |
|
| 672 | + * @param string $nom |
|
| 673 | + */ |
|
| 668 | 674 | function calculer_dec($nom, $val) |
| 669 | 675 | { |
| 670 | 676 | $static = 'if (!isset($command[\''.$nom.'\'])) '; |
@@ -712,6 +718,9 @@ discard block |
||
| 712 | 718 | } |
| 713 | 719 | |
| 714 | 720 | // http://doc.spip.org/@calculer_from |
| 721 | +/** |
|
| 722 | + * @param Boucle $boucle |
|
| 723 | + */ |
|
| 715 | 724 | function calculer_from(&$boucle) |
| 716 | 725 | { |
| 717 | 726 | $res = ""; |
@@ -783,6 +792,9 @@ discard block |
||
| 783 | 792 | define('_REGEXP_CONCAT_NON_VIDE', "/^(.*)[.]\s*'[^']+'\s*$/"); |
| 784 | 793 | |
| 785 | 794 | // http://doc.spip.org/@compile_cas |
| 795 | +/** |
|
| 796 | + * @param string $id_boucle |
|
| 797 | + */ |
|
| 786 | 798 | function compile_cas($tableau, $descr, &$boucles, $id_boucle) { |
| 787 | 799 | |
| 788 | 800 | $codes = array(); |
@@ -960,6 +972,9 @@ discard block |
||
| 960 | 972 | // de meme si EXP est de la forme (t ? '' : 'C') |
| 961 | 973 | |
| 962 | 974 | // http://doc.spip.org/@compile_retour |
| 975 | +/** |
|
| 976 | + * @param string $tab |
|
| 977 | + */ |
|
| 963 | 978 | function compile_retour($code, $avant, $apres, $altern, $tab, $n) |
| 964 | 979 | { |
| 965 | 980 | if ($avant == "''") $avant = ''; |
@@ -788,6 +788,9 @@ discard block |
||
| 788 | 788 | // Code specifique aux criteres {pagination}, {1,n} {n/m} etc |
| 789 | 789 | // |
| 790 | 790 | |
| 791 | +/** |
|
| 792 | + * @param string $mode |
|
| 793 | + */ |
|
| 791 | 794 | function calculer_parties(&$boucles, $id_boucle, $debut, $mode){ |
| 792 | 795 | $total_parties = $boucles[$id_boucle]->total_parties; |
| 793 | 796 | |
@@ -978,6 +981,9 @@ discard block |
||
| 978 | 981 | } |
| 979 | 982 | |
| 980 | 983 | // http://doc.spip.org/@critere_IN_cas |
| 984 | +/** |
|
| 985 | + * @param string $crit2 |
|
| 986 | + */ |
|
| 981 | 987 | function critere_IN_cas($idb, &$boucles, $crit2, $arg, $op, $val, $col){ |
| 982 | 988 | static $num = array(); |
| 983 | 989 | $descr = $boucles[$idb]->descr; |
@@ -1473,6 +1479,9 @@ discard block |
||
| 1473 | 1479 | |
| 1474 | 1480 | |
| 1475 | 1481 | // http://doc.spip.org/@trouver_champ |
| 1482 | +/** |
|
| 1483 | + * @param string $champ |
|
| 1484 | + */ |
|
| 1476 | 1485 | function trouver_champ($champ, $where){ |
| 1477 | 1486 | if (!is_array($where)) |
| 1478 | 1487 | return preg_match($champ, $where); |
@@ -1680,6 +1689,10 @@ discard block |
||
| 1680 | 1689 | } |
| 1681 | 1690 | |
| 1682 | 1691 | // http://doc.spip.org/@calculer_param_date |
| 1692 | +/** |
|
| 1693 | + * @param string $date_compare |
|
| 1694 | + * @param string $date_orig |
|
| 1695 | + */ |
|
| 1683 | 1696 | function calculer_param_date($date_compare, $date_orig){ |
| 1684 | 1697 | if (preg_match(",'\" *\.(.*)\. *\"',", $date_compare, $r)){ |
| 1685 | 1698 | $init = "'\" . (\$x = $r[1]) . \"'"; |
@@ -374,6 +374,10 @@ discard block |
||
| 374 | 374 | } |
| 375 | 375 | |
| 376 | 376 | // http://doc.spip.org/@reference_boucle_debug |
| 377 | +/** |
|
| 378 | + * @param string $nom |
|
| 379 | + * @param string $self |
|
| 380 | + */ |
|
| 377 | 381 | function reference_boucle_debug($n, $nom, $self){ |
| 378 | 382 | list($skel, $boucle, $ligne) = trouve_boucle_debug($n, $nom); |
| 379 | 383 | |
@@ -459,6 +463,9 @@ discard block |
||
| 459 | 463 | |
| 460 | 464 | // l'environnement graphique du debuggueur |
| 461 | 465 | |
| 466 | +/** |
|
| 467 | + * @param null|string $self |
|
| 468 | + */ |
|
| 462 | 469 | function debusquer_squelette($fonc, $mode, $self){ |
| 463 | 470 | global $debug_objets; |
| 464 | 471 | |
@@ -745,6 +752,9 @@ discard block |
||
| 745 | 752 | } |
| 746 | 753 | |
| 747 | 754 | // http://doc.spip.org/@debusquer_entete |
| 755 | +/** |
|
| 756 | + * @param string $corps |
|
| 757 | + */ |
|
| 748 | 758 | function debusquer_entete($titre, $corps){ |
| 749 | 759 | global $debug_objets; |
| 750 | 760 | include_spip('balise/formulaire_admin'); |
@@ -130,6 +130,10 @@ discard block |
||
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | // http://doc.spip.org/@index_tables_en_pile |
| 133 | +/** |
|
| 134 | + * @param string $nom_champ |
|
| 135 | + * @param boolean $joker |
|
| 136 | + */ |
|
| 133 | 137 | function index_tables_en_pile($idb, $nom_champ, &$boucles, &$joker) { |
| 134 | 138 | global $exceptions_des_tables; |
| 135 | 139 | |
@@ -568,6 +572,9 @@ discard block |
||
| 568 | 572 | |
| 569 | 573 | // Filtres et,ou,oui,non,sinon,xou,xor,and,or,not,yes |
| 570 | 574 | // et comparateurs |
| 575 | +/** |
|
| 576 | + * @param string $arg |
|
| 577 | + */ |
|
| 571 | 578 | function filtre_logique($fonc, $code, $arg) |
| 572 | 579 | { |
| 573 | 580 | global $table_criteres_infixes; |
@@ -591,6 +598,9 @@ discard block |
||
| 591 | 598 | } |
| 592 | 599 | |
| 593 | 600 | // http://doc.spip.org/@compose_filtres_args |
| 601 | +/** |
|
| 602 | + * @param string $sep |
|
| 603 | + */ |
|
| 594 | 604 | function compose_filtres_args($p, $args, $sep) |
| 595 | 605 | { |
| 596 | 606 | $arglist = ""; |
@@ -607,6 +617,9 @@ discard block |
||
| 607 | 617 | // ET chez sa maman |
| 608 | 618 | // |
| 609 | 619 | // http://doc.spip.org/@calculer_argument_precedent |
| 620 | +/** |
|
| 621 | + * @param string $defaut |
|
| 622 | + */ |
|
| 610 | 623 | function calculer_argument_precedent($idb, $nom_champ, &$boucles, $defaut=null) { |
| 611 | 624 | |
| 612 | 625 | // si recursif, forcer l'extraction du champ SQL mais ignorer le code |
@@ -631,6 +644,10 @@ discard block |
||
| 631 | 644 | // |
| 632 | 645 | |
| 633 | 646 | // http://doc.spip.org/@rindex_pile |
| 647 | +/** |
|
| 648 | + * @param string $champ |
|
| 649 | + * @param string $motif |
|
| 650 | + */ |
|
| 634 | 651 | function rindex_pile($p, $champ, $motif) |
| 635 | 652 | { |
| 636 | 653 | $n = 0; |
@@ -20,8 +20,6 @@ discard block |
||
| 20 | 20 | * dans les squelette |
| 21 | 21 | * |
| 22 | 22 | * @param string $texte |
| 23 | - * @param string $code |
|
| 24 | - * @param string $arglist |
|
| 25 | 23 | * @param Object $p |
| 26 | 24 | * @return string |
| 27 | 25 | */ |
@@ -85,7 +83,7 @@ discard block |
||
| 85 | 83 | * Composer le code d'inclusion PHP |
| 86 | 84 | * |
| 87 | 85 | * @param string $fichier |
| 88 | - * @param Object $p |
|
| 86 | + * @param Inclure $p |
|
| 89 | 87 | * @param array $_contexte |
| 90 | 88 | * @return string |
| 91 | 89 | */ |
@@ -26,7 +26,6 @@ |
||
| 26 | 26 | * @param array $contexte |
| 27 | 27 | * @param string $lang |
| 28 | 28 | * @param string $connect |
| 29 | - * @param string $ext |
|
| 30 | 29 | * @return array |
| 31 | 30 | * |
| 32 | 31 | * http://doc.spip.org/@public_styliser_dist |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | * @param string $type |
| 202 | 202 | * @param string $ext |
| 203 | 203 | * @param bool $echafauder |
| 204 | - * @return mixed |
|
| 204 | + * @return string|boolean |
|
| 205 | 205 | */ |
| 206 | 206 | function z_contenu_disponible($prefix_path,$z_contenu,$type,$ext,$echafauder=true){ |
| 207 | 207 | if ($d = z_trouver_bloc($prefix_path,$z_contenu,$type,$ext)) |
@@ -295,10 +295,8 @@ discard block |
||
| 295 | 295 | * tous les squelettes d'echafaudage du prive sont en fait explicites dans prive/echafaudage |
| 296 | 296 | * on ne fait qu'un mini squelette d'inclusion pour reecrire les variables d'env |
| 297 | 297 | * |
| 298 | - * @param string $type |
|
| 299 | 298 | * @param string $table |
| 300 | 299 | * @param string $table_sql |
| 301 | - * @param array $desc |
|
| 302 | 300 | * @param string $ext |
| 303 | 301 | * @return string |
| 304 | 302 | */ |
@@ -120,6 +120,11 @@ discard block |
||
| 120 | 120 | |
| 121 | 121 | // Par ou ca passe une fois les traductions faites |
| 122 | 122 | // http://doc.spip.org/@spip_pg_trace_query |
| 123 | +/** |
|
| 124 | + * @param string $query |
|
| 125 | + * |
|
| 126 | + * @return resource |
|
| 127 | + */ |
|
| 123 | 128 | function spip_pg_trace_query($query, $serveur='') |
| 124 | 129 | { |
| 125 | 130 | $connexion = &$GLOBALS['connexions'][$serveur ? strtolower($serveur) : 0]; |
@@ -255,6 +260,9 @@ discard block |
||
| 255 | 260 | } |
| 256 | 261 | |
| 257 | 262 | // http://doc.spip.org/@spip_pg_alter_change |
| 263 | +/** |
|
| 264 | + * @param string $arg |
|
| 265 | + */ |
|
| 258 | 266 | function spip_pg_alter_change($table, $arg, $serveur='',$requeter=true) |
| 259 | 267 | { |
| 260 | 268 | if (!preg_match('/^`?(\w+)`?\s+`?(\w+)`?\s+(.*?)\s*(DEFAULT .*?)?(NOT\s+NULL)?\s*(DEFAULT .*?)?$/i',$arg, $r)) { |
@@ -373,7 +381,7 @@ discard block |
||
| 373 | 381 | * |
| 374 | 382 | * @param string $nom : nom de l'index |
| 375 | 383 | * @param string $table : table sql de l'index |
| 376 | - * @param string/array $champs : liste de champs sur lesquels s'applique l'index |
|
| 384 | + * @param string $champs : liste de champs sur lesquels s'applique l'index |
|
| 377 | 385 | * @param string $serveur : nom de la connexion sql utilisee |
| 378 | 386 | * @param bool $requeter : true pour executer la requete ou false pour retourner le texte de la requete |
| 379 | 387 | * |
@@ -424,8 +432,6 @@ discard block |
||
| 424 | 432 | /** |
| 425 | 433 | * Selectionne une base de donnees |
| 426 | 434 | * |
| 427 | - * @param string $nom |
|
| 428 | - * Nom de la base a utiliser |
|
| 429 | 435 | * @param string $serveur |
| 430 | 436 | * Nom du connecteur |
| 431 | 437 | * @param bool $requeter |
@@ -519,6 +525,9 @@ discard block |
||
| 519 | 525 | } |
| 520 | 526 | |
| 521 | 527 | // http://doc.spip.org/@spip_pg_orderby |
| 528 | +/** |
|
| 529 | + * @param string $order |
|
| 530 | + */ |
|
| 522 | 531 | function spip_pg_orderby($order, $select) |
| 523 | 532 | { |
| 524 | 533 | $res = array(); |
@@ -680,6 +689,9 @@ discard block |
||
| 680 | 689 | } |
| 681 | 690 | |
| 682 | 691 | // http://doc.spip.org/@calculer_pg_where |
| 692 | +/** |
|
| 693 | + * @param string $v |
|
| 694 | + */ |
|
| 683 | 695 | function calculer_pg_where($v) |
| 684 | 696 | { |
| 685 | 697 | if (!is_array($v)) |
@@ -703,6 +715,9 @@ discard block |
||
| 703 | 715 | |
| 704 | 716 | |
| 705 | 717 | // http://doc.spip.org/@calculer_pg_expression |
| 718 | +/** |
|
| 719 | + * @param string $expression |
|
| 720 | + */ |
|
| 706 | 721 | function calculer_pg_expression($expression, $v, $join = 'AND'){ |
| 707 | 722 | if (empty($v)) |
| 708 | 723 | return ''; |
@@ -749,6 +764,9 @@ discard block |
||
| 749 | 764 | } |
| 750 | 765 | |
| 751 | 766 | // http://doc.spip.org/@spip_pg_fetch |
| 767 | +/** |
|
| 768 | + * @param resource $res |
|
| 769 | + */ |
|
| 752 | 770 | function spip_pg_fetch($res, $t='', $serveur='',$requeter=true) { |
| 753 | 771 | |
| 754 | 772 | if ($res) $res = pg_fetch_array($res, NULL, PGSQL_ASSOC); |
@@ -805,6 +823,10 @@ discard block |
||
| 805 | 823 | } |
| 806 | 824 | |
| 807 | 825 | // http://doc.spip.org/@spip_pg_insert |
| 826 | +/** |
|
| 827 | + * @param string $champs |
|
| 828 | + * @param string $valeurs |
|
| 829 | + */ |
|
| 808 | 830 | function spip_pg_insert($table, $champs, $valeurs, $desc=array(), $serveur='',$requeter=true) { |
| 809 | 831 | $connexion = &$GLOBALS['connexions'][$serveur ? strtolower($serveur) : 0]; |
| 810 | 832 | $prefixe = $connexion['prefixe']; |
@@ -1115,6 +1137,9 @@ discard block |
||
| 1115 | 1137 | } |
| 1116 | 1138 | |
| 1117 | 1139 | // http://doc.spip.org/@spip_pg_error |
| 1140 | +/** |
|
| 1141 | + * @param string $serveur |
|
| 1142 | + */ |
|
| 1118 | 1143 | function spip_pg_error($query='', $serveur, $requeter=true) { |
| 1119 | 1144 | $link = $GLOBALS['connexions'][$serveur ? strtolower($serveur) : 0]['link']; |
| 1120 | 1145 | $s = $link ? pg_last_error($link) : pg_last_error(); |
@@ -1158,7 +1183,7 @@ discard block |
||
| 1158 | 1183 | * @param bool $requeter |
| 1159 | 1184 | * true pour éxecuter la requête |
| 1160 | 1185 | * false pour retourner le texte de la requête. |
| 1161 | - * @return ressource |
|
| 1186 | + * @return resource |
|
| 1162 | 1187 | * Ressource à utiliser avec sql_fetch() |
| 1163 | 1188 | **/ |
| 1164 | 1189 | function spip_pg_showbase($match, $serveur='',$requeter=true) |