| 1 | <?php |
||
| 7 | class MobileDetect extends Agent |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Detect kind, model and mobility. |
||
| 11 | * |
||
| 12 | * @return array |
||
| 13 | */ |
||
| 14 | public function detectDevice() |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Get the kind of device. |
||
| 26 | * |
||
| 27 | * @internal param $mobile |
||
| 28 | * |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public function getDeviceKind() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Is this a phone? |
||
| 48 | * |
||
| 49 | * @return bool |
||
| 50 | */ |
||
| 51 | public function isPhone($userAgent = null, $httpHeaders = null) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Is this a computer? |
||
| 58 | * |
||
| 59 | * @return bool |
||
| 60 | */ |
||
| 61 | public function isComputer() |
||
| 65 | } |
||
| 66 |