Net_UserAgent
[ class tree: Net_UserAgent ] [ index: Net_UserAgent ] [ all elements ]

Class: Net_UserAgent_Detect_APC

Source Location: /Net_UserAgent_Detect-2.5.2/Detect/APC.php

Class Overview

Net_UserAgent_Detect
   |
   --Net_UserAgent_Detect_APC

Net_UserAgent_Detect_APC


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: Net_UserAgent_Detect

Net_UserAgent_Detect::Net_UserAgent_Detect()
Net_UserAgent_Detect::detect()
Detect the user agent and prepare flags, features and quirks based on what is found
Net_UserAgent_Detect::getAcceptType()
Retrive the accept type for the current browser.
Net_UserAgent_Detect::getBrowser()
Since simply returning the "browser" is somewhat ambiguous since there are different ways to classify the browser, this function works by taking an expect list and returning the string of the first match, so put the important ones first in the array.
Net_UserAgent_Detect::getBrowserString()
This function returns the vendor string corresponding to the flag.
Net_UserAgent_Detect::getFeature()
Get the capabilities for the current browser.
Net_UserAgent_Detect::getOS()
Since simply returning the "os" is somewhat ambiguous since there are different ways to classify the browser, this function works by taking an expect list and returning the string of the first match, so put the important ones first in the array.
Net_UserAgent_Detect::getOSString()
This function returns the os string corresponding to the flag.
Net_UserAgent_Detect::getQuirk()
Get the unique behavior for the current browser.
Net_UserAgent_Detect::getUserAgent()
Return the user agent string that is being worked on
Net_UserAgent_Detect::hasAcceptType()
Check the accept types for the current browser.
Net_UserAgent_Detect::hasFeature()
Check the capabilities for the current browser.
Net_UserAgent_Detect::hasQuirk()
Check a unique behavior for the current browser.
Net_UserAgent_Detect::isBrowser()
Look up the provide browser flag and return a boolean value
Net_UserAgent_Detect::isIE()
Determine if the browser is an Internet Explorer browser
Net_UserAgent_Detect::isNavigator()
Determine if the browser is a Netscape Navigator browser
Net_UserAgent_Detect::isNetscape()
Determine if the browser is a Netscape or Mozilla browser
Net_UserAgent_Detect::isOS()
Look up the provide OS flag and return a boolean value
Net_UserAgent_Detect::setAcceptType()
Set the accept types for the current browser.
Net_UserAgent_Detect::setFeature()
Set capabilities for the current browser.
Net_UserAgent_Detect::setOption()
Sets a class option. The available settings are:
  • 'userAgent' => The user agent string to detect (useful for
checking a string manually).
Net_UserAgent_Detect::setQuirk()
Set a unique behavior for the current browser.
Net_UserAgent_Detect::singleton()
To be used in place of the contructor to return only open instance.

Class Details

[line 48]
Net_UserAgent_Detect_APC

PHP version 4.2

Copyright (c) 1997-2003 The PHP Group

This source file is subject to version 2.0 of the PHP license, that is bundled with this package in the file LICENSE, and is available at through the world-wide-web at http://www.php.net/license/2_02.txt. If you did not receive a copy of the PHP license and are unable to obtain it through the world-wide-web, please send a note to license@php.net so we can mail you a copy immediately.



[ Top ]


Class Variables

$key =  ''

[line 50]


Type:   mixed


[ Top ]



Method Detail

Net_UserAgent_Detect_APC (Constructor)   [line 59]

Net_UserAgent_Detect_APC Net_UserAgent_Detect_APC( [string $in_userAgent = null], [mixed $in_detect = null], [mixed $ua_cache_window = 600])

Class constructor

Parameters:

string   $in_userAgent   —  (optional) User agent override.
mixed   $in_detect   —  (optional) The level of checking to do.
mixed   $ua_cache_window   —  Unknown

[ Top ]

cacheRestore   [line 138]

bool cacheRestore( mixed[] $cache)

Restore cached items

Parameters:

mixed[]   $cache   —  An array of items to restore

[ Top ]

cacheSave   [line 157]

void cacheSave( )

Store items in APC

[ Top ]

singleton   [line 120]

object Net_UserAgent_Detect &singleton( [string $in_userAgent = null], [mixed $in_detect = null])

To be used in place of the contructor to return only open instance.
  • Return: instance
  • Access: public

Overrides Net_UserAgent_Detect::singleton() (To be used in place of the contructor to return only open instance.)

Parameters:

string   $in_userAgent   —  (optional) User agent override.
mixed   $in_detect   —  (optional) The level of checking to do.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:37:06 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.