| 1 | <?php |
||
| 10 | class UserAgentUtil |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Returns the browser user agent string. |
||
| 14 | * |
||
| 15 | * @return string |
||
| 16 | */ |
||
| 17 | public static function getUserAgent(): string |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Checks if we should return vcard in cal wrapper |
||
| 30 | * |
||
| 31 | * @return bool |
||
| 32 | */ |
||
| 33 | public static function shouldAttachmentBeCal(): bool |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Is iOS - Check if the user is using an iOS-device |
||
| 46 | * |
||
| 47 | * @return bool |
||
| 48 | */ |
||
| 49 | public static function isIOS(): bool |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Is iOS less than 7 (should cal wrapper be returned) |
||
| 59 | * |
||
| 60 | * @return bool |
||
| 61 | */ |
||
| 62 | public static function isIOS7(): bool |
||
| 66 | } |
||
| 67 |