Open Journal Systems
3.3.0
|
Additional Inherited Members | |
![]() | |
$pluginCategory | |
$pluginPath | |
$request | |
![]() | |
_registerTemplateResource ($inCore=false) | |
Counter report plugin.
Definition at line 23 of file CounterReportPlugin.inc.php.
CounterReportPlugin::_getYears | ( | $useLegacyStats = false | ) |
Get the years for which log entries exist in the DB.
$useLegacyStats | boolean Use the old counter plugin data. |
Definition at line 219 of file CounterReportPlugin.inc.php.
References DAORegistry\getDAO().
Referenced by display().
CounterReportPlugin::display | ( | $args, | |
$request | |||
) |
Definition at line 135 of file CounterReportPlugin.inc.php.
References Plugin\$request, _getYears(), getCurrentRelease(), PKPTemplateManager\getManager(), getName(), getReporter(), Plugin\getTemplateResource(), getValidReports(), Validation\isSiteAdmin(), and Validation\redirectLogin().
CounterReportPlugin::getClassPath | ( | ) |
Get classes path for this plugin.
Definition at line 119 of file CounterReportPlugin.inc.php.
References Plugin\getPluginPath().
Referenced by getReportPath().
CounterReportPlugin::getCurrentRelease | ( | ) |
Get the latest counter release
Definition at line 75 of file CounterReportPlugin.inc.php.
Referenced by display().
CounterReportPlugin::getDescription | ( | ) |
Reimplemented from Plugin.
Definition at line 67 of file CounterReportPlugin.inc.php.
CounterReportPlugin::getDisplayName | ( | ) |
Reimplemented from Plugin.
Definition at line 60 of file CounterReportPlugin.inc.php.
CounterReportPlugin::getLocaleFilename | ( | $locale | ) |
Reimplemented from Plugin.
Definition at line 39 of file CounterReportPlugin.inc.php.
References Plugin\getPluginPath().
CounterReportPlugin::getName | ( | ) |
Reimplemented from Plugin.
Definition at line 53 of file CounterReportPlugin.inc.php.
Referenced by display().
CounterReportPlugin::getReporter | ( | $report, | |
$release | |||
) |
Get a COUNTER Reporter Object Must exist in the report path as {Report}_r{release}.inc.php
$report | string Report name |
$release | string release identifier |
Definition at line 103 of file CounterReportPlugin.inc.php.
Referenced by display().
CounterReportPlugin::getReportPath | ( | ) |
Return the report path
Definition at line 128 of file CounterReportPlugin.inc.php.
References getClassPath().
Referenced by getValidReports().
CounterReportPlugin::getValidReports | ( | ) |
List the valid reports Must exist in the report path as {Report}_r{release}.inc.php
Definition at line 84 of file CounterReportPlugin.inc.php.
References getReportPath().
Referenced by display().
CounterReportPlugin::register | ( | $category, | |
$path, | |||
$mainContextId = null |
|||
) |
Load and initialize the plug-in and register plugin hooks.
For backwards compatibility this method will be called whenever the plug-in's category is being loaded. If, however, registerOn() returns an array then this method will only be called when the plug-in is enabled and an entry in the result set of registerOn() matches the current request operation. An empty array matches all request operations.
$category | String Name of category plugin was registered to |
$path | String The path the plugin was found in |
$mainContextId | integer To identify if the plugin is enabled we need a context. This context is usually taken from the request but sometimes there is no context in the request (e.g. when executing CLI commands). Then the main context can be given as an explicit ID. |
Reimplemented from Plugin.
Definition at line 28 of file CounterReportPlugin.inc.php.
References Plugin\addLocaleData().