PHP Класс Piwik\Plugins\PrivacyManager\DoNotTrackHeaderChecker

- X-Do-Not-Track header (used by AdBlockPlus and NoScript) - DNT header (used by Mozilla)
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__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.
protected getBrowsersWithDNTAlwaysEnabled ( ) : array
Результат array

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