[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/joomla/application/src/Web/ -> WebClient.php (summary)

Part of the Joomla Framework Application Package

Copyright: Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE
File Size: 672 lines (17 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WebClient:: (9 methods):
  __construct()
  __get()
  detectBrowser()
  detectEncoding()
  detectEngine()
  detectLanguage()
  detectPlatform()
  detectRobot()
  detectHeaders()


Class: WebClient  - X-Ref

Class to model a Web Client.

__construct($userAgent = null, $acceptEncoding = null, $acceptLanguage = null)   X-Ref
Class constructor.

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

__get($name)   X-Ref
Magic method to get an object property's value by name.

param: string  $name  Name of the property for which to return a value.
return: mixed  The requested value if it exists.

detectBrowser($userAgent)   X-Ref
Detects the client browser and version in a user agent string.

param: string  $userAgent  The user-agent string to parse.
return: void

detectEncoding($acceptEncoding)   X-Ref
Method to detect the accepted response encoding by the client.

param: string  $acceptEncoding  The client accept encoding string to parse.
return: void

detectEngine($userAgent)   X-Ref
Detects the client rendering engine in a user agent string.

param: string  $userAgent  The user-agent string to parse.
return: void

detectLanguage($acceptLanguage)   X-Ref
Method to detect the accepted languages by the client.

param: mixed  $acceptLanguage  The client accept language string to parse.
return: void

detectPlatform($userAgent)   X-Ref
Detects the client platform in a user agent string.

param: string  $userAgent  The user-agent string to parse.
return: void

detectRobot($userAgent)   X-Ref
Determines if the browser is a robot or not.

param: string  $userAgent  The user-agent string to parse.
return: void

detectHeaders()   X-Ref
Fills internal array of headers

return: void



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer