AbstractDeviceParser.php
1 year ago
Camera.php
1 year ago
CarBrowser.php
1 year ago
Console.php
1 year ago
HbbTv.php
1 year ago
Mobile.php
1 year ago
Notebook.php
1 year ago
PortableMediaPlayer.php
1 year ago
ShellTv.php
1 year ago
Notebook.php
38 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Device Detector - The Universal Device Detection library for parsing User Agents |
| 5 | * |
| 6 | * @link https://matomo.org |
| 7 | * |
| 8 | * @license http://www.gnu.org/licenses/lgpl.html LGPL v3 or later |
| 9 | */ |
| 10 | |
| 11 | declare(strict_types=1); |
| 12 | |
| 13 | namespace DeviceDetector\Parser\Device; |
| 14 | |
| 15 | /** |
| 16 | * Class Notebook |
| 17 | * |
| 18 | * Device parser for notebook detection in Facebook useragents |
| 19 | */ |
| 20 | class Notebook extends AbstractDeviceParser |
| 21 | { |
| 22 | protected $fixtureFile = 'regexes/device/notebooks.yml'; |
| 23 | |
| 24 | protected $parserName = 'notebook'; |
| 25 | |
| 26 | /** |
| 27 | * @inheritdoc |
| 28 | */ |
| 29 | public function parse(): ?array |
| 30 | { |
| 31 | if (!$this->matchUserAgent('FBMD/')) { |
| 32 | return null; |
| 33 | } |
| 34 | |
| 35 | return parent::parse(); |
| 36 | } |
| 37 | } |
| 38 |