PHP Class Piwik\Plugins\Referrers\Controller

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

Protected Properties

Property Type Description
$referrerTypeToLabel

Public Methods

Method 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.

Protected Methods

Method Description
getReferrersVisitorsByType ( $date = false )

Private Methods

Method 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 method

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

__construct() public method

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

getEvolutionGraph() public method

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

getKeywordsForPage() public method

public getKeywordsForPage ( )

getLastDistinctCampaignsGraph() public method

getLastDistinctKeywordsGraph() public method

getLastDistinctSearchEnginesGraph() public method

getLastDistinctWebsitesGraph() public method

getReferrersVisitorsByType() protected method

protected getReferrersVisitorsByType ( $date = false )

getSparklines() public method

public getSparklines ( )

getTranslatedReferrerTypeLabel() public static method

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.
return string The i18n-ized label.

Property Details

$referrerTypeToLabel protected_oe property

protected $referrerTypeToLabel