[(#REM)
Compilation des résultats pour les visites sur un type d'objet particulier
sans que son id numérique ne soit spécifié
Doit absolument recevoir dans l'environnement :
-* Un array de d'id_journal #ENV{id_journals}
On crée deux tableaux différents de compilation :
-* Par objet/id_objet
-* Par id_auteur
-* Par journée
]
#SET{auteurs,#ARRAY}
#SET{temps_auteurs, #ARRAY}
#SET{id_objets,#ARRAY}
#SET{temps_objets, #ARRAY}
#SET{objets_def, #ARRAY}
#SET{dates, #ARRAY}
#SET{temps_date,#ARRAY}
<:bigbrother:info_stats_objet_visite_auteurs_nb{nb=#GET{nb_users},nb_visites=#GET{nb_visites},objet=#ENV{objet},id_objet=#ENV{id_objet}}:>
] [(#ENV{objet}|non)<:bigbrother:info_stats_visite_auteurs_nb{nb=#GET{nb_users},nb_visites=#GET{nb_visites}}:>
] ] [(#REM) Un auteur dans le contexte, pas besoin du tableau spécifique à cet auteur ni de son graphique ]<:bigbrother:thead_id_auteur:> | <:bigbrother:temps_passe:> |
---|---|
[(#ENV{id_auteur}|non)] [(#VALEUR|is_numeric|oui) #INFO_NOM{auteur,#VALEUR}] [(#VALEUR|is_numeric|non) #VALEUR] [(#ENV{id_auteur}|non)] | [(#GET{temps_auteurs}|table_valeur{aut#VALEUR}|bigbrother_duree{0,horaire}) | ]
<:bigbrother:temps_total:> : [(#GET{temps_auteurs}|array_sum|bigbrother_duree{0, horaire})]
<:bigbrother:temps_median:> : [(#GET{temps_auteurs}|bigbrother_mediane|floor|bigbrother_duree{0, horaire})]
<:bigbrother:temps_moyen:> : [(#GET{temps_auteurs}|array_sum|div{[(#GET{auteurs}|count)]}|round|bigbrother_duree{0, horaire})]
<:bigbrother:thead_id_objet:> | [(#ENV{objet}|non)<:bigbrother:thead_objet:> | ]<:bigbrother:thead_titre:> | <:bigbrother:thead_temps_consultation:> |
---|---|---|---|
[(#GET{id_objet})] | [(#ENV{objet}|non)#GET{objet} | ]#INFO_TITRE{#GET{objet},#GET{id_objet}} | [(#GET{temps_objets}|table_valeur{#VALEUR}|bigbrother_duree{0,horaire}) | ]
<:bigbrother:temps_total:> : [(#GET{temps_objets}|array_sum|bigbrother_duree{0, horaire})]
<:bigbrother:temps_median:> : [(#GET{temps_objets}|bigbrother_mediane|floor|bigbrother_duree{0, horaire})]
<:bigbrother:temps_moyen:> : [(#GET{temps_objets}|array_sum|div{[(#GET{id_objets}|count)]}|round|bigbrother_duree{0, horaire})]
<:bigbrother:thead_date:> | <:bigbrother:thead_temps_consultation:> |
---|---|
[(#VALEUR|affdate)] | [(#GET{temps_date}|table_valeur{#VALEUR}|bigbrother_duree{0,horaire}) | ]
<:bigbrother:temps_total:> : [(#GET{temps_date}|array_sum|bigbrother_duree{0, horaire})]
<:bigbrother:temps_median:> : [(#GET{temps_date}|bigbrother_mediane|floor|bigbrother_duree{0, horaire})]
<:bigbrother:temps_moyen:> : [(#GET{temps_date}|array_sum|div{[(#GET{dates}|count)]}|round|bigbrother_duree{0, horaire})]