PHP Class Piwik\ArchiveProcessor\PluginsArchiver

Exibir arquivo Open project: piwik/piwik Class Usage Examples

Public Properties

Property Type Description
$archiveProcessor
$archivers Piwik\Plugin\Archiver[] Public only for tests. Won't be necessary after DI changes are complete.

Protected Properties

Property Type Description
$params Piwik\ArchiveProcessor\Parameters

Public Methods

Method Description
__construct ( Piwik\ArchiveProcessor\Parameters $params, $isTemporaryArchive )
callAggregateAllPlugins ( $visits, $visitsConverted ) Instantiates the Archiver class in each plugin that defines it, and triggers Aggregation processing on these plugins.
callAggregateCoreMetrics ( ) : array If period is day, will get the core metrics (including visits) from the logs.
finalizeArchive ( )

Protected Methods

Method Description
aggregateDayVisitsMetrics ( )
aggregateMultipleVisitsMetrics ( )
convertMetricsIdToName ( $data )
getPluginArchivers ( ) : Archiver[] Loads Archiver class from any plugin that defines one.
shouldProcessReportsForPlugin ( string $pluginName ) : boolean Whether the specified plugin's reports should be archived

Private Methods

Method Description
getPluginArchiverClass ( $pluginName )
makeNewArchiverObject ( $archiverClass, $pluginName ) : Archiver

Method Details

__construct() public method

public __construct ( Piwik\ArchiveProcessor\Parameters $params, $isTemporaryArchive )
$params Piwik\ArchiveProcessor\Parameters

aggregateDayVisitsMetrics() protected method

aggregateMultipleVisitsMetrics() protected method

callAggregateAllPlugins() public method

Instantiates the Archiver class in each plugin that defines it, and triggers Aggregation processing on these plugins.
public callAggregateAllPlugins ( $visits, $visitsConverted )

callAggregateCoreMetrics() public method

If period is != day, will sum the core metrics from the existing archives.
public callAggregateCoreMetrics ( ) : array
return array Core metrics

convertMetricsIdToName() protected method

protected convertMetricsIdToName ( $data )

finalizeArchive() public method

public finalizeArchive ( )

getPluginArchivers() protected method

Loads Archiver class from any plugin that defines one.
protected getPluginArchivers ( ) : Archiver[]
return Piwik\Plugin\Archiver[]

shouldProcessReportsForPlugin() protected method

Whether the specified plugin's reports should be archived
protected shouldProcessReportsForPlugin ( string $pluginName ) : boolean
$pluginName string
return boolean

Property Details

$archiveProcessor public_oe property

public $archiveProcessor

$archivers public_oe static_oe property

Public only for tests. Won't be necessary after DI changes are complete.
public static Archiver[],Piwik\Plugin $archivers
return Piwik\Plugin\Archiver[]

$params protected_oe property

protected Parameters,Piwik\ArchiveProcessor $params
return Piwik\ArchiveProcessor\Parameters