PHP 클래스 Piwik\Plugins\CoreAdminHome\API

상속: extends Piwik\Plugin\API
파일 보기 프로젝트 열기: piwik/piwik 1 사용 예제들

공개 메소드들

메소드 설명
__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 )

비공개 메소드들

메소드 설명
getDatesToInvalidateFromString ( array $dates ) : Date[] Ensure the specified dates are valid.

메소드 상세

__construct() 공개 메소드

public __construct ( Piwik\Scheduler\Scheduler $scheduler, Piwik\Archive\ArchiveInvalidator $invalidator )
$scheduler Piwik\Scheduler\Scheduler
$invalidator Piwik\Archive\ArchiveInvalidator

invalidateArchivedReports() 공개 메소드

Note: This is done automatically when tracking or importing visits in the past.
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.
리턴 array

runCronArchiving() 공개 메소드

Initiates cron archiving via web request.
public runCronArchiving ( )

runScheduledTasks() 공개 메소드

Will run all scheduled tasks due to run at this time.
public runScheduledTasks ( ) : array
리턴 array

setArchiveSettings() 공개 메소드

public setArchiveSettings ( $enableBrowserTriggerArchiving, $todayArchiveTimeToLive )

setBrandingSettings() 공개 메소드

public setBrandingSettings ( $useCustomLogo )

setTrustedHosts() 공개 메소드

public setTrustedHosts ( $trustedHosts )