diff options
Diffstat (limited to 'plugins/Provider/Visitor.php')
-rw-r--r-- | plugins/Provider/Visitor.php | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/plugins/Provider/Visitor.php b/plugins/Provider/Visitor.php deleted file mode 100644 index c11f1e3a9b..0000000000 --- a/plugins/Provider/Visitor.php +++ /dev/null @@ -1,41 +0,0 @@ -<?php -/** - * Piwik - free/libre analytics platform - * - * @link http://piwik.org - * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - * - */ -namespace Piwik\Plugins\Provider; - -use Piwik\Piwik; - -require_once PIWIK_INCLUDE_PATH . '/plugins/Provider/functions.php'; - -class Visitor -{ - private $details = array(); - - public function __construct($details) - { - $this->details = $details; - } - - public function getProvider() - { - if (isset($this->details['location_provider'])) { - return $this->details['location_provider']; - } - return Piwik::translate('General_Unknown'); - } - - public function getProviderName() - { - return getPrettyProviderName($this->getProvider()); - } - - public function getProviderUrl() - { - return getHostnameUrl(@$this->details['location_provider']); - } -}
\ No newline at end of file |