spip_bonux_criteres.php
Plugin Spip-Bonux Le plugin qui lave plus SPIP que SPIP (c) 2008 Mathieu Marcillaud, Cedric Morin, Tetue Licence GPL
Table of Contents
Functions
- critere_compteur() : void
- Permet de faire un comptage par table liee
- critere_compteur_left() : mixed
- {compteur_left xxx} permet de faire la meme chose que {compteur xxx} mais avec un LEFT JOIN pour ne pas ignorer ceux qui ont un compteur nul
- critere_somme() : mixed
- Critere {somme champ} #SOMME{champ}
- critere_compte() : mixed
- Critere {compte champ} #COMPTE{champ}
- critere_moyenne() : mixed
- Critere {moyenne champ} #MOYENNE{champ}
- critere_minimum() : mixed
- Critere {minimum champ} #MINIMUM{champ}
- critere_maximum() : mixed
- Critere {maximum champ} #MAXIMUM{champ}
- critere_stats() : mixed
- Critere {stats champ} calcul la totale : somme, compte, minimum, moyenne, maximum
- calcul_critere_fonctions() : mixed
Functions
critere_compteur()
Permet de faire un comptage par table liee
critere_compteur(string $idb, array<string|int, Boucle> &$boucles, Critere $crit[, bool $left = false ]) : void
Parameters
- $idb : string
-
Identifiant de la boucle
- $boucles : array<string|int, Boucle>
-
AST du squelette
- $crit : Critere
-
Paramètres du critère dans cette boucle
- $left : bool = false
-
true pour utiliser un left join plutôt qu'un inner join.
Tags
critere_compteur_left()
{compteur_left xxx} permet de faire la meme chose que {compteur xxx} mais avec un LEFT JOIN pour ne pas ignorer ceux qui ont un compteur nul
critere_compteur_left(mixed $idb, mixed &$boucles, mixed $crit) : mixed
Parameters
- $idb : mixed
- $boucles : mixed
- $crit : mixed
critere_somme()
Critere {somme champ} #SOMME{champ}
critere_somme(mixed $idb, mixed &$boucles, mixed $crit) : mixed
Parameters
- $idb : mixed
- $boucles : mixed
- $crit : mixed
critere_compte()
Critere {compte champ} #COMPTE{champ}
critere_compte(mixed $idb, mixed &$boucles, mixed $crit) : mixed
Parameters
- $idb : mixed
- $boucles : mixed
- $crit : mixed
critere_moyenne()
Critere {moyenne champ} #MOYENNE{champ}
critere_moyenne(mixed $idb, mixed &$boucles, mixed $crit) : mixed
Parameters
- $idb : mixed
- $boucles : mixed
- $crit : mixed
critere_minimum()
Critere {minimum champ} #MINIMUM{champ}
critere_minimum(mixed $idb, mixed &$boucles, mixed $crit) : mixed
Parameters
- $idb : mixed
- $boucles : mixed
- $crit : mixed
critere_maximum()
Critere {maximum champ} #MAXIMUM{champ}
critere_maximum(mixed $idb, mixed &$boucles, mixed $crit) : mixed
Parameters
- $idb : mixed
- $boucles : mixed
- $crit : mixed
critere_stats()
Critere {stats champ} calcul la totale : somme, compte, minimum, moyenne, maximum
critere_stats(mixed $idb, mixed &$boucles, mixed $crit) : mixed
Parameters
- $idb : mixed
- $boucles : mixed
- $crit : mixed
calcul_critere_fonctions()
calcul_critere_fonctions(mixed $func, mixed $idb, mixed &$boucles, mixed $crit) : mixed
Parameters
- $func : mixed
- $idb : mixed
- $boucles : mixed
- $crit : mixed