PHP Класс Piwik\ProfessionalServices\Advertising

Lets you for example check whether advertising is enabled, generate links for different landing pages etc.
С версии: 2.16.0
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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

Приватные методы

Метод Описание
getCampaignParametersForPromoUrl ( string $campaignName, string $campaignMedium, string $campaignContent = '' ) : string Generates campaign URL parameters that can be used with promoting Professional Support service.

Описание методов

__construct() публичный Метод

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

addPromoCampaignParametersToUrl() публичный Метод

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
Результат string

areAdsForProfessionalServicesEnabled() публичный Метод

Returns true if it is ok to show some advertising in the Piwik UI.
public areAdsForProfessionalServicesEnabled ( ) : boolean
Результат boolean

getPromoUrlForProfessionalServices() публичный Метод

Get URL for promoting Professional Services for Piwik
public getPromoUrlForProfessionalServices ( string $campaignMedium, string $campaignContent = '' ) : string
$campaignMedium string
$campaignContent string
Результат string

isAdsEnabledInConfig() публичный статический Метод

public static isAdsEnabledInConfig ( $configGeneralSection ) : boolean
$configGeneralSection
Результат boolean