PHP 클래스 Piwik\Plugins\PrivacyManager\DoNotTrackHeaderChecker

- X-Do-Not-Track header (used by AdBlockPlus and NoScript) - DNT header (used by Mozilla)
파일 보기 프로젝트 열기: piwik/piwik 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Piwik\Plugins\PrivacyManager\Config $config = null )
activate ( ) Activates DoNotTrack header checking. This function will not be called by the Tracker.
checkHeaderInTracker ( &$exclude ) Checks for DoNotTrack headers and if found, sets $exclude to true.
deactivate ( ) Deactivates DoNotTrack header checking. This function will not be called by the Tracker.
isActive ( ) : boolean Returns true if server side DoNotTrack support is enabled, false if otherwise.
isDoNotTrackFound ( ) : boolean

보호된 메소드들

메소드 설명
getBrowsersWithDNTAlwaysEnabled ( ) : array Some browsers have DNT enabled by default. For those we will ignore DNT and always track those users.
isHeaderDntFound ( ) : boolean
isUserAgentWithDoNotTrackAlwaysEnabled ( $userAgent ) : boolean

메소드 상세

__construct() 공개 메소드

public __construct ( Piwik\Plugins\PrivacyManager\Config $config = null )
$config Piwik\Plugins\PrivacyManager\Config

activate() 공개 메소드

Activates DoNotTrack header checking. This function will not be called by the Tracker.
public activate ( )

checkHeaderInTracker() 공개 메소드

Checks for DoNotTrack headers and if found, sets $exclude to true.
public checkHeaderInTracker ( &$exclude )

deactivate() 공개 메소드

Deactivates DoNotTrack header checking. This function will not be called by the Tracker.
public deactivate ( )

getBrowsersWithDNTAlwaysEnabled() 보호된 메소드

Some browsers have DNT enabled by default. For those we will ignore DNT and always track those users.

isActive() 공개 메소드

Returns true if server side DoNotTrack support is enabled, false if otherwise.
public isActive ( ) : boolean
리턴 boolean

isDoNotTrackFound() 공개 메소드

public isDoNotTrackFound ( ) : boolean
리턴 boolean

isHeaderDntFound() 보호된 메소드

protected isHeaderDntFound ( ) : boolean
리턴 boolean

isUserAgentWithDoNotTrackAlwaysEnabled() 보호된 메소드

protected isUserAgentWithDoNotTrackAlwaysEnabled ( $userAgent ) : boolean
$userAgent
리턴 boolean