PHP Class Piwik\ArchiveProcessor\PluginsArchiver

Afficher le fichier Open project: piwik/piwik Class Usage Examples

Méthodes publiques

Свойство Type Description
$archiveProcessor
$archivers Piwik\Plugin\Archiver[] Public only for tests. Won't be necessary after DI changes are complete.

Protected Properties

Свойство Type Description
$params Piwik\ArchiveProcessor\Parameters

Méthodes publiques

Méthode 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 ( )

Méthodes protégées

Méthode 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

Méthode Description
getPluginArchiverClass ( $pluginName )
makeNewArchiverObject ( $archiverClass, $pluginName ) : Archiver

Method Details

__construct() public méthode

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

aggregateDayVisitsMetrics() protected méthode

aggregateMultipleVisitsMetrics() protected méthode

callAggregateAllPlugins() public méthode

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

callAggregateCoreMetrics() public méthode

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

convertMetricsIdToName() protected méthode

protected convertMetricsIdToName ( $data )

finalizeArchive() public méthode

public finalizeArchive ( )

getPluginArchivers() protected méthode

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

shouldProcessReportsForPlugin() protected méthode

Whether the specified plugin's reports should be archived
protected shouldProcessReportsForPlugin ( string $pluginName ) : boolean
$pluginName string
Résultat 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
Résultat Piwik\Plugin\Archiver[]

$params protected_oe property

protected Parameters,Piwik\ArchiveProcessor $params
Résultat Piwik\ArchiveProcessor\Parameters