public function getXML()
 {
     $this->printHeader = false;
     $this->printFooter = false;
     $reports = ReportUtil::getNetworkReportsByUid($this->user->id, $this->startDate, $this->endDate);
     $dates = array();
     for ($i = $this->startDate; $i <= $this->endDate; $i = date('Y-m-d', strtotime('+1 day', strtotime($i)))) {
         $dates[] = $i;
     }
     $networks = array();
     foreach ($reports['types'] as $type => $discard) {
         $networks[$type] = isset(Network::$NETWORKS[$type]) ? Network::$NETWORKS[$type]['name'] : 'Unknown';
     }
     $this->smarty->assign('networks', $networks);
     $this->smarty->assign('reports', $reports);
     $this->smarty->assign('dates', $dates);
     return $this->smarty->fetch('../tpl/www/reports/networkReportsXML.tpl');
 }