PHP Class WhichBrowser\Model\Browser

Inheritance: extends WhichBrowser\Model\Primitive\NameVersion
Datei anzeigen Open project: whichbrowser/parser Class Usage Examples

Public Properties

Property Type Description
$channel string
$family
$hidden boolean
$mode string
$stock boolean
$type string
$using WhichBrowser\Model\Using Information about web views the browser is using

Public Methods

Method Description
getName ( ) : string Get the name in a human readable format
isFamily ( string $name ) : boolean Is the browser from the specified family
isUsing ( string $name ) : boolean Is the browser using the specified webview
reset ( array | null $properties = null ) Set the properties to the default values
toArray ( ) : array Get an array of all defined properties
toString ( ) : string Get a combined name and version number in a human readable format

Method Details

getName() public method

Get the name in a human readable format
public getName ( ) : string
return string

isFamily() public method

Is the browser from the specified family
public isFamily ( string $name ) : boolean
$name string The name of the family
return boolean

isUsing() public method

Is the browser using the specified webview
public isUsing ( string $name ) : boolean
$name string The name of the webview
return boolean

reset() public method

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

toArray() public method

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

toString() public method

Get a combined name and version number in a human readable format
public toString ( ) : string
return string

Property Details

$channel public_oe property

public string $channel
return string

$family public_oe property

public $family

$hidden public_oe property

public bool $hidden
return boolean

$mode public_oe property

public string $mode
return string

$stock public_oe property

public bool $stock
return boolean

$type public_oe property

public string $type
return string

$using public_oe property

Information about web views the browser is using
public Using,WhichBrowser\Model $using
return WhichBrowser\Model\Using