Constructor.
public __construct ( string | boolean $pluginName = false ) | ||
$pluginName | string | boolean | A plugin name to force. If not supplied, it is set to the last part of the class name. |
/** * Constructor. */ public function __construct() { parent::__construct(); $this->dntChecker = new DoNotTrackHeaderChecker(); $this->ipAnonymizer = new IPAnonymizer(); }
public function __construct() { parent::__construct(); $this->osRelatedReports = array('DevicesDetection.getOsFamilies' => Piwik::translate('DevicesDetection_OperatingSystemFamilies'), 'DevicesDetection.getOsVersions' => Piwik::translate('DevicesDetection_OperatingSystemVersions')); $this->browserRelatedReports = array('DevicesDetection.getBrowserFamilies' => Piwik::translate('UserSettings_BrowserFamilies'), 'DevicesDetection.getBrowserVersions' => Piwik::translate('DevicesDetection_BrowserVersions')); }
/** * Constructor. */ public function __construct() { parent::__construct(); $this->configuration = new Configuration(); }
public function __construct() { // this class is named 'Plugin', manually set the 'API' plugin parent::__construct($pluginName = 'API'); }