PHP 클래스 WhichBrowser\Model\Device

상속: extends WhichBrowser\Model\Primitive\Base
파일 보기 프로젝트 열기: whichbrowser/parser 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$carrier string
$flag mixed
$generic boolean
$hidden boolean
$identified integer
$identifier integer
$manufacturer string
$model string
$series string
$subtype string
$type string

공개 메소드들

메소드 설명
getCarrier ( ) : string Get the name of the carrier in a human readable format
getManufacturer ( ) : string Get the name of the manufacturer in a human readable format
getModel ( ) : string Get the name of the model in a human readable format
identifyModel ( string $pattern, string $subject, array | null $defaults = [] ) : string Identify the manufacturer and model based on a pattern
isDetected ( ) : boolean Check if device information is detected
reset ( array | null $properties = null ) Set the properties to the default values
setIdentification ( array $properties ) : string Declare an positive identification
toArray ( ) : array Get an array of all defined properties
toString ( ) : string Get the combined name of the manufacturer and model in a human readable format

메소드 상세

getCarrier() 공개 메소드

Get the name of the carrier in a human readable format
public getCarrier ( ) : string
리턴 string

getManufacturer() 공개 메소드

Get the name of the manufacturer in a human readable format
public getManufacturer ( ) : string
리턴 string

getModel() 공개 메소드

Get the name of the model in a human readable format
public getModel ( ) : string
리턴 string

identifyModel() 공개 메소드

Identify the manufacturer and model based on a pattern
public identifyModel ( string $pattern, string $subject, array | null $defaults = [] ) : string
$pattern string The regular expression that defines the group that matches the model
$subject string The string the regular expression is matched with
$defaults array | null An optional array of properties to set together
리턴 string

isDetected() 공개 메소드

Check if device information is detected
public isDetected ( ) : boolean
리턴 boolean

reset() 공개 메소드

Set the properties to the default values
public reset ( array | null $properties = null )
$properties array | null An optional array of properties to set after setting it to the default values

setIdentification() 공개 메소드

Declare an positive identification
public setIdentification ( array $properties ) : string
$properties array An array, the key of an element determines the name of the property
리턴 string

toArray() 공개 메소드

Get an array of all defined properties
public toArray ( ) : array
리턴 array

toString() 공개 메소드

Get the combined name of the manufacturer and model in a human readable format
public toString ( ) : string
리턴 string

프로퍼티 상세

$carrier 공개적으로 프로퍼티

public string $carrier
리턴 string

$flag 공개적으로 프로퍼티

public mixed $flag
리턴 mixed

$generic 공개적으로 프로퍼티

public bool $generic
리턴 boolean

$hidden 공개적으로 프로퍼티

public bool $hidden
리턴 boolean

$identified 공개적으로 프로퍼티

public int $identified
리턴 integer

$identifier 공개적으로 프로퍼티

public int $identifier
리턴 integer

$manufacturer 공개적으로 프로퍼티

public string $manufacturer
리턴 string

$model 공개적으로 프로퍼티

public string $model
리턴 string

$series 공개적으로 프로퍼티

public string $series
리턴 string

$subtype 공개적으로 프로퍼티

public string $subtype
리턴 string

$type 공개적으로 프로퍼티

public string $type
리턴 string