\n
Select a report type from the left for a detailed look at site statistics
\n\n" .
$this->RecentViews() .
"\n\n\n\n" .
$this->showAll();
}
function RecentViews() {
return Statistics::getRecentViews();
}
function Trend() {
return Statistics::TrendChart(array('PageView', 'Member', 'SiteTree'), 'day', 'mchart', 'Line', 'red');
}
function BrowserPie() {
return Statistics::BrowserChart();
}
function OSPie() {
return Statistics::OSChart();
}
function UACPie() {
return Statistics::ActivityChart();
}
function UserTable() {
return Statistics::UserRecordTable();
}
function ViewTable() {
return Statistics::getViews('all');
}
function showAll() {
return $this->BrowserPie() .
$this->OSPie() .
$this->UACPie() .
$this->Trend() .
$this->UserTable() .
$this->ViewTable();
}
public function viewcsv() {
header("Content-type: application/x-msdownload");
header("Content-Disposition: attachment; filename=viewreport.csv");
header("Pragma: no-cache");
header("Expires: 0");
echo Statistics::getViewCSV();
}
public function usercsv() {
header("Content-type: application/x-msdownload");
header("Content-Disposition: attachment; filename=userreport.csv");
header("Pragma: no-cache");
header("Expires: 0");
echo Statistics::getUserCSV();
}
}
?>