You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

7 lines
350 B

<?php
function transmettre_statistiques_json(string $export = 'visites', string $unite = 'jour', ?int $duree = null, ?string $objet = null, ?int $id_objet = null) {
$visites = charger_fonction('stats_' . $export . '_to_array', 'inc');
$stats = $visites($unite, $duree, $objet, $id_objet);
return json_encode($stats, JSON_PRETTY_PRINT);
}