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
Afficher le fichier Open project: piwik/piwik Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

addPromoCampaignParametersToUrl() public méthode

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
Résultat string

areAdsForProfessionalServicesEnabled() public méthode

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

getPromoUrlForProfessionalServices() public méthode

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

isAdsEnabledInConfig() public static méthode

public static isAdsEnabledInConfig ( $configGeneralSection ) : boolean
$configGeneralSection
Résultat boolean