Méthode | Description | |
---|---|---|
__construct ( Piwik\Scheduler\Scheduler $scheduler, Piwik\Archive\ArchiveInvalidator $invalidator ) | ||
invalidateArchivedReports ( string $idSites, string $dates, string | boolean $period = false, string | boolean $segment = false, boolean $cascadeDown = false ) : array | Invalidates report data, forcing it to be recomputed during the next archiving run. | |
runCronArchiving ( ) | Initiates cron archiving via web request. | |
runScheduledTasks ( ) : array | Will run all scheduled tasks due to run at this time. | |
setArchiveSettings ( $enableBrowserTriggerArchiving, $todayArchiveTimeToLive ) | ||
setBrandingSettings ( $useCustomLogo ) | ||
setTrustedHosts ( $trustedHosts ) |
Méthode | Description | |
---|---|---|
getDatesToInvalidateFromString ( array $dates ) : |
Ensure the specified dates are valid. |
public __construct ( Piwik\Scheduler\Scheduler $scheduler, Piwik\Archive\ArchiveInvalidator $invalidator ) | ||
$scheduler | Piwik\Scheduler\Scheduler | |
$invalidator | Piwik\Archive\ArchiveInvalidator |
public invalidateArchivedReports ( string $idSites, string $dates, string | boolean $period = false, string | boolean $segment = false, boolean $cascadeDown = false ) : array | ||
$idSites | string | Comma separated list of site IDs to invalidate reports for. |
$dates | string | Comma separated list of dates of periods to invalidate reports for. |
$period | string | boolean | The type of period to invalidate: either 'day', 'week', 'month', 'year', 'range'. The command will automatically cascade up, invalidating reports for parent periods as well. So invalidating a day will invalidate the week it's in, the month it's in and the year it's in, since those periods will need to be recomputed too. |
$segment | string | boolean | Optional. The segment to invalidate reports for. |
$cascadeDown | boolean | If true, child periods will be invalidated as well. So if it is requested to invalidate a month, then all the weeks and days within that month will also be invalidated. But only if this parameter is set. |
Résultat | array |
public runCronArchiving ( ) |
public runScheduledTasks ( ) : array | ||
Résultat | array |
public setArchiveSettings ( $enableBrowserTriggerArchiving, $todayArchiveTimeToLive ) |