JOOMLA中国
  • Joomla中国首页
  • 社区
  • 教程
  • 应用市场
  • B计划
Joomla! Framework TM
  • Namespace
  • Class
  • Tree
  • Deprecated

Namespaces

  • Composer
    • Autoload
  • Joomla
    • Application
      • Cli
        • Output
          • Processor
      • Web
    • Data
    • DI
      • Exception
    • Event
    • Filter
    • Input
    • Ldap
    • Registry
      • Format
    • Session
      • Storage
    • String
    • Uri
    • Utilities
  • None
  • PasswordCompat
    • binary
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Yaml
        • Exception
    • Polyfill
      • Util

Classes

  • WebClient

Class WebClient

Class to model a Web Client.

Namespace: Joomla\Application\Web
Since: 1.0
Located at vendor/joomla/application/src/Web/WebClient.php

Methods summary

public
# __construct( string $userAgent = null, string $acceptEncoding = null, string $acceptLanguage = null )

Class constructor.

Class constructor.

Parameters

$userAgent
string - $userAgent The optional user-agent string to parse.
$acceptEncoding
string - $acceptEncoding The optional client accept encoding string to parse.
$acceptLanguage
string - $acceptLanguage The optional client accept language string to parse.

Since

1.0
public mixed
# __get( string $name )

Magic method to get an object property's value by name.

Magic method to get an object property's value by name.

Parameters

$name
string - $name Name of the property for which to return a value.

Returns

mixed - The requested value if it exists.

Since

1.0
protected
# detectBrowser( string $userAgent )

Detects the client browser and version in a user agent string.

Detects the client browser and version in a user agent string.

Parameters

$userAgent
string - $userAgent The user-agent string to parse.

Since

1.0
protected
# detectEncoding( string $acceptEncoding )

Method to detect the accepted response encoding by the client.

Method to detect the accepted response encoding by the client.

Parameters

$acceptEncoding
string - $acceptEncoding The client accept encoding string to parse.

Since

1.0
protected
# detectEngine( string $userAgent )

Detects the client rendering engine in a user agent string.

Detects the client rendering engine in a user agent string.

Parameters

$userAgent
string - $userAgent The user-agent string to parse.

Since

1.0
protected
# detectLanguage( mixed $acceptLanguage )

Method to detect the accepted languages by the client.

Method to detect the accepted languages by the client.

Parameters

$acceptLanguage
mixed - $acceptLanguage The client accept language string to parse.

Since

1.0
protected
# detectPlatform( string $userAgent )

Detects the client platform in a user agent string.

Detects the client platform in a user agent string.

Parameters

$userAgent
string - $userAgent The user-agent string to parse.

Since

1.0
protected
# detectRobot( string $userAgent )

Determines if the browser is a robot or not.

Determines if the browser is a robot or not.

Parameters

$userAgent
string - $userAgent The user-agent string to parse.

Since

1.0
protected
# detectHeaders( )

Fills internal array of headers

Fills internal array of headers

Since

1.3.0

Magic methods summary

Constants summary

integer WINDOWS 1
#
integer WINDOWS_PHONE 2
#
integer WINDOWS_CE 3
#
integer IPHONE 4
#
integer IPAD 5
#
integer IPOD 6
#
integer MAC 7
#
integer BLACKBERRY 8
#
integer ANDROID 9
#
integer LINUX 10
#
integer TRIDENT 11
#
integer WEBKIT 12
#
integer GECKO 13
#
integer PRESTO 14
#
integer KHTML 15
#
integer AMAYA 16
#
integer IE 17
#
integer FIREFOX 18
#
integer CHROME 19
#
integer SAFARI 20
#
integer OPERA 21
#
integer ANDROIDTABLET 22
#
integer EDGE 23
#
integer BLINK 24
#

Properties summary

protected integer $platform
#

The detected platform on which the web client runs.

The detected platform on which the web client runs.

Since

1.0
protected boolean $mobile
#

True if the web client is a mobile device.

True if the web client is a mobile device.

Since

1.0
protected integer $engine
#

The detected rendering engine used by the web client.

The detected rendering engine used by the web client.

Since

1.0
protected integer $browser
#

The detected browser used by the web client.

The detected browser used by the web client.

Since

1.0
protected string $browserVersion
#

The detected browser version used by the web client.

The detected browser version used by the web client.

Since

1.0
protected array $languages
#

The priority order detected accepted languages for the client.

The priority order detected accepted languages for the client.

Since

1.0
protected array $encodings
#

The priority order detected accepted encodings for the client.

The priority order detected accepted encodings for the client.

Since

1.0
protected string $userAgent
#

The web client's user agent string.

The web client's user agent string.

Since

1.0
protected string $acceptEncoding
#

The web client's accepted encoding string.

The web client's accepted encoding string.

Since

1.0
protected string $acceptLanguage
#

The web client's accepted languages string.

The web client's accepted languages string.

Since

1.0
protected boolean $robot
#

True if the web client is a robot.

True if the web client is a robot.

Since

1.0
protected array $detection
#

An array of flags determining whether or not a detection routine has been run.

An array of flags determining whether or not a detection routine has been run.

Since

1.0
protected array $headers
#

An array of headers sent by client

An array of headers sent by client

Since

1.3.0

Magic properties

public read-only integer $platform
#

The detected platform on which the web client runs.

The detected platform on which the web client runs.

public read-only boolean $mobile
#

True if the web client is a mobile device.

True if the web client is a mobile device.

public read-only integer $engine
#

The detected rendering engine used by the web client.

The detected rendering engine used by the web client.

public read-only integer $browser
#

The detected browser used by the web client.

The detected browser used by the web client.

public read-only string $browserVersion
#

The detected browser version used by the web client.

The detected browser version used by the web client.

public read-only array $languages
#

The priority order detected accepted languages for the client.

The priority order detected accepted languages for the client.

public read-only array $encodings
#

The priority order detected accepted encodings for the client.

The priority order detected accepted encodings for the client.

public read-only string $userAgent
#

The web client's user agent string.

The web client's user agent string.

public read-only string $acceptEncoding
#

The web client's accepted encoding string.

The web client's accepted encoding string.

public read-only string $acceptLanguage
#

The web client's accepted languages string.

The web client's accepted languages string.

public read-only array $detection
#

An array of flags determining whether or not a detection routine has been run.

An array of flags determining whether or not a detection routine has been run.

public read-only boolean $robot
#

True if the web client is a robot

True if the web client is a robot

public read-only array $headers
#

An array of all headers sent by client

An array of all headers sent by client

Joomla! Framework TM API documentation generated by ApiGen 2.8.0
Joomla!® and Joomla! Framework™ are trademarks of Open Source Matters, Inc. in the United States and other countries.