__construct() public method

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.
示例#1
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->dntChecker = new DoNotTrackHeaderChecker();
     $this->ipAnonymizer = new IPAnonymizer();
 }
示例#2
0
 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();
 }
示例#4
0
文件: API.php 项目: mgou-net/piwik
 public function __construct()
 {
     // this class is named 'Plugin', manually set the 'API' plugin
     parent::__construct($pluginName = 'API');
 }