PHP Class Piwik\Plugins\Referrers\Controller

Inheritance: extends Piwik\Plugin\Controller
Afficher le fichier Open project: piwik/piwik

Protected Properties

Свойство Type Description
$referrerTypeToLabel

Méthodes publiques

Méthode Description
DisplayTopKeywords ( $url = "", $api )
__construct ( Piwik\Translation\Translator $translator )
getEvolutionGraph ( $typeReferrer = false, array $columns = [], array $defaultColumns = [] )
getKeywordsForPage ( )
getLastDistinctCampaignsGraph ( )
getLastDistinctKeywordsGraph ( )
getLastDistinctSearchEnginesGraph ( )
getLastDistinctWebsitesGraph ( )
getSparklines ( )
getTranslatedReferrerTypeLabel ( integer $typeReferrer ) : string Returns the i18n-ized label for a referrer type.

Méthodes protégées

Méthode Description
getReferrersVisitorsByType ( $date = false )

Private Methods

Méthode Description
addEvolutionPropertiesToView ( string $date, array $currentValues, string $lastPeriodDate, array $previousValues ) : array Utility method that calculates evolution values for a set of current & past values and sets properties on a View w/ HTML that displays the evolution percents.
getDistinctReferrersMetrics ( boolean | string $date = false ) : array Returns an array containing the number of distinct referrers for each referrer type.
getDistinctSparklineUrlParams ( $action )
getReferrerSparklineParams ( integer $referrerType ) : string Returns the URL for the sparkline of visits with a specific referrer type.

Method Details

DisplayTopKeywords() public méthode

public DisplayTopKeywords ( $url = "", $api )

__construct() public méthode

public __construct ( Piwik\Translation\Translator $translator )
$translator Piwik\Translation\Translator

getEvolutionGraph() public méthode

public getEvolutionGraph ( $typeReferrer = false, array $columns = [], array $defaultColumns = [] )
$columns array
$defaultColumns array

getKeywordsForPage() public méthode

public getKeywordsForPage ( )

getLastDistinctCampaignsGraph() public méthode

getLastDistinctKeywordsGraph() public méthode

getLastDistinctSearchEnginesGraph() public méthode

getLastDistinctWebsitesGraph() public méthode

getReferrersVisitorsByType() protected méthode

protected getReferrersVisitorsByType ( $date = false )

getSparklines() public méthode

public getSparklines ( )

getTranslatedReferrerTypeLabel() public static méthode

Returns the i18n-ized label for a referrer type.
public static getTranslatedReferrerTypeLabel ( integer $typeReferrer ) : string
$typeReferrer integer The referrer type. Referrer types are defined in Common class.
Résultat string The i18n-ized label.

Property Details

$referrerTypeToLabel protected_oe property

protected $referrerTypeToLabel