프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$deviceBrands | array | Note: Before using a new brand in on of the regex files, it needs to be added here |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$brand | |||
$deviceType | |||
$deviceTypes | array | Detectable device types | |
$model |
메소드 | 설명 | |
---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
buildModel ( $model, $matches ) | ||
reset ( ) |
public static getAvailableDeviceTypeNames ( ) : array | ||
리턴 | array |
public static getAvailableDeviceTypes ( ) : array | ||
리턴 | array |
public static getDeviceName ( integer $deviceType ) : mixed | ||
$deviceType | integer | one of the DEVICE_TYPE_* constants |
리턴 | mixed |
public static getFullName ( string $brandId ) : string | ||
$brandId | string | short brand name |
리턴 | string |
public setUserAgent ( string $userAgent ) | ||
$userAgent | string |
public static array $deviceBrands | ||
리턴 | array |