프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$purgeDataOptions | options for data purging feature array[configName => configSection] |
메소드 | 설명 | |
---|---|---|
__construct ( ) | Constructor. | |
deleteLogData ( ) | Deletes old log data based on the options set in the Deletelogs config section. This is a scheduled task and will only execute every N days. The number of days is determined by the delete_logs_schedule_lowest_interval config option. | |
deleteReportData ( ) | Deletes old archived data (reports & metrics). | |
getAllMetricsToKeep ( ) | Returns the names of metrics that should be kept when purging as they appear in archive tables. | |
getClientSideTranslationKeys ( &$translationKeys ) | ||
getDeleteIntervalInSeconds ( $deleteInterval ) | ||
getJsFiles ( &$jsFiles ) | ||
getPurgeDataSettings ( ) : array | Returns the settings for the data purging feature. | |
getPurgeEstimate ( array $settings = null ) : array | Returns an array describing what data would be purged if both log data & report purging is invoked. | |
hasReportBeenPurged ( Piwik\DataTable\DataTableInterface $dataTable ) : boolean | Returns true if it is likely that the data for this report has been purged and if the user should be told about that. | |
installationFormInit ( Piwik\Plugins\Installation\FormDefaultSettings $form ) | Customize the Installation "default settings" form. | |
installationFormSubmit ( Piwik\Plugins\Installation\FormDefaultSettings $form ) | Process the submit on the Installation "default settings" form. | |
registerEvents ( ) | ||
savePurgeDataSettings ( array $settings ) | Saves the supplied data purging settings. | |
setTrackerCacheGeneral ( &$cacheContent ) | ||
shouldReportBePurged ( integer $reportDateYear, integer $reportDateMonth, integer | |
Returns true if a report with the given year & month should be purged or not. |
메소드 | 설명 | |
---|---|---|
getGoalMetricsToKeep ( ) | Returns the goal metrics to keep when the 'delete_reports_keep_basic_metrics' config is set to 1. | |
getMaxGoalId ( ) | ||
getMetricsToKeep ( ) | Returns the general metrics to keep when the 'delete_reports_keep_basic_metrics' config is set to 1. | |
shouldPurgeData ( $settings, $lastRanOption ) | Returns true if one of the purge data tasks should run now, false if it shouldn't. |
public deleteLogData ( ) |
public deleteReportData ( ) |
public static getAllMetricsToKeep ( ) |
public static getPurgeDataSettings ( ) : array | ||
리턴 | array |
public static getPurgeEstimate ( array $settings = null ) : array | ||
$settings | array | The config options to use in the estimate. If null, the real options are used. |
리턴 | array |
public static hasReportBeenPurged ( Piwik\DataTable\DataTableInterface $dataTable ) : boolean | ||
$dataTable | Piwik\DataTable\DataTableInterface | |
리턴 | boolean |
public installationFormInit ( Piwik\Plugins\Installation\FormDefaultSettings $form ) | ||
$form | Piwik\Plugins\Installation\FormDefaultSettings |
public installationFormSubmit ( Piwik\Plugins\Installation\FormDefaultSettings $form ) | ||
$form | Piwik\Plugins\Installation\FormDefaultSettings |
public static savePurgeDataSettings ( array $settings ) | ||
$settings | array | The settings to save. |
public static shouldReportBePurged ( integer $reportDateYear, integer $reportDateMonth, integer | |
||
$reportDateYear | integer | The year of the report in question. |
$reportDateMonth | integer | The month of the report in question. |
$reportsOlderThan | integer | |
If an int, the number of months a report must be older than in order to be purged. If a date, the date a report must be older than in order to be purged. |
리턴 | boolean |