����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 18.221.83.34 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/./gltevjme/bofirm.gltechlimited.com/vendor/matomo/device-detector/Parser/Device/ |
Upload File : |
<?php /** * Device Detector - The Universal Device Detection library for parsing User Agents * * @link https://matomo.org * * @license http://www.gnu.org/licenses/lgpl.html LGPL v3 or later */ declare(strict_types=1); namespace DeviceDetector\Parser\Device; /** * Class HbbTv * * Device parser for hbbtv detection */ class HbbTv extends AbstractDeviceParser { /** * @var string */ protected $fixtureFile = 'regexes/device/televisions.yml'; /** * @var string */ protected $parserName = 'tv'; /** * Parses the current UA and checks whether it contains HbbTv information * * @see televisions.yml for list of detected televisions * * @return array|null */ public function parse(): ?array { // only parse user agents containing fragments: hbbtv if (null === $this->isHbbTv()) { return null; } parent::parse(); // always set device type to tv, even if no model/brand could be found $this->deviceType = self::DEVICE_TYPE_TV; return $this->getResult(); } /** * Returns if the parsed UA was identified as a HbbTV device * * @return string|null */ public function isHbbTv(): ?string { $regex = 'HbbTV/([1-9]{1}(?:\.[0-9]{1}){1,2})'; $match = $this->matchUserAgent($regex); return $match[1] ?? null; } }