コード例 #1
0
ファイル: index.php プロジェクト: nsystem1/tuneefy
$platformsCatalogueSpan = DBStats::platformsCatalogueSpan($startDate, $endDate);
// Number of tracks and albums
$nbOfAlbums = DBStats::getNbOfAlbums();
$nbOfTracks = DBStats::getNbOfTracks();
// Most Viewed TRACKS AND ARTISTS
$limite = 20;
$mostViewedArtists = DBStats::mostViewedArtists($startDate, $endDate, $limite);
// STANDARD STAT FUNC
$mostViewedTracks = DBStats::mostViewedTracks($startDate, $endDate, $limite);
// STANDARD STAT FUNC
// Platforms HITS
$platformsHits = DBStats::platformsHits($startDate, $endDate, 'all');
// STANDARD STAT FUNC
$platformsHitsViaSearch = DBStats::platformsHits($startDate, $endDate, 'search');
// STANDARD STAT FUNC
$platformsHitsViaShare = DBStats::platformsHits($startDate, $endDate, 'share');
// STANDARD STAT FUNC
$totalPlatformsHits = DBStats::totalPlatformsHits($startDate, $endDate, 'all');
// STANDARD STAT FUNC
$totalPlatformsHitsViaSearch = DBStats::totalPlatformsHits($startDate, $endDate, 'search');
// STANDARD STAT FUNC
$totalPlatformsHitsViaShare = DBStats::totalPlatformsHits($startDate, $endDate, 'share');
// STANDARD STAT FUNC
// Search Trends
$lastSearches = DBStats::lastSearches($startDate, $endDate, $limite);
$popularSearches = DBStats::popularSearches($startDate, $endDate, $limite);
?>
<!DOCTYPE html>
<html>
<head>
  <title>Administration</title>
コード例 #2
0
ファイル: processStats.php プロジェクト: nsystem1/tuneefy
<?php

require _PATH . 'include/database/DBUtils.class.php';
require _PATH . 'include/database/DBStats.class.php';
require _PATH . 'include/database/DBConnection.class.php';
// Total SHARES
$totalViews = DBStats::totalViews();
// Platforms HITS
$platformsHits = DBStats::platformsHits(null, null, 'all');
$totalPlatformsHits = DBStats::totalPlatformsHits(null, null, 'all');
// Most Shared ARTISTS and TRACKS
$listDisplayLimit = 5;
$mostViewedArtists = DBStats::mostViewedArtists(null, null, $listDisplayLimit);
$topViewedArtist = DBStats::mostViewedArtists(null, null, 1);
$mostViewedTracks = DBStats::mostViewedTracks(null, null, $listDisplayLimit);
$mostViewedAlbums = DBStats::mostViewedAlbums(null, null, $listDisplayLimit);