PHP 클래스 DeviceDetector\Parser\Device\DeviceParserAbstract

Abstract class for all device parsers
상속: extends DeviceDetector\Parser\ParserAbstract
파일 보기 프로젝트 열기: piwik/device-detector 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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 ( )

메소드 상세

buildModel() 보호된 메소드

protected buildModel ( $model, $matches )

getAvailableDeviceTypeNames() 공개 정적인 메소드

Returns names of all available device types
public static getAvailableDeviceTypeNames ( ) : array
리턴 array

getAvailableDeviceTypes() 공개 정적인 메소드

Returns available device types
public static getAvailableDeviceTypes ( ) : array
리턴 array

getBrand() 공개 메소드

Returns the detected device brand
public getBrand ( ) : string
리턴 string

getDeviceName() 공개 정적인 메소드

Returns the name of the given device type
public static getDeviceName ( integer $deviceType ) : mixed
$deviceType integer one of the DEVICE_TYPE_* constants
리턴 mixed

getDeviceType() 공개 메소드

public getDeviceType ( )

getFullName() 공개 정적인 메소드

Returns the full brand name for the given short name
public static getFullName ( string $brandId ) : string
$brandId string short brand name
리턴 string

getModel() 공개 메소드

Returns the detected device model
public getModel ( ) : string
리턴 string

parse() 공개 메소드

public parse ( )

reset() 보호된 메소드

protected reset ( )

setUserAgent() 공개 메소드

Sets the useragent to be parsed
public setUserAgent ( string $userAgent )
$userAgent string

프로퍼티 상세

$brand 보호되어 있는 프로퍼티

protected $brand

$deviceBrands 공개적으로 정적으로 프로퍼티

Note: Before using a new brand in on of the regex files, it needs to be added here
public static array $deviceBrands
리턴 array

$deviceType 보호되어 있는 프로퍼티

protected $deviceType

$deviceTypes 보호되어 있는 정적으로 프로퍼티

Detectable device types
protected static array $deviceTypes
리턴 array

$model 보호되어 있는 프로퍼티

protected $model