Download plugins/DevicesDetection/Columns/Base.php from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 569 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/plugins/DevicesDetection/Columns/Base.php
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/plugins/DevicesDetection/Columns/Base.php
-
curl -L -o Base.php https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/plugins/DevicesDetection/Columns/Base.php
569 Bytes
| /** | |
| * Matomo - free/libre analytics platform | |
| * | |
| * @link https://matomo.org | |
| * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later | |
| */ | |
| namespace Piwik\Plugins\DevicesDetection\Columns; | |
| use Piwik\Container\StaticContainer; | |
| use Piwik\DeviceDetector\DeviceDetectorFactory; | |
| use Piwik\Plugin\Dimension\VisitDimension; | |
| abstract class Base extends VisitDimension | |
| { | |
| protected function getUAParser($userAgent, $clientHints) | |
| { | |
| return StaticContainer::get(DeviceDetectorFactory::class)->makeInstance($userAgent, $clientHints); | |
| } | |
| } | |