PHP Class Piwik\ProfessionalServices\Advertising

Lets you for example check whether advertising is enabled, generate links for different landing pages etc.
Since: 2.16.0
ファイルを表示 Open project: piwik/piwik Class Usage Examples

Public Methods

Method Description
__construct ( Manager $pluginManager, Config $config )
addPromoCampaignParametersToUrl ( string $url, string $campaignName, string $campaignMedium, string $campaignContent = '' ) : string Appends campaign parameters to the given URL for promoting any Professional Support for Piwik service.
areAdsForProfessionalServicesEnabled ( ) : boolean Returns true if it is ok to show some advertising in the Piwik UI.
getPromoUrlForProfessionalServices ( string $campaignMedium, string $campaignContent = '' ) : string Get URL for promoting Professional Services for Piwik
isAdsEnabledInConfig ( $configGeneralSection ) : boolean

Private Methods

Method Description
getCampaignParametersForPromoUrl ( string $campaignName, string $campaignMedium, string $campaignContent = '' ) : string Generates campaign URL parameters that can be used with promoting Professional Support service.

Method Details

__construct() public method

public __construct ( Manager $pluginManager, Config $config )
$pluginManager Piwik\Plugin\Manager
$config Piwik\Config

addPromoCampaignParametersToUrl() public method

Appends campaign parameters to the given URL for promoting any Professional Support for Piwik service.
public addPromoCampaignParametersToUrl ( string $url, string $campaignName, string $campaignMedium, string $campaignContent = '' ) : string
$url string
$campaignName string
$campaignMedium string
$campaignContent string
return string

areAdsForProfessionalServicesEnabled() public method

Returns true if it is ok to show some advertising in the Piwik UI.

getPromoUrlForProfessionalServices() public method

Get URL for promoting Professional Services for Piwik
public getPromoUrlForProfessionalServices ( string $campaignMedium, string $campaignContent = '' ) : string
$campaignMedium string
$campaignContent string
return string

isAdsEnabledInConfig() public static method

public static isAdsEnabledInConfig ( $configGeneralSection ) : boolean
$configGeneralSection
return boolean