Open Monograph Press  3.3.0
OJSUsageStatsReportPlugin Class Reference
Inheritance diagram for OJSUsageStatsReportPlugin:
PKPUsageStatsReportPlugin ReportPlugin Plugin

Public Member Functions

 getColumns ($metricType)
 
 getDefaultReportTemplates ($metricTypes=null)
 
 getMetricDisplayType ($metricType)
 
 getMetricFullName ($metricType)
 
 getMetrics ($metricType=null, $columns=null, $filters=null, $orderBy=null, $range=null)
 
 getMetricTypes ()
 
 getObjectTypes ($metricType)
 
- Public Member Functions inherited from PKPUsageStatsReportPlugin
 display ($args, $request)
 
 getDescription ()
 
 getDisplayName ()
 
 getName ()
 
 getOptionalColumns ($metricType)
 
 register ($category, $path, $mainContextId=null)
 
- Public Member Functions inherited from ReportPlugin
 getActions ($request, $actionArgs)
 
- Public Member Functions inherited from Plugin
 __construct ()
 
 _overridePluginTemplates ($hookName, $args)
 
 addLocaleData ($locale=null)
 
 getCanDisable ()
 
 getCanEnable ()
 
 getCategory ()
 
 getContextSpecificPluginSettingsFile ()
 
 getCurrentVersion ()
 
 getDirName ()
 
 getEnabled ()
 
 getHideManagement ()
 
 getInstallControlledVocabFiles ()
 
 getInstallDataFile ()
 
 getInstallEmailTemplateDataFile ()
 
 getInstallEmailTemplatesFile ()
 
 getInstallFilterConfigFiles ()
 
 getInstallMigration ()
 
 getInstallSchemaFile ()
 
 getInstallSitePluginSettingsFile ()
 
 getLocaleFilename ($locale)
 
 getPluginPath ()
 
getRequest ()
 
 getSeq ()
 
 getSetting ($contextId, $name)
 
 getTemplatePath ($inCore=false)
 
 getTemplateResource ($template=null, $inCore=false)
 
 import ($class)
 
 installContextSpecificSettings ($hookName, $args)
 
 installControlledVocabs ($hookName, $args)
 
 installData ($hookName, $args)
 
 installEmailTemplateData ($hookName, $args)
 
 installEmailTemplates ($hookName, $args)
 
 installFilters ($hookName, $args)
 
 installLocale ($hookName, $args)
 
 installSiteSettings ($hookName, $args)
 
 isSitePlugin ()
 
 manage ($args, $request)
 
 smartyPluginUrl ($params, $smarty)
 
 updateSchema ($hookName, $args)
 
 updateSetting ($contextId, $name, $value, $type=null)
 

Additional Inherited Members

- Data Fields inherited from Plugin
 $pluginCategory
 
 $pluginPath
 
 $request
 
- Protected Member Functions inherited from PKPUsageStatsReportPlugin
 getAggregationColumns ()
 
 isMetricTypeValid ($metricType)
 
- Protected Member Functions inherited from Plugin
 _registerTemplateResource ($inCore=false)
 

Detailed Description

Definition at line 21 of file OJSUsageStatsReportPlugin.inc.php.

Member Function Documentation

◆ getColumns()

OJSUsageStatsReportPlugin::getColumns (   $metricType)

Get the columns used in reports by the passed metric type.

Parameters
$metricTypestring One of the values returned from getMetricTypes()
Returns
null|array Return an array with STATISTICS_DIMENSION_... constants.

Reimplemented from ReportPlugin.

Definition at line 61 of file OJSUsageStatsReportPlugin.inc.php.

◆ getDefaultReportTemplates()

OJSUsageStatsReportPlugin::getDefaultReportTemplates (   $metricTypes = null)

Get the default report templates that each report plugin can implement, with an string to represent it. Subclasses can override this method to add/remove default formats.

Parameters
$metricTypesstring|array|null Define one or more metric types if you don't want to use all the implemented report metric types.
Returns
array

Reimplemented from PKPUsageStatsReportPlugin.

Definition at line 97 of file OJSUsageStatsReportPlugin.inc.php.

References PKPUsageStatsReportPlugin\getAggregationColumns().

◆ getMetricDisplayType()

OJSUsageStatsReportPlugin::getMetricDisplayType (   $metricType)

Public metric type that will be displayed to end users.

Parameters
$metricTypestring One of the values returned from getMetricTypes()
Returns
null|string The metric type or null if the plug-in does not support standard metric retrieval or the metric type was not found.

Reimplemented from PKPUsageStatsReportPlugin.

Definition at line 45 of file OJSUsageStatsReportPlugin.inc.php.

◆ getMetricFullName()

OJSUsageStatsReportPlugin::getMetricFullName (   $metricType)

Full name of the metric type.

Parameters
$metricTypestring One of the values returned from getMetricTypes()
Returns
null|string The full name of the metric type or null if the plug-in does not support standard metric retrieval or the metric type was not found.

Reimplemented from PKPUsageStatsReportPlugin.

Definition at line 53 of file OJSUsageStatsReportPlugin.inc.php.

◆ getMetrics()

OJSUsageStatsReportPlugin::getMetrics (   $metricType = null,
  $columns = null,
  $filters = null,
  $orderBy = null,
  $range = null 
)

Retrieve a range of aggregate, filtered, ordered metric values, i.e. a statistics report.

See also
https://pkp.sfu.ca/wiki/index.php/OJSdeStatisticsConcept#Input_and_Output_Formats_.28Aggregation.2C_Filters.2C_Metrics_Data.29 for a full specification of the input and output format of this method.
Parameters
$metricTypenull|string|array metrics selection
$columnsstring|array column (aggregation level) selection
$filtersarray report-level filter selection
$orderByarray order criteria
$rangenull|DBResultRange paging specification
Returns
null|array The selected data as a simple tabular result set or null if metrics are not supported by this plug-in, the specified report is invalid or cannot be produced or another error occurred.

Reimplemented from PKPUsageStatsReportPlugin.

Definition at line 26 of file OJSUsageStatsReportPlugin.inc.php.

◆ getMetricTypes()

OJSUsageStatsReportPlugin::getMetricTypes ( )

Metric types available from this plug-in.

Returns
array An array of metric identifiers (strings) supported by this plugin.

Reimplemented from ReportPlugin.

Definition at line 38 of file OJSUsageStatsReportPlugin.inc.php.

◆ getObjectTypes()

OJSUsageStatsReportPlugin::getObjectTypes (   $metricType)

Get the object types that the passed metric type counts statistics for.

Parameters
$metricTypestring One of the values returned from getMetricTypes()
Returns
null|array Return an array with ASSOC_TYPE_... constants.

Reimplemented from ReportPlugin.

Definition at line 83 of file OJSUsageStatsReportPlugin.inc.php.


The documentation for this class was generated from the following file: