22 lines
534 B
PHP
22 lines
534 B
PHP
|
<?php
|
||
|
|
||
|
namespace Piwik\Plugins\ExportImportTool;
|
||
|
|
||
|
class ExportImportTool extends \Piwik\Plugin
|
||
|
{
|
||
|
public function registerEvents()
|
||
|
{
|
||
|
return [
|
||
|
'CronArchive.getArchivingAPIMethodForPlugin' => 'getArchivingAPIMethodForPlugin',
|
||
|
];
|
||
|
}
|
||
|
|
||
|
// support archiving just this plugin via core:archive
|
||
|
public function getArchivingAPIMethodForPlugin(&$method, $plugin)
|
||
|
{
|
||
|
if ($plugin == 'ExportImportTool') {
|
||
|
$method = 'ExportImportTool.getExampleArchivedMetric';
|
||
|
}
|
||
|
}
|
||
|
}
|