Свойство | Type | Description | |
---|---|---|---|
$additionalBrowsers | array | Note: 'Vivaldi' must be above Chrome, otherwise it'll fail | |
$additionalDevices | array | List of desktop devices. | |
$additionalOperatingSystems | array | List of additional operating systems. | |
$additionalProperties | array | List of additional properties. | |
$robots | array | List of robots. |
Méthode | Description | |
---|---|---|
__call ( $name, $arguments ) | Changing detection type to extended. | |
browser ( $userAgent = null ) : string | Get the browser name. | |
device ( string $userAgent = null ) : string | Get the device name. | |
getDetectionRulesExtended ( ) : array | Get all detection rules. These rules include the additional platforms and browsers. | |
getRules ( ) : array | Retrieve the current set of rules. | |
isDesktop ( string $userAgent = null, array $httpHeaders = null ) : boolean | Check if the device is a desktop computer. | |
isPhone ( string $userAgent = null, array $httpHeaders = null ) : boolean | Check if the device is a mobile phone. | |
isRobot ( string $userAgent = null ) : boolean | Check if device is a robot. | |
languages ( $acceptLanguage = null ) : array | Get accept languages. | |
platform ( string $userAgent = null ) : string | Get the platform name. | |
robot ( string $userAgent = null ) : string | Get the robot name. | |
version ( $propertyName, $type = self::VERSION_TYPE_STRING ) | Check the version of the given property in the User-Agent. |
Méthode | Description | |
---|---|---|
findDetectionRulesAgainstUA ( array $rules, null $userAgent = null ) : string | Match a detection rule and return the matched key. | |
mergeRules ( ) : array | Merge multiple rules into one array. |
public getDetectionRulesExtended ( ) : array | ||
Résultat | array |
protected mergeRules ( ) : array | ||
Résultat | array |
public version ( $propertyName, $type = self::VERSION_TYPE_STRING ) |
protected static array $additionalBrowsers | ||
Résultat | array |
protected static array $additionalDevices | ||
Résultat | array |
protected static array $additionalOperatingSystems | ||
Résultat | array |
protected static array $additionalProperties | ||
Résultat | array |
protected static array $robots | ||
Résultat | array |