/** * @return tx_piwikintegration_config */ public static function getConfigObject() { if (self::$configObject == NULL) { self::$configObject = new tx_piwikintegration_config(); } return self::$configObject; }
/** * @throws Exception * @return tx_piwikintegration_config */ public function getConfigObject() { if ($this->checkInstallation()) { return tx_piwikintegration_config::getConfigObject(); } else { throw new \Exception('Piwik is not installed!'); } }