Method |
Description |
|
__construct ( ) |
Constructor. |
|
_downloadStatsCacheMiss ( $cache, $pubObjectId ) : array |
Callback to fill cache with data, if empty. |
|
_getColor ( $num ) : string |
Return a color RGB code to be used in the graph. |
|
_getDownloadStats ( $pubObjectId ) : array |
Get prepared download statistics from the DB |
|
_hashIp ( $ip, $salt ) : string | boolean |
Hash (SHA256) the given IP using the given SALT. |
|
_writeUsageEventInLogFile ( $usageEvent ) |
|
|
addJavascriptData ( $data, $pubObjectType, $pubObjectId, $contexts ) : null |
Add a data set to the script data output |
|
callbackLoadCategory ( $hookName, $args ) |
|
|
callbackLoadHandler ( $hookName, $args ) |
|
|
callbackParseCronTab ( $hookName, $args ) |
|
|
getActions ( $request, $verb ) |
|
|
getAllDownloadsStats ( $pubObjectId, $stats = [] ) |
Retrieve the allDownloads dataset from the download stats |
|
getDescription ( ) |
|
|
getDisplayName ( ) |
|
|
getFilesPath ( ) : string |
Get the plugin's files path. |
|
getGeoLocationTool ( ) : mixed |
Get the geolocation tool to process geo localization
data. |
|
getInstallSchemaFile ( ) |
|
|
getInstallSitePluginSettingsFile ( ) |
|
|
getReportPlugin ( ) |
Get the report plugin object that implements
the metric type details. |
|
getSaltpath ( ) : string |
Get the path to the salt file. |
|
getTemplate ( $args, $template, $smarty ) : string |
Fetch a template with the requested params |
|
getTemplatePath ( $inCore = false ) |
|
|
getUsageEventCurrentDayLogName ( ) : string |
Get current day usage event log name. |
|
getUsageEventLogsPath ( ) : string |
Get the plugin's usage event logs path. |
|
isSitePlugin ( ) |
|
|
loadJavascript ( $contexts ) : null |
Load the JavaScript assets and pass data to the scripts |
|
logUsageEvent ( $hookName, $args ) : boolean |
Log the usage event into a file. |
|
manage ( $args, $request ) |
|
|
register ( $category, $path ) |
|
|
statisticsDisplayCallback ( $hookName, $params ) : boolean |
Adds/renders the submission level metrics markup, if any stats. |
|
templateManagerCallback ( $hookName, $params ) |
Template manager hook callback. |
|
validateSaltpath ( $saltpath ) : boolean |
Validate that the path of the salt file exists and is writable. |
|