Source of file FileDownloadsReport.php
Size: 1,027 Bytes - Last Modified: 2021-12-23T10:26:51+00:00
/var/www/docs.ssmods.com/process/src/code/reports/FileDownloadsReport.php
123456789101112131415161718192021222324252627282930313233343536373839404142 | <?php /** * Content secure files download listing * @package trackingsecurefiles * @subpackage reports */ class FileDownloadsReport extends SS_Report { function title() { return _t('FileDownloadsReport.FILE_DOWNLOADS',"File Downloads"); } function description() { return _t('FileDownloadsReport.DESC_FILE_DOWNLOADS', 'List of all secured files that have been downloaded'); } function columns() { return array( "Filename" => array('title' => 'Filename'), 'Created' => array('title' => 'Time'), 'UserID' => array('title' => 'User'), 'By' => array( 'title' => 'By', 'formatting' => '".$getDownloader()."', 'csvFormatting' => '".$getDownloader()."', ), 'Referer' => array('title' => 'Referrer'), 'UserAgent' => array('title' => 'UserAgent'), 'UserIP' => array('title' => 'IP Address'), ); } /** * Return the records that provides your report data. */ public function sourceRecords($params = null) { return FileDownloadRecord::get()->sort('Created', 'DESC'); } } |