PHP Class Piwik\Plugins\SitesManager\SitesManager

Inheritance: extends Piwik\Plugin
ファイルを表示 Open project: piwik/piwik Class Usage Examples

Public Methods

Method Description
getClientSideTranslationKeys ( &$translationKeys )
getJsFiles ( &$jsFiles ) Get JavaScript files
getStylesheetFiles ( &$stylesheets ) Get CSS files
getTrackerExcludedQueryParameters ( array $website ) : array Returns the array of URL query parameters to exclude from URLs
onSiteDeleted ( $idSite )
recordWebsiteDataInCache ( array &$array, integer $idSite ) : void Hooks when a website tracker cache is flushed (website updated, cache deleted, or empty cache) Will record in the tracker config file all data needed for this website in Tracker.
redirectDashboardToWelcomePage ( &$module, &$action )
registerEvents ( )

Private Methods

Method Description
filterBlankFromCommaSepList ( string $parameters ) : array Trims each element of a comma-separated list of strings, removes empty elements and returns the result (as an array).
getExcludedUserAgents ( array $website ) : array Returns the array of excluded user agent substrings for a site. Filters out any garbage data & trims each entry.
getTimezoneFromWebsite ( array $site ) : boolean Returns whether we should keep URL fragments for a specific site.
getTrackerExcludedIps ( array $website ) : array Returns the array of excluded IPs to save in the config file
getTrackerHosts ( $urls ) : array Returns the hosts alias URLs
getTrackerSearchCategoryParameters ( $website )
getTrackerSearchKeywordParameters ( $website )
shouldKeepURLFragmentsFor ( array $site ) : boolean Returns whether we should keep URL fragments for a specific site.

Method Details

getClientSideTranslationKeys() public method

public getClientSideTranslationKeys ( &$translationKeys )

getJsFiles() public method

Get JavaScript files
public getJsFiles ( &$jsFiles )

getStylesheetFiles() public method

Get CSS files
public getStylesheetFiles ( &$stylesheets )

getTrackerExcludedQueryParameters() public static method

Returns the array of URL query parameters to exclude from URLs
public static getTrackerExcludedQueryParameters ( array $website ) : array
$website array
return array

onSiteDeleted() public method

public onSiteDeleted ( $idSite )

recordWebsiteDataInCache() public method

Hooks when a website tracker cache is flushed (website updated, cache deleted, or empty cache) Will record in the tracker config file all data needed for this website in Tracker.
public recordWebsiteDataInCache ( array &$array, integer $idSite ) : void
$array array
$idSite integer
return void

redirectDashboardToWelcomePage() public method

public redirectDashboardToWelcomePage ( &$module, &$action )

registerEvents() public method

See also: Piwik\Plugin::registerEvents
public registerEvents ( )