PHP 클래스 Piwik\ProfessionalServices\Advertising

Lets you for example check whether advertising is enabled, generate links for different landing pages etc.
부터: 2.16.0
파일 보기 프로젝트 열기: piwik/piwik 1 사용 예제들

공개 메소드들

메소드 설명
__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.

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