Property | Type | Description | |
---|---|---|---|
$deviceBrands | array | Note: Before using a new brand in on of the regex files, it needs to be added here |
Property | Type | Description | |
---|---|---|---|
$brand | |||
$deviceType | |||
$deviceTypes | array | Detectable device types | |
$model |
Method | Description | |
---|---|---|
getAvailableDeviceTypeNames ( ) : array | Returns names of all available device types | |
getAvailableDeviceTypes ( ) : array | Returns available device types | |
getBrand ( ) : string | Returns the detected device brand | |
getDeviceName ( integer $deviceType ) : mixed | Returns the name of the given device type | |
getDeviceType ( ) | ||
getFullName ( string $brandId ) : string | Returns the full brand name for the given short name | |
getModel ( ) : string | Returns the detected device model | |
parse ( ) | ||
setUserAgent ( string $userAgent ) | Sets the useragent to be parsed |
Method | Description | |
---|---|---|
buildModel ( $model, $matches ) | ||
reset ( ) |
public static getAvailableDeviceTypeNames ( ) : array | ||
return | array |
public static getAvailableDeviceTypes ( ) : array | ||
return | array |
public static getDeviceName ( integer $deviceType ) : mixed | ||
$deviceType | integer | one of the DEVICE_TYPE_* constants |
return | mixed |
public static getFullName ( string $brandId ) : string | ||
$brandId | string | short brand name |
return | string |
public setUserAgent ( string $userAgent ) | ||
$userAgent | string |
public static array $deviceBrands | ||
return | array |
protected static array $deviceTypes | ||
return | array |