BrowserDetection.html
4102 lines
| 1 | <html> |
| 2 | <head> |
| 3 | <title>Docs For Class BrowserDetection</title> |
| 4 | <link rel="stylesheet" type="text/css" href="../media/style.css"> |
| 5 | </head> |
| 6 | <body> |
| 7 | |
| 8 | <table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
| 9 | <tr> |
| 10 | <td class="header_top">Browser_Detection</td> |
| 11 | </tr> |
| 12 | <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
| 13 | <tr> |
| 14 | <td class="header_menu"> |
| 15 | |
| 16 | |
| 17 | [ <a href="../classtrees_Browser_Detection.html" class="menu">class tree: Browser_Detection</a> ] |
| 18 | [ <a href="../elementindex_Browser_Detection.html" class="menu">index: Browser_Detection</a> ] |
| 19 | [ <a href="../elementindex.html" class="menu">all elements</a> ] |
| 20 | </td> |
| 21 | </tr> |
| 22 | <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
| 23 | </table> |
| 24 | |
| 25 | <table width="100%" border="0" cellpadding="0" cellspacing="0"> |
| 26 | <tr valign="top"> |
| 27 | <td width="200" class="menu"> |
| 28 | <b>Packages:</b><br /> |
| 29 | <a href="../li_Browser_Detection.html">Browser_Detection</a><br /> |
| 30 | <br /><br /> |
| 31 | <b>Files:</b><br /> |
| 32 | <div class="package"> |
| 33 | <a href="../Browser_Detection/_BrowserDetection.php.html"> BrowserDetection.php |
| 34 | </a><br> |
| 35 | </div><br /> |
| 36 | |
| 37 | |
| 38 | |
| 39 | <b>Classes:</b><br /> |
| 40 | <div class="package"> |
| 41 | <a href="../Browser_Detection/BrowserDetection.html">BrowserDetection</a><br /> |
| 42 | </div> |
| 43 | |
| 44 | </td> |
| 45 | <td> |
| 46 | <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
| 47 | |
| 48 | <h1>Class: BrowserDetection</h1> |
| 49 | Source Location: /BrowserDetection.php<br /><br /> |
| 50 | |
| 51 | |
| 52 | <table width="100%" border="0"> |
| 53 | <tr><td valign="top"> |
| 54 | |
| 55 | <h3><a href="#class_details">Class Overview</a></h3> |
| 56 | <pre></pre><br /> |
| 57 | <div class="description">The BrowserDetection class facilitates the identification of the user's environment such as Web browser, version, platform and device type.</div><br /><br /> |
| 58 | <h4>Author(s):</h4> |
| 59 | <ul> |
| 60 | <li>Alexandre Valiquette, Chris Schuld, Gary White</li> |
| 61 | </ul> |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | <h4>Version:</h4> |
| 70 | <ul> |
| 71 | <li>2.9.7</li> |
| 72 | </ul> |
| 73 | |
| 74 | <h4>Copyright:</h4> |
| 75 | <ul> |
| 76 | <li>Copyright (c) 2022, Wolfcast</li> |
| 77 | </ul> |
| 78 | |
| 79 | </td> |
| 80 | |
| 81 | <td valign="top"> |
| 82 | <h3><a href="#class_vars">Variables</a></h3> |
| 83 | <ul> |
| 84 | <li><a href="../Browser_Detection/BrowserDetection.html#var$_agent">$_agent</a></li> |
| 85 | <li><a href="../Browser_Detection/BrowserDetection.html#var$_browserName">$_browserName</a></li> |
| 86 | <li><a href="../Browser_Detection/BrowserDetection.html#var$_compatibilityViewName">$_compatibilityViewName</a></li> |
| 87 | <li><a href="../Browser_Detection/BrowserDetection.html#var$_compatibilityViewVer">$_compatibilityViewVer</a></li> |
| 88 | <li><a href="../Browser_Detection/BrowserDetection.html#var$_customBrowserDetection">$_customBrowserDetection</a></li> |
| 89 | <li><a href="../Browser_Detection/BrowserDetection.html#var$_customPlatformDetection">$_customPlatformDetection</a></li> |
| 90 | <li><a href="../Browser_Detection/BrowserDetection.html#var$_customRobotDetection">$_customRobotDetection</a></li> |
| 91 | <li><a href="../Browser_Detection/BrowserDetection.html#var$_is64bit">$_is64bit</a></li> |
| 92 | <li><a href="../Browser_Detection/BrowserDetection.html#var$_isMobile">$_isMobile</a></li> |
| 93 | <li><a href="../Browser_Detection/BrowserDetection.html#var$_isRobot">$_isRobot</a></li> |
| 94 | <li><a href="../Browser_Detection/BrowserDetection.html#var$_platform">$_platform</a></li> |
| 95 | <li><a href="../Browser_Detection/BrowserDetection.html#var$_platformVersion">$_platformVersion</a></li> |
| 96 | <li><a href="../Browser_Detection/BrowserDetection.html#var$_robotName">$_robotName</a></li> |
| 97 | <li><a href="../Browser_Detection/BrowserDetection.html#var$_robotVersion">$_robotVersion</a></li> |
| 98 | <li><a href="../Browser_Detection/BrowserDetection.html#var$_version">$_version</a></li> |
| 99 | </ul> |
| 100 | </td> |
| 101 | |
| 102 | <td valign="top"> |
| 103 | <h3><a href="#class_consts">Constants</a></h3> |
| 104 | <ul> |
| 105 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_ANDROID">BROWSER_ANDROID</a></li> |
| 106 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_BLACKBERRY">BROWSER_BLACKBERRY</a></li> |
| 107 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_CHROME">BROWSER_CHROME</a></li> |
| 108 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_EDGE">BROWSER_EDGE</a></li> |
| 109 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_FIREBIRD">BROWSER_FIREBIRD</a></li> |
| 110 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_FIREFOX">BROWSER_FIREFOX</a></li> |
| 111 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_ICAB">BROWSER_ICAB</a></li> |
| 112 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_ICECAT">BROWSER_ICECAT</a></li> |
| 113 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_ICEWEASEL">BROWSER_ICEWEASEL</a></li> |
| 114 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_IE">BROWSER_IE</a></li> |
| 115 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_IE_MOBILE">BROWSER_IE_MOBILE</a></li> |
| 116 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_KONQUEROR">BROWSER_KONQUEROR</a></li> |
| 117 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_LYNX">BROWSER_LYNX</a></li> |
| 118 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_MOZILLA">BROWSER_MOZILLA</a></li> |
| 119 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_MSNTV">BROWSER_MSNTV</a></li> |
| 120 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_NETSCAPE">BROWSER_NETSCAPE</a></li> |
| 121 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_NOKIA">BROWSER_NOKIA</a></li> |
| 122 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_OPERA">BROWSER_OPERA</a></li> |
| 123 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_OPERA_MINI">BROWSER_OPERA_MINI</a></li> |
| 124 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_OPERA_MOBILE">BROWSER_OPERA_MOBILE</a></li> |
| 125 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_PHOENIX">BROWSER_PHOENIX</a></li> |
| 126 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_SAFARI">BROWSER_SAFARI</a></li> |
| 127 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_SAMSUNG">BROWSER_SAMSUNG</a></li> |
| 128 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_TABLET_OS">BROWSER_TABLET_OS</a></li> |
| 129 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_UC">BROWSER_UC</a></li> |
| 130 | <li><a href="../Browser_Detection/BrowserDetection.html#constBROWSER_UNKNOWN">BROWSER_UNKNOWN</a></li> |
| 131 | <li><a href="../Browser_Detection/BrowserDetection.html#constPLATFORM_ANDROID">PLATFORM_ANDROID</a></li> |
| 132 | <li><a href="../Browser_Detection/BrowserDetection.html#constPLATFORM_BLACKBERRY">PLATFORM_BLACKBERRY</a></li> |
| 133 | <li><a href="../Browser_Detection/BrowserDetection.html#constPLATFORM_CHROME_OS">PLATFORM_CHROME_OS</a></li> |
| 134 | <li><a href="../Browser_Detection/BrowserDetection.html#constPLATFORM_FREEBSD">PLATFORM_FREEBSD</a></li> |
| 135 | <li><a href="../Browser_Detection/BrowserDetection.html#constPLATFORM_IOS">PLATFORM_IOS</a></li> |
| 136 | <li><a href="../Browser_Detection/BrowserDetection.html#constPLATFORM_LINUX">PLATFORM_LINUX</a></li> |
| 137 | <li><a href="../Browser_Detection/BrowserDetection.html#constPLATFORM_MACINTOSH">PLATFORM_MACINTOSH</a></li> |
| 138 | <li><a href="../Browser_Detection/BrowserDetection.html#constPLATFORM_NETBSD">PLATFORM_NETBSD</a></li> |
| 139 | <li><a href="../Browser_Detection/BrowserDetection.html#constPLATFORM_NOKIA">PLATFORM_NOKIA</a></li> |
| 140 | <li><a href="../Browser_Detection/BrowserDetection.html#constPLATFORM_OPENBSD">PLATFORM_OPENBSD</a></li> |
| 141 | <li><a href="../Browser_Detection/BrowserDetection.html#constPLATFORM_OPENSOLARIS">PLATFORM_OPENSOLARIS</a></li> |
| 142 | <li><a href="../Browser_Detection/BrowserDetection.html#constPLATFORM_SYMBIAN">PLATFORM_SYMBIAN</a></li> |
| 143 | <li><a href="../Browser_Detection/BrowserDetection.html#constPLATFORM_UNKNOWN">PLATFORM_UNKNOWN</a></li> |
| 144 | <li><a href="../Browser_Detection/BrowserDetection.html#constPLATFORM_VERSION_UNKNOWN">PLATFORM_VERSION_UNKNOWN</a></li> |
| 145 | <li><a href="../Browser_Detection/BrowserDetection.html#constPLATFORM_WINDOWS">PLATFORM_WINDOWS</a></li> |
| 146 | <li><a href="../Browser_Detection/BrowserDetection.html#constPLATFORM_WINDOWS_CE">PLATFORM_WINDOWS_CE</a></li> |
| 147 | <li><a href="../Browser_Detection/BrowserDetection.html#constPLATFORM_WINDOWS_PHONE">PLATFORM_WINDOWS_PHONE</a></li> |
| 148 | <li><a href="../Browser_Detection/BrowserDetection.html#constROBOT_BINGBOT">ROBOT_BINGBOT</a></li> |
| 149 | <li><a href="../Browser_Detection/BrowserDetection.html#constROBOT_GOOGLEBOT">ROBOT_GOOGLEBOT</a></li> |
| 150 | <li><a href="../Browser_Detection/BrowserDetection.html#constROBOT_MSNBOT">ROBOT_MSNBOT</a></li> |
| 151 | <li><a href="../Browser_Detection/BrowserDetection.html#constROBOT_SLURP">ROBOT_SLURP</a></li> |
| 152 | <li><a href="../Browser_Detection/BrowserDetection.html#constROBOT_UNKNOWN">ROBOT_UNKNOWN</a></li> |
| 153 | <li><a href="../Browser_Detection/BrowserDetection.html#constROBOT_VERSION_UNKNOWN">ROBOT_VERSION_UNKNOWN</a></li> |
| 154 | <li><a href="../Browser_Detection/BrowserDetection.html#constROBOT_W3CVALIDATOR">ROBOT_W3CVALIDATOR</a></li> |
| 155 | <li><a href="../Browser_Detection/BrowserDetection.html#constROBOT_YAHOO_MM">ROBOT_YAHOO_MM</a></li> |
| 156 | <li><a href="../Browser_Detection/BrowserDetection.html#constVERSION_UNKNOWN">VERSION_UNKNOWN</a></li> |
| 157 | </ul> |
| 158 | </td> |
| 159 | |
| 160 | <td valign="top"> |
| 161 | <h3><a href="#class_methods">Methods</a></h3> |
| 162 | <ul> |
| 163 | <li><a href="../Browser_Detection/BrowserDetection.html#method__construct">__construct</a></li> |
| 164 | <li><a href="../Browser_Detection/BrowserDetection.html#methodaddCustomBrowserDetection">addCustomBrowserDetection</a></li> |
| 165 | <li><a href="../Browser_Detection/BrowserDetection.html#methodaddCustomPlatformDetection">addCustomPlatformDetection</a></li> |
| 166 | <li><a href="../Browser_Detection/BrowserDetection.html#methodaddCustomRobotDetection">addCustomRobotDetection</a></li> |
| 167 | <li><a href="../Browser_Detection/BrowserDetection.html#methodandroidVerToStr">androidVerToStr</a></li> |
| 168 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowser">checkBrowser</a></li> |
| 169 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserAndroid">checkBrowserAndroid</a></li> |
| 170 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserBlackBerry">checkBrowserBlackBerry</a></li> |
| 171 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserChrome">checkBrowserChrome</a></li> |
| 172 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserCustom">checkBrowserCustom</a></li> |
| 173 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserEdge">checkBrowserEdge</a></li> |
| 174 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserFirebird">checkBrowserFirebird</a></li> |
| 175 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserFirefox">checkBrowserFirefox</a></li> |
| 176 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserIcab">checkBrowserIcab</a></li> |
| 177 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserIceCat">checkBrowserIceCat</a></li> |
| 178 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserIceWeasel">checkBrowserIceWeasel</a></li> |
| 179 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserInternetExplorer">checkBrowserInternetExplorer</a></li> |
| 180 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserKonqueror">checkBrowserKonqueror</a></li> |
| 181 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserLynx">checkBrowserLynx</a></li> |
| 182 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserMozilla">checkBrowserMozilla</a></li> |
| 183 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserMsnTv">checkBrowserMsnTv</a></li> |
| 184 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserNetscape">checkBrowserNetscape</a></li> |
| 185 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserNokia">checkBrowserNokia</a></li> |
| 186 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserOpera">checkBrowserOpera</a></li> |
| 187 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserPhoenix">checkBrowserPhoenix</a></li> |
| 188 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserSafari">checkBrowserSafari</a></li> |
| 189 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserSamsung">checkBrowserSamsung</a></li> |
| 190 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserUAWithVersion">checkBrowserUAWithVersion</a></li> |
| 191 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserUC">checkBrowserUC</a></li> |
| 192 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckPlatform">checkPlatform</a></li> |
| 193 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckPlatformCustom">checkPlatformCustom</a></li> |
| 194 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckPlatformVersion">checkPlatformVersion</a></li> |
| 195 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckRobot">checkRobot</a></li> |
| 196 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckRobotBingbot">checkRobotBingbot</a></li> |
| 197 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckRobotCustom">checkRobotCustom</a></li> |
| 198 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckRobotGooglebot">checkRobotGooglebot</a></li> |
| 199 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckRobotMsnBot">checkRobotMsnBot</a></li> |
| 200 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckRobotSlurp">checkRobotSlurp</a></li> |
| 201 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckRobotW3CValidator">checkRobotW3CValidator</a></li> |
| 202 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckRobotYahooMultimedia">checkRobotYahooMultimedia</a></li> |
| 203 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckSimpleBrowserUA">checkSimpleBrowserUA</a></li> |
| 204 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcheckSimpleRobot">checkSimpleRobot</a></li> |
| 205 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcleanVersion">cleanVersion</a></li> |
| 206 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcompareVersions">compareVersions</a></li> |
| 207 | <li><a href="../Browser_Detection/BrowserDetection.html#methodcontainString">containString</a></li> |
| 208 | <li><a href="../Browser_Detection/BrowserDetection.html#methoddetect">detect</a></li> |
| 209 | <li><a href="../Browser_Detection/BrowserDetection.html#methodfindAndGetVersion">findAndGetVersion</a></li> |
| 210 | <li><a href="../Browser_Detection/BrowserDetection.html#methodgetIECompatibilityView">getIECompatibilityView</a></li> |
| 211 | <li><a href="../Browser_Detection/BrowserDetection.html#methodgetLibVersion">getLibVersion</a></li> |
| 212 | <li><a href="../Browser_Detection/BrowserDetection.html#methodgetName">getName</a></li> |
| 213 | <li><a href="../Browser_Detection/BrowserDetection.html#methodgetPlatform">getPlatform</a></li> |
| 214 | <li><a href="../Browser_Detection/BrowserDetection.html#methodgetPlatformVersion">getPlatformVersion</a></li> |
| 215 | <li><a href="../Browser_Detection/BrowserDetection.html#methodgetRobotName">getRobotName</a></li> |
| 216 | <li><a href="../Browser_Detection/BrowserDetection.html#methodgetRobotVersion">getRobotVersion</a></li> |
| 217 | <li><a href="../Browser_Detection/BrowserDetection.html#methodgetUserAgent">getUserAgent</a></li> |
| 218 | <li><a href="../Browser_Detection/BrowserDetection.html#methodgetVersion">getVersion</a></li> |
| 219 | <li><a href="../Browser_Detection/BrowserDetection.html#methodiOSVerToStr">iOSVerToStr</a></li> |
| 220 | <li><a href="../Browser_Detection/BrowserDetection.html#methodis64bitPlatform">is64bitPlatform</a></li> |
| 221 | <li><a href="../Browser_Detection/BrowserDetection.html#methodisChromeFrame">isChromeFrame</a></li> |
| 222 | <li><a href="../Browser_Detection/BrowserDetection.html#methodisInIECompatibilityView">isInIECompatibilityView</a></li> |
| 223 | <li><a href="../Browser_Detection/BrowserDetection.html#methodisMobile">isMobile</a></li> |
| 224 | <li><a href="../Browser_Detection/BrowserDetection.html#methodisRobot">isRobot</a></li> |
| 225 | <li><a href="../Browser_Detection/BrowserDetection.html#methodmacVerToStr">macVerToStr</a></li> |
| 226 | <li><a href="../Browser_Detection/BrowserDetection.html#methodparseInt">parseInt</a></li> |
| 227 | <li><a href="../Browser_Detection/BrowserDetection.html#methodremoveCustomBrowserDetection">removeCustomBrowserDetection</a></li> |
| 228 | <li><a href="../Browser_Detection/BrowserDetection.html#methodremoveCustomPlatformDetection">removeCustomPlatformDetection</a></li> |
| 229 | <li><a href="../Browser_Detection/BrowserDetection.html#methodremoveCustomRobotDetection">removeCustomRobotDetection</a></li> |
| 230 | <li><a href="../Browser_Detection/BrowserDetection.html#methodreset">reset</a></li> |
| 231 | <li><a href="../Browser_Detection/BrowserDetection.html#methodsafariBuildToSafariVer">safariBuildToSafariVer</a></li> |
| 232 | <li><a href="../Browser_Detection/BrowserDetection.html#methodset64bit">set64bit</a></li> |
| 233 | <li><a href="../Browser_Detection/BrowserDetection.html#methodsetBrowser">setBrowser</a></li> |
| 234 | <li><a href="../Browser_Detection/BrowserDetection.html#methodsetMobile">setMobile</a></li> |
| 235 | <li><a href="../Browser_Detection/BrowserDetection.html#methodsetPlatform">setPlatform</a></li> |
| 236 | <li><a href="../Browser_Detection/BrowserDetection.html#methodsetPlatformVersion">setPlatformVersion</a></li> |
| 237 | <li><a href="../Browser_Detection/BrowserDetection.html#methodsetRobot">setRobot</a></li> |
| 238 | <li><a href="../Browser_Detection/BrowserDetection.html#methodsetRobotName">setRobotName</a></li> |
| 239 | <li><a href="../Browser_Detection/BrowserDetection.html#methodsetRobotVersion">setRobotVersion</a></li> |
| 240 | <li><a href="../Browser_Detection/BrowserDetection.html#methodsetUserAgent">setUserAgent</a></li> |
| 241 | <li><a href="../Browser_Detection/BrowserDetection.html#methodsetVersion">setVersion</a></li> |
| 242 | <li><a href="../Browser_Detection/BrowserDetection.html#methodwebKitBuildToSafariVer">webKitBuildToSafariVer</a></li> |
| 243 | <li><a href="../Browser_Detection/BrowserDetection.html#methodwindowsNTVerToStr">windowsNTVerToStr</a></li> |
| 244 | <li><a href="../Browser_Detection/BrowserDetection.html#methodwindowsVerToStr">windowsVerToStr</a></li> |
| 245 | <li><a href="../Browser_Detection/BrowserDetection.html#methodwordPos">wordPos</a></li> |
| 246 | <li><a href="../Browser_Detection/BrowserDetection.html#method__toString">__toString</a></li> |
| 247 | </ul> |
| 248 | </td> |
| 249 | |
| 250 | </tr></table> |
| 251 | <hr /> |
| 252 | |
| 253 | <table width="100%" border="0"><tr> |
| 254 | |
| 255 | |
| 256 | |
| 257 | |
| 258 | |
| 259 | |
| 260 | </tr></table> |
| 261 | <hr /> |
| 262 | |
| 263 | <a name="class_details"></a> |
| 264 | <h3>Class Details</h3> |
| 265 | <div class="tags"> |
| 266 | [line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a158">158</a>]<br /> |
| 267 | The BrowserDetection class facilitates the identification of the user's environment such as Web browser, version, platform and device type.<br /><br /><p>Typical usage:</p><p>$browser = new Wolfcast\BrowserDetection(); if ($browser->getName() == Wolfcast\BrowserDetection::BROWSER_FIREFOX && $browser->compareVersions($browser->getVersion(), '5.0') >= 0) { echo 'You are using FireFox version 5 or greater.'; }</p><p>The class is a rewrite of Chris Schuld's Browser class version 1.9 which is mostly unmaintained since August 20th, 2010. Chris' class was based on the original work from Gary White.</p><p>Updates:</p><p>2022-09-20: Version 2.9.7 <ul><li>Changed licensing to dual licensing: MIT or LGPL-3.0-only. This has no impact on existing users. You can continue |
| 268 | under the previous license or switch to MIT.</li></ul> 2022-05-01: Version 2.9.6 <ul><li>Added support for Chrome OS.</li><li>Added support for macOS Monterey and macOS Big Sur.</li><li>Now correctly detects AArch64 as 64-bit.</li><li>Added support for PHP 8.</li><li>Tested with latest Web Browsers and platforms.</li></ul> 2020-02-02: Version 2.9.5 <ul><li>WARNING! Breaking change: complete rework of robots detection. Now robot name and version is detected in addition |
| 269 | of browser name and version. Use getRobotName() and getRobotVersion() when isRobot() is true.</li><li>WARNING! Breaking change: due to robots detection rework the following methods signatures has changed (isRobot |
| 270 | parameter removed): addCustomBrowserDetection(), checkSimpleBrowserUA(), checkBrowserUAWithVersion().</li><li>Added possibility to support new robots with addCustomRobotDetection().</li><li>Added support for the new Microsoft Edge based on Chromium.</li><li>Added version names for Android 10 and later (Google no longer use candy names for new versions).</li><li>Added macOS Catalina detection.</li><li>Added Windows Server 2019 detection (Windows Server 2016 can be no longer detected due to the fact that they both |
| 271 | use the same version number and that the build is not included in the user agent).</li></ul> 2019-03-27: Version 2.9.3 <ul><li>Fixed Edge detection on Android.</li><li>Added Android Q detection.</li><li>Now filtering superglobals.</li></ul> 2019-02-28: Version 2.9.2 <ul><li>Fixed Opera detection.</li></ul> 2018-08-23: Version 2.9.1 <ul><li>Fixed Chrome detection under iOS.</li><li>Added Android Pie detection.</li><li>Added macOS Mojave detection.</li></ul> 2018-07-15: Version 2.9.0 <ul><li>WARNING! Breaking change: new Wolfcast namespace. Use new Wolfcast\BrowserDetection().</li><li>iPad, iPhone and iPod are all under iOS now.</li><li>Added Android Oreo detection.</li><li>Added macOS High Sierra detection.</li><li>Added UC Browser detection.</li><li>Improved regular expressions (even less false positives).</li><li>Removed AOL detection.</li><li>Removed the following Web browsers detection: Amaya, Galeon, NetPositive, OmniWeb, Vivaldi detection (use |
| 272 | addCustomBrowserDetection()).</li><li>Removed the following legacy platforms detection: BeOS, OS/2, SunOS (use addCustomPlatformDetection()).</li></ul> 2016-11-28: Version 2.5.1 <ul><li>Better detection of 64-bit platforms.</li></ul> 2016-08-19: Version 2.5.0 <ul><li>Platform version and platform version name are now supported for Mac.</li><li>Fixed platform version name for Android.</li></ul> 2016-08-02: Version 2.4.0 <ul><li>Platform version and platform version name are now supported for Android.</li><li>Added support for the Samsung Internet browser.</li><li>Added support for the Vivaldi browser.</li><li>Better support for legacy Windows versions.</li></ul> 2016-02-11: Version 2.3.0 <ul><li>WARNING! Breaking change: public method getBrowser() is renamed to getName().</li><li>WARNING! Breaking change: changed the compareVersions() return values to be more in line with other libraries.</li><li>You can now get the exact platform version (name or version numbers) on which the browser is run on with |
| 273 | getPlatformVersion(). Only working with Windows operating systems at the moment.</li><li>You can now determine if the browser is executed from a 64-bit platform with is64bitPlatform().</li><li>Better detection of mobile platform for Googlebot.</li></ul> 2016-01-04: Version 2.2.0 <ul><li>Added support for Microsoft Edge.</li></ul> 2014-12-30: Version 2.1.2 <ul><li>Better detection of Opera.</li></ul> 2014-07-11: Version 2.1.1 <ul><li>Better detection of mobile devices and platforms.</li></ul> 2014-06-04: Version 2.1.0 <ul><li>Added support for IE 11+.</li></ul> 2013-05-27: Version 2.0.0 which is (almost) a complete rewrite based on Chris Schuld's Browser class version 1.9 plus changes below. <ul><li>Added support for Opera Mobile</li><li>Added support for the Windows Phone (formerly Windows Mobile) platform</li><li>Added support for BlackBerry Tablet OS and BlackBerry 10</li><li>Added support for the Symbian platform</li><li>Added support for Bingbot</li><li>Added support for the Yahoo! Multimedia crawler</li><li>Removed iPhone/iPad/iPod browsers since there are not browsers but platforms - test them with getPlatform()</li><li>Removed support for Shiretoko (Firefox 3.5 alpha/beta) and MSN Browser</li><li>Merged Nokia and Nokia S60</li><li>Updated some deprecated browser names</li><li>Many public methods are now protected</li><li>Documentation updated</li></ul> 2010-07-04: <ul><li>Added detection of IE compatibility view - test with getIECompatibilityView()</li><li>Added support for all (deprecated) Netscape versions</li><li>Added support for Safari < 3.0</li><li>Better Firefox version parsing</li><li>Better Opera version parsing</li><li>Better Mozilla detection</li></ul></p><br /><br /><br /> |
| 274 | <h4>Tags:</h4> |
| 275 | <div class="tags"> |
| 276 | <table border="0" cellspacing="0" cellpadding="0"> |
| 277 | <tr> |
| 278 | <td><b>author:</b> </td><td>Alexandre Valiquette, Chris Schuld, Gary White</td> |
| 279 | </tr> |
| 280 | <tr> |
| 281 | <td><b>version:</b> </td><td>2.9.7</td> |
| 282 | </tr> |
| 283 | <tr> |
| 284 | <td><b>copyright:</b> </td><td>Copyright (c) 2022, Wolfcast</td> |
| 285 | </tr> |
| 286 | <tr> |
| 287 | <td><b>link:</b> </td><td><a href="https://wolfcast.com/open-source/browser-detection/tutorial.php">https://wolfcast.com/open-source/browser-detection/tutorial.php</a></td> |
| 288 | </tr> |
| 289 | <tr> |
| 290 | <td><b>link:</b> </td><td><a href="https://wolfcast.com/">https://wolfcast.com/</a></td> |
| 291 | </tr> |
| 292 | <tr> |
| 293 | <td><b>link:</b> </td><td><a href="https://www.apptools.com/phptools/browser/">https://www.apptools.com/phptools/browser/</a></td> |
| 294 | </tr> |
| 295 | <tr> |
| 296 | <td><b>link:</b> </td><td><a href="https://chrisschuld.com/">https://chrisschuld.com/</a></td> |
| 297 | </tr> |
| 298 | <tr> |
| 299 | <td><b>last-modified:</b> </td><td>September 20, 2022</td> |
| 300 | </tr> |
| 301 | <tr> |
| 302 | <td><b>license:</b> </td><td><a href="https://spdx.org/licenses/MIT.html">https://spdx.org/licenses/MIT.html</a></td> |
| 303 | </tr> |
| 304 | <tr> |
| 305 | <td><b>license:</b> </td><td><a href="https://spdx.org/licenses/GPL-3.0-only.html">https://spdx.org/licenses/GPL-3.0-only.html</a></td> |
| 306 | </tr> |
| 307 | </table> |
| 308 | </div> |
| 309 | </div><br /><br /> |
| 310 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 311 | |
| 312 | <hr /> |
| 313 | <a name="class_vars"></a> |
| 314 | <h3>Class Variables</h3> |
| 315 | <div class="tags"> |
| 316 | <a name="var$_agent"></a> |
| 317 | <p></p> |
| 318 | <h4>$_agent = <span class="value"> ''</span></h4> |
| 319 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a237">237</a>]</p> |
| 320 | <br /><br /> |
| 321 | <h4>Tags:</h4> |
| 322 | <div class="tags"> |
| 323 | <table border="0" cellspacing="0" cellpadding="0"> |
| 324 | <tr> |
| 325 | <td><b>access:</b> </td><td>private</td> |
| 326 | </tr> |
| 327 | </table> |
| 328 | </div> |
| 329 | |
| 330 | <br /> |
| 331 | <div class="tags"> |
| 332 | <table border="0" cellspacing="0" cellpadding="0"> |
| 333 | <tr> |
| 334 | <td><b>Type:</b> </td> |
| 335 | <td>string</td> |
| 336 | </tr> |
| 337 | </table> |
| 338 | </div><br /><br /> |
| 339 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 340 | <a name="var$_browserName"></a> |
| 341 | <p></p> |
| 342 | <h4>$_browserName = <span class="value"> ''</span></h4> |
| 343 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a243">243</a>]</p> |
| 344 | <br /><br /> |
| 345 | <h4>Tags:</h4> |
| 346 | <div class="tags"> |
| 347 | <table border="0" cellspacing="0" cellpadding="0"> |
| 348 | <tr> |
| 349 | <td><b>access:</b> </td><td>private</td> |
| 350 | </tr> |
| 351 | </table> |
| 352 | </div> |
| 353 | |
| 354 | <br /> |
| 355 | <div class="tags"> |
| 356 | <table border="0" cellspacing="0" cellpadding="0"> |
| 357 | <tr> |
| 358 | <td><b>Type:</b> </td> |
| 359 | <td>string</td> |
| 360 | </tr> |
| 361 | </table> |
| 362 | </div><br /><br /> |
| 363 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 364 | <a name="var$_compatibilityViewName"></a> |
| 365 | <p></p> |
| 366 | <h4>$_compatibilityViewName = <span class="value"> ''</span></h4> |
| 367 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a249">249</a>]</p> |
| 368 | <br /><br /> |
| 369 | <h4>Tags:</h4> |
| 370 | <div class="tags"> |
| 371 | <table border="0" cellspacing="0" cellpadding="0"> |
| 372 | <tr> |
| 373 | <td><b>access:</b> </td><td>private</td> |
| 374 | </tr> |
| 375 | </table> |
| 376 | </div> |
| 377 | |
| 378 | <br /> |
| 379 | <div class="tags"> |
| 380 | <table border="0" cellspacing="0" cellpadding="0"> |
| 381 | <tr> |
| 382 | <td><b>Type:</b> </td> |
| 383 | <td>string</td> |
| 384 | </tr> |
| 385 | </table> |
| 386 | </div><br /><br /> |
| 387 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 388 | <a name="var$_compatibilityViewVer"></a> |
| 389 | <p></p> |
| 390 | <h4>$_compatibilityViewVer = <span class="value"> ''</span></h4> |
| 391 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a255">255</a>]</p> |
| 392 | <br /><br /> |
| 393 | <h4>Tags:</h4> |
| 394 | <div class="tags"> |
| 395 | <table border="0" cellspacing="0" cellpadding="0"> |
| 396 | <tr> |
| 397 | <td><b>access:</b> </td><td>private</td> |
| 398 | </tr> |
| 399 | </table> |
| 400 | </div> |
| 401 | |
| 402 | <br /> |
| 403 | <div class="tags"> |
| 404 | <table border="0" cellspacing="0" cellpadding="0"> |
| 405 | <tr> |
| 406 | <td><b>Type:</b> </td> |
| 407 | <td>string</td> |
| 408 | </tr> |
| 409 | </table> |
| 410 | </div><br /><br /> |
| 411 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 412 | <a name="var$_customBrowserDetection"></a> |
| 413 | <p></p> |
| 414 | <h4>$_customBrowserDetection = <span class="value">array()</span></h4> |
| 415 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a261">261</a>]</p> |
| 416 | <br /><br /> |
| 417 | <h4>Tags:</h4> |
| 418 | <div class="tags"> |
| 419 | <table border="0" cellspacing="0" cellpadding="0"> |
| 420 | <tr> |
| 421 | <td><b>access:</b> </td><td>private</td> |
| 422 | </tr> |
| 423 | </table> |
| 424 | </div> |
| 425 | |
| 426 | <br /> |
| 427 | <div class="tags"> |
| 428 | <table border="0" cellspacing="0" cellpadding="0"> |
| 429 | <tr> |
| 430 | <td><b>Type:</b> </td> |
| 431 | <td>array</td> |
| 432 | </tr> |
| 433 | </table> |
| 434 | </div><br /><br /> |
| 435 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 436 | <a name="var$_customPlatformDetection"></a> |
| 437 | <p></p> |
| 438 | <h4>$_customPlatformDetection = <span class="value">array()</span></h4> |
| 439 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a267">267</a>]</p> |
| 440 | <br /><br /> |
| 441 | <h4>Tags:</h4> |
| 442 | <div class="tags"> |
| 443 | <table border="0" cellspacing="0" cellpadding="0"> |
| 444 | <tr> |
| 445 | <td><b>access:</b> </td><td>private</td> |
| 446 | </tr> |
| 447 | </table> |
| 448 | </div> |
| 449 | |
| 450 | <br /> |
| 451 | <div class="tags"> |
| 452 | <table border="0" cellspacing="0" cellpadding="0"> |
| 453 | <tr> |
| 454 | <td><b>Type:</b> </td> |
| 455 | <td>array</td> |
| 456 | </tr> |
| 457 | </table> |
| 458 | </div><br /><br /> |
| 459 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 460 | <a name="var$_customRobotDetection"></a> |
| 461 | <p></p> |
| 462 | <h4>$_customRobotDetection = <span class="value">array()</span></h4> |
| 463 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a273">273</a>]</p> |
| 464 | <br /><br /> |
| 465 | <h4>Tags:</h4> |
| 466 | <div class="tags"> |
| 467 | <table border="0" cellspacing="0" cellpadding="0"> |
| 468 | <tr> |
| 469 | <td><b>access:</b> </td><td>private</td> |
| 470 | </tr> |
| 471 | </table> |
| 472 | </div> |
| 473 | |
| 474 | <br /> |
| 475 | <div class="tags"> |
| 476 | <table border="0" cellspacing="0" cellpadding="0"> |
| 477 | <tr> |
| 478 | <td><b>Type:</b> </td> |
| 479 | <td>array</td> |
| 480 | </tr> |
| 481 | </table> |
| 482 | </div><br /><br /> |
| 483 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 484 | <a name="var$_is64bit"></a> |
| 485 | <p></p> |
| 486 | <h4>$_is64bit = <span class="value"> false</span></h4> |
| 487 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a279">279</a>]</p> |
| 488 | <br /><br /> |
| 489 | <h4>Tags:</h4> |
| 490 | <div class="tags"> |
| 491 | <table border="0" cellspacing="0" cellpadding="0"> |
| 492 | <tr> |
| 493 | <td><b>access:</b> </td><td>private</td> |
| 494 | </tr> |
| 495 | </table> |
| 496 | </div> |
| 497 | |
| 498 | <br /> |
| 499 | <div class="tags"> |
| 500 | <table border="0" cellspacing="0" cellpadding="0"> |
| 501 | <tr> |
| 502 | <td><b>Type:</b> </td> |
| 503 | <td>boolean</td> |
| 504 | </tr> |
| 505 | </table> |
| 506 | </div><br /><br /> |
| 507 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 508 | <a name="var$_isMobile"></a> |
| 509 | <p></p> |
| 510 | <h4>$_isMobile = <span class="value"> false</span></h4> |
| 511 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a285">285</a>]</p> |
| 512 | <br /><br /> |
| 513 | <h4>Tags:</h4> |
| 514 | <div class="tags"> |
| 515 | <table border="0" cellspacing="0" cellpadding="0"> |
| 516 | <tr> |
| 517 | <td><b>access:</b> </td><td>private</td> |
| 518 | </tr> |
| 519 | </table> |
| 520 | </div> |
| 521 | |
| 522 | <br /> |
| 523 | <div class="tags"> |
| 524 | <table border="0" cellspacing="0" cellpadding="0"> |
| 525 | <tr> |
| 526 | <td><b>Type:</b> </td> |
| 527 | <td>boolean</td> |
| 528 | </tr> |
| 529 | </table> |
| 530 | </div><br /><br /> |
| 531 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 532 | <a name="var$_isRobot"></a> |
| 533 | <p></p> |
| 534 | <h4>$_isRobot = <span class="value"> false</span></h4> |
| 535 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a291">291</a>]</p> |
| 536 | <br /><br /> |
| 537 | <h4>Tags:</h4> |
| 538 | <div class="tags"> |
| 539 | <table border="0" cellspacing="0" cellpadding="0"> |
| 540 | <tr> |
| 541 | <td><b>access:</b> </td><td>private</td> |
| 542 | </tr> |
| 543 | </table> |
| 544 | </div> |
| 545 | |
| 546 | <br /> |
| 547 | <div class="tags"> |
| 548 | <table border="0" cellspacing="0" cellpadding="0"> |
| 549 | <tr> |
| 550 | <td><b>Type:</b> </td> |
| 551 | <td>boolean</td> |
| 552 | </tr> |
| 553 | </table> |
| 554 | </div><br /><br /> |
| 555 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 556 | <a name="var$_platform"></a> |
| 557 | <p></p> |
| 558 | <h4>$_platform = <span class="value"> ''</span></h4> |
| 559 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a297">297</a>]</p> |
| 560 | <br /><br /> |
| 561 | <h4>Tags:</h4> |
| 562 | <div class="tags"> |
| 563 | <table border="0" cellspacing="0" cellpadding="0"> |
| 564 | <tr> |
| 565 | <td><b>access:</b> </td><td>private</td> |
| 566 | </tr> |
| 567 | </table> |
| 568 | </div> |
| 569 | |
| 570 | <br /> |
| 571 | <div class="tags"> |
| 572 | <table border="0" cellspacing="0" cellpadding="0"> |
| 573 | <tr> |
| 574 | <td><b>Type:</b> </td> |
| 575 | <td>string</td> |
| 576 | </tr> |
| 577 | </table> |
| 578 | </div><br /><br /> |
| 579 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 580 | <a name="var$_platformVersion"></a> |
| 581 | <p></p> |
| 582 | <h4>$_platformVersion = <span class="value"> ''</span></h4> |
| 583 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a303">303</a>]</p> |
| 584 | <br /><br /> |
| 585 | <h4>Tags:</h4> |
| 586 | <div class="tags"> |
| 587 | <table border="0" cellspacing="0" cellpadding="0"> |
| 588 | <tr> |
| 589 | <td><b>access:</b> </td><td>private</td> |
| 590 | </tr> |
| 591 | </table> |
| 592 | </div> |
| 593 | |
| 594 | <br /> |
| 595 | <div class="tags"> |
| 596 | <table border="0" cellspacing="0" cellpadding="0"> |
| 597 | <tr> |
| 598 | <td><b>Type:</b> </td> |
| 599 | <td>string</td> |
| 600 | </tr> |
| 601 | </table> |
| 602 | </div><br /><br /> |
| 603 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 604 | <a name="var$_robotName"></a> |
| 605 | <p></p> |
| 606 | <h4>$_robotName = <span class="value"> ''</span></h4> |
| 607 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a309">309</a>]</p> |
| 608 | <br /><br /> |
| 609 | <h4>Tags:</h4> |
| 610 | <div class="tags"> |
| 611 | <table border="0" cellspacing="0" cellpadding="0"> |
| 612 | <tr> |
| 613 | <td><b>access:</b> </td><td>private</td> |
| 614 | </tr> |
| 615 | </table> |
| 616 | </div> |
| 617 | |
| 618 | <br /> |
| 619 | <div class="tags"> |
| 620 | <table border="0" cellspacing="0" cellpadding="0"> |
| 621 | <tr> |
| 622 | <td><b>Type:</b> </td> |
| 623 | <td>string</td> |
| 624 | </tr> |
| 625 | </table> |
| 626 | </div><br /><br /> |
| 627 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 628 | <a name="var$_robotVersion"></a> |
| 629 | <p></p> |
| 630 | <h4>$_robotVersion = <span class="value"> ''</span></h4> |
| 631 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a315">315</a>]</p> |
| 632 | <br /><br /> |
| 633 | <h4>Tags:</h4> |
| 634 | <div class="tags"> |
| 635 | <table border="0" cellspacing="0" cellpadding="0"> |
| 636 | <tr> |
| 637 | <td><b>access:</b> </td><td>private</td> |
| 638 | </tr> |
| 639 | </table> |
| 640 | </div> |
| 641 | |
| 642 | <br /> |
| 643 | <div class="tags"> |
| 644 | <table border="0" cellspacing="0" cellpadding="0"> |
| 645 | <tr> |
| 646 | <td><b>Type:</b> </td> |
| 647 | <td>string</td> |
| 648 | </tr> |
| 649 | </table> |
| 650 | </div><br /><br /> |
| 651 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 652 | <a name="var$_version"></a> |
| 653 | <p></p> |
| 654 | <h4>$_version = <span class="value"> ''</span></h4> |
| 655 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a321">321</a>]</p> |
| 656 | <br /><br /> |
| 657 | <h4>Tags:</h4> |
| 658 | <div class="tags"> |
| 659 | <table border="0" cellspacing="0" cellpadding="0"> |
| 660 | <tr> |
| 661 | <td><b>access:</b> </td><td>private</td> |
| 662 | </tr> |
| 663 | </table> |
| 664 | </div> |
| 665 | |
| 666 | <br /> |
| 667 | <div class="tags"> |
| 668 | <table border="0" cellspacing="0" cellpadding="0"> |
| 669 | <tr> |
| 670 | <td><b>Type:</b> </td> |
| 671 | <td>string</td> |
| 672 | </tr> |
| 673 | </table> |
| 674 | </div><br /><br /> |
| 675 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 676 | </div><br /> |
| 677 | |
| 678 | <hr /> |
| 679 | <a name="class_methods"></a> |
| 680 | <h3>Class Methods</h3> |
| 681 | <div class="tags"> |
| 682 | |
| 683 | <hr /> |
| 684 | <a name="method__construct"></a> |
| 685 | <h3>constructor __construct <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a332">332</a>]</span></h3> |
| 686 | <div class="function"> |
| 687 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 688 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 689 | <code>BrowserDetection __construct( |
| 690 | [string |
| 691 | $useragent = ''])</code> |
| 692 | </td></tr></table> |
| 693 | </td></tr></table><br /> |
| 694 | |
| 695 | BrowserDetection class constructor.<br /><br /><br /><br /> |
| 696 | <h4>Tags:</h4> |
| 697 | <div class="tags"> |
| 698 | <table border="0" cellspacing="0" cellpadding="0"> |
| 699 | <tr> |
| 700 | <td><b>access:</b> </td><td>public</td> |
| 701 | </tr> |
| 702 | </table> |
| 703 | </div> |
| 704 | <br /><br /> |
| 705 | |
| 706 | |
| 707 | <h4>Parameters:</h4> |
| 708 | <div class="tags"> |
| 709 | <table border="0" cellspacing="0" cellpadding="0"> |
| 710 | <tr> |
| 711 | <td class="type">string </td> |
| 712 | <td><b>$useragent</b> </td> |
| 713 | <td>(optional) The user agent to work with. Leave empty for the current user agent (contained in $_SERVER['HTTP_USER_AGENT']).</td> |
| 714 | </tr> |
| 715 | </table> |
| 716 | </div><br /> |
| 717 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 718 | </div> |
| 719 | <hr /> |
| 720 | <a name="methodaddCustomBrowserDetection"></a> |
| 721 | <h3>method addCustomBrowserDetection <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a386">386</a>]</span></h3> |
| 722 | <div class="function"> |
| 723 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 724 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 725 | <code>boolean addCustomBrowserDetection( |
| 726 | string |
| 727 | $browserName, [mixed |
| 728 | $uaNameToLookFor = ''], [boolean |
| 729 | $isMobile = false], [string |
| 730 | $separator = '/'], [boolean |
| 731 | $uaNameFindWords = true])</code> |
| 732 | </td></tr></table> |
| 733 | </td></tr></table><br /> |
| 734 | |
| 735 | Dynamically add support for a new Web browser.<br /><br /><br /><br /> |
| 736 | <h4>Tags:</h4> |
| 737 | <div class="tags"> |
| 738 | <table border="0" cellspacing="0" cellpadding="0"> |
| 739 | <tr> |
| 740 | <td><b>return:</b> </td><td>Returns true if the custom rule has been added, false otherwise.</td> |
| 741 | </tr> |
| 742 | <tr> |
| 743 | <td><b>see:</b> </td><td><a href="../Browser_Detection/BrowserDetection.html#methodremoveCustomBrowserDetection">BrowserDetection::removeCustomBrowserDetection()</a></td> |
| 744 | </tr> |
| 745 | <tr> |
| 746 | <td><b>access:</b> </td><td>public</td> |
| 747 | </tr> |
| 748 | </table> |
| 749 | </div> |
| 750 | <br /><br /> |
| 751 | |
| 752 | |
| 753 | <h4>Parameters:</h4> |
| 754 | <div class="tags"> |
| 755 | <table border="0" cellspacing="0" cellpadding="0"> |
| 756 | <tr> |
| 757 | <td class="type">string </td> |
| 758 | <td><b>$browserName</b> </td> |
| 759 | <td>The Web browser name (used for display).</td> |
| 760 | </tr> |
| 761 | <tr> |
| 762 | <td class="type">mixed </td> |
| 763 | <td><b>$uaNameToLookFor</b> </td> |
| 764 | <td>(optional) The string (or array of strings) representing the browser name to find in the user agent. If omitted, $browserName will be used.</td> |
| 765 | </tr> |
| 766 | <tr> |
| 767 | <td class="type">boolean </td> |
| 768 | <td><b>$isMobile</b> </td> |
| 769 | <td>(optional) Determines if the browser is from a mobile device.</td> |
| 770 | </tr> |
| 771 | <tr> |
| 772 | <td class="type">string </td> |
| 773 | <td><b>$separator</b> </td> |
| 774 | <td>(optional) The separator string used to split the browser name and the version number in the user agent.</td> |
| 775 | </tr> |
| 776 | <tr> |
| 777 | <td class="type">boolean </td> |
| 778 | <td><b>$uaNameFindWords</b> </td> |
| 779 | <td>(optional) Determines if the browser name to find should match a word instead of a part of a word. For example "Bar" would not be found in "FooBar" when true but would be found in "Foo Bar". When set to false, the browser name can be found anywhere in the user agent string.</td> |
| 780 | </tr> |
| 781 | </table> |
| 782 | </div><br /> |
| 783 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 784 | </div> |
| 785 | <hr /> |
| 786 | <a name="methodaddCustomPlatformDetection"></a> |
| 787 | <h3>method addCustomPlatformDetection <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a413">413</a>]</span></h3> |
| 788 | <div class="function"> |
| 789 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 790 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 791 | <code>boolean addCustomPlatformDetection( |
| 792 | string |
| 793 | $platformName, [mixed |
| 794 | $platformNameToLookFor = ''], [boolean |
| 795 | $isMobile = false], [boolean |
| 796 | $uaNameFindWords = true])</code> |
| 797 | </td></tr></table> |
| 798 | </td></tr></table><br /> |
| 799 | |
| 800 | Dynamically add support for a new platform.<br /><br /><br /><br /> |
| 801 | <h4>Tags:</h4> |
| 802 | <div class="tags"> |
| 803 | <table border="0" cellspacing="0" cellpadding="0"> |
| 804 | <tr> |
| 805 | <td><b>return:</b> </td><td>Returns true if the custom rule has been added, false otherwise.</td> |
| 806 | </tr> |
| 807 | <tr> |
| 808 | <td><b>see:</b> </td><td><a href="../Browser_Detection/BrowserDetection.html#methodremoveCustomPlatformDetection">BrowserDetection::removeCustomPlatformDetection()</a></td> |
| 809 | </tr> |
| 810 | <tr> |
| 811 | <td><b>access:</b> </td><td>public</td> |
| 812 | </tr> |
| 813 | </table> |
| 814 | </div> |
| 815 | <br /><br /> |
| 816 | |
| 817 | |
| 818 | <h4>Parameters:</h4> |
| 819 | <div class="tags"> |
| 820 | <table border="0" cellspacing="0" cellpadding="0"> |
| 821 | <tr> |
| 822 | <td class="type">string </td> |
| 823 | <td><b>$platformName</b> </td> |
| 824 | <td>The platform name (used for display).</td> |
| 825 | </tr> |
| 826 | <tr> |
| 827 | <td class="type">mixed </td> |
| 828 | <td><b>$platformNameToLookFor</b> </td> |
| 829 | <td>(optional) The string (or array of strings) representing the platform name to find in the user agent. If omitted, $platformName will be used.</td> |
| 830 | </tr> |
| 831 | <tr> |
| 832 | <td class="type">boolean </td> |
| 833 | <td><b>$isMobile</b> </td> |
| 834 | <td>(optional) Determines if the platform is from a mobile device.</td> |
| 835 | </tr> |
| 836 | <tr> |
| 837 | <td class="type">boolean </td> |
| 838 | <td><b>$uaNameFindWords</b> </td> |
| 839 | <td>(optional) Determines if the platform name to find should match a word instead of a part of a word. For example "Bar" would not be found in "FooBar" when true but would be found in "Foo Bar".</td> |
| 840 | </tr> |
| 841 | </table> |
| 842 | </div><br /> |
| 843 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 844 | </div> |
| 845 | <hr /> |
| 846 | <a name="methodaddCustomRobotDetection"></a> |
| 847 | <h3>method addCustomRobotDetection <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a444">444</a>]</span></h3> |
| 848 | <div class="function"> |
| 849 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 850 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 851 | <code>boolean addCustomRobotDetection( |
| 852 | string |
| 853 | $robotName, [mixed |
| 854 | $uaNameToLookFor = ''], [boolean |
| 855 | $isMobile = false], [string |
| 856 | $separator = '/'], [boolean |
| 857 | $uaNameFindWords = true])</code> |
| 858 | </td></tr></table> |
| 859 | </td></tr></table><br /> |
| 860 | |
| 861 | Dynamically add support for a new robot.<br /><br /><br /><br /> |
| 862 | <h4>Tags:</h4> |
| 863 | <div class="tags"> |
| 864 | <table border="0" cellspacing="0" cellpadding="0"> |
| 865 | <tr> |
| 866 | <td><b>return:</b> </td><td>Returns true if the custom rule has been added, false otherwise.</td> |
| 867 | </tr> |
| 868 | <tr> |
| 869 | <td><b>see:</b> </td><td><a href="../Browser_Detection/BrowserDetection.html#methodremoveCustomRobotDetection">BrowserDetection::removeCustomRobotDetection()</a></td> |
| 870 | </tr> |
| 871 | <tr> |
| 872 | <td><b>access:</b> </td><td>public</td> |
| 873 | </tr> |
| 874 | </table> |
| 875 | </div> |
| 876 | <br /><br /> |
| 877 | |
| 878 | |
| 879 | <h4>Parameters:</h4> |
| 880 | <div class="tags"> |
| 881 | <table border="0" cellspacing="0" cellpadding="0"> |
| 882 | <tr> |
| 883 | <td class="type">string </td> |
| 884 | <td><b>$robotName</b> </td> |
| 885 | <td>The robot name (used for display).</td> |
| 886 | </tr> |
| 887 | <tr> |
| 888 | <td class="type">mixed </td> |
| 889 | <td><b>$uaNameToLookFor</b> </td> |
| 890 | <td>(optional) The string (or array of strings) representing the robot name to find in the user agent. If omitted, $robotName will be used.</td> |
| 891 | </tr> |
| 892 | <tr> |
| 893 | <td class="type">boolean </td> |
| 894 | <td><b>$isMobile</b> </td> |
| 895 | <td>(optional) Determines if the robot should be considered as mobile or not.</td> |
| 896 | </tr> |
| 897 | <tr> |
| 898 | <td class="type">string </td> |
| 899 | <td><b>$separator</b> </td> |
| 900 | <td>(optional) The separator string used to split the robot name and the version number in the user agent.</td> |
| 901 | </tr> |
| 902 | <tr> |
| 903 | <td class="type">boolean </td> |
| 904 | <td><b>$uaNameFindWords</b> </td> |
| 905 | <td>(optional) Determines if the robot name to find should match a word instead of a part of a word. For example "Bar" would not be found in "FooBar" when true but would be found in "Foo Bar". When set to false, the robot name can be found anywhere in the user agent string.</td> |
| 906 | </tr> |
| 907 | </table> |
| 908 | </div><br /> |
| 909 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 910 | </div> |
| 911 | <hr /> |
| 912 | <a name="methodandroidVerToStr"></a> |
| 913 | <h3>method androidVerToStr <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a771">771</a>]</span></h3> |
| 914 | <div class="function"> |
| 915 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 916 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 917 | <code>string androidVerToStr( |
| 918 | string |
| 919 | $androidVer)</code> |
| 920 | </td></tr></table> |
| 921 | </td></tr></table><br /> |
| 922 | |
| 923 | Convert the Android version numbers to the operating system name. For instance '1.6' returns 'Donut'.<br /><br /><br /><br /> |
| 924 | <h4>Tags:</h4> |
| 925 | <div class="tags"> |
| 926 | <table border="0" cellspacing="0" cellpadding="0"> |
| 927 | <tr> |
| 928 | <td><b>return:</b> </td><td>The operating system name or the constant PLATFORM_VERSION_UNKNOWN if nothing match the version numbers.</td> |
| 929 | </tr> |
| 930 | <tr> |
| 931 | <td><b>access:</b> </td><td>protected</td> |
| 932 | </tr> |
| 933 | </table> |
| 934 | </div> |
| 935 | <br /><br /> |
| 936 | |
| 937 | |
| 938 | <h4>Parameters:</h4> |
| 939 | <div class="tags"> |
| 940 | <table border="0" cellspacing="0" cellpadding="0"> |
| 941 | <tr> |
| 942 | <td class="type">string </td> |
| 943 | <td><b>$androidVer</b> </td> |
| 944 | <td>The Android version numbers as a string.</td> |
| 945 | </tr> |
| 946 | </table> |
| 947 | </div><br /> |
| 948 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 949 | </div> |
| 950 | <hr /> |
| 951 | <a name="methodcheckBrowser"></a> |
| 952 | <h3>method checkBrowser <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1236">1236</a>]</span></h3> |
| 953 | <div class="function"> |
| 954 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 955 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 956 | <code>boolean checkBrowser( |
| 957 | )</code> |
| 958 | </td></tr></table> |
| 959 | </td></tr></table><br /> |
| 960 | |
| 961 | Determine what is the browser used by the user.<br /><br /><br /><br /> |
| 962 | <h4>Tags:</h4> |
| 963 | <div class="tags"> |
| 964 | <table border="0" cellspacing="0" cellpadding="0"> |
| 965 | <tr> |
| 966 | <td><b>return:</b> </td><td>Returns true if the browser has been identified, false otherwise.</td> |
| 967 | </tr> |
| 968 | <tr> |
| 969 | <td><b>access:</b> </td><td>protected</td> |
| 970 | </tr> |
| 971 | </table> |
| 972 | </div> |
| 973 | <br /><br /> |
| 974 | |
| 975 | |
| 976 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 977 | </div> |
| 978 | <hr /> |
| 979 | <a name="methodcheckBrowserAndroid"></a> |
| 980 | <h3>method checkBrowserAndroid <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a820">820</a>]</span></h3> |
| 981 | <div class="function"> |
| 982 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 983 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 984 | <code>boolean checkBrowserAndroid( |
| 985 | )</code> |
| 986 | </td></tr></table> |
| 987 | </td></tr></table><br /> |
| 988 | |
| 989 | Determine if the browser is the Android browser (based on the WebKit layout engine and coupled with Chrome's JavaScript engine) or not.<br /><br /><br /><br /> |
| 990 | <h4>Tags:</h4> |
| 991 | <div class="tags"> |
| 992 | <table border="0" cellspacing="0" cellpadding="0"> |
| 993 | <tr> |
| 994 | <td><b>return:</b> </td><td>Returns true if the browser is the Android browser, false otherwise.</td> |
| 995 | </tr> |
| 996 | <tr> |
| 997 | <td><b>access:</b> </td><td>protected</td> |
| 998 | </tr> |
| 999 | </table> |
| 1000 | </div> |
| 1001 | <br /><br /> |
| 1002 | |
| 1003 | |
| 1004 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1005 | </div> |
| 1006 | <hr /> |
| 1007 | <a name="methodcheckBrowserBlackBerry"></a> |
| 1008 | <h3>method checkBrowserBlackBerry <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a832">832</a>]</span></h3> |
| 1009 | <div class="function"> |
| 1010 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1011 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1012 | <code>boolean checkBrowserBlackBerry( |
| 1013 | )</code> |
| 1014 | </td></tr></table> |
| 1015 | </td></tr></table><br /> |
| 1016 | |
| 1017 | Determine if the browser is the BlackBerry browser or not.<br /><br /><br /><br /> |
| 1018 | <h4>Tags:</h4> |
| 1019 | <div class="tags"> |
| 1020 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1021 | <tr> |
| 1022 | <td><b>return:</b> </td><td>Returns true if the browser is the BlackBerry browser, false otherwise.</td> |
| 1023 | </tr> |
| 1024 | <tr> |
| 1025 | <td><b>link:</b> </td><td><a href="https://web.archive.org/web/20170328000854/http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/How-to-detect-the-BlackBerry-Browser/ta-p/559862">https://web.archive.org/web/20170328000854/http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/How-to-detect-the-BlackBerry-Browser/ta-p/559862</a></td> |
| 1026 | </tr> |
| 1027 | <tr> |
| 1028 | <td><b>access:</b> </td><td>protected</td> |
| 1029 | </tr> |
| 1030 | </table> |
| 1031 | </div> |
| 1032 | <br /><br /> |
| 1033 | |
| 1034 | |
| 1035 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1036 | </div> |
| 1037 | <hr /> |
| 1038 | <a name="methodcheckBrowserChrome"></a> |
| 1039 | <h3>method checkBrowserChrome <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a868">868</a>]</span></h3> |
| 1040 | <div class="function"> |
| 1041 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1042 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1043 | <code>boolean checkBrowserChrome( |
| 1044 | )</code> |
| 1045 | </td></tr></table> |
| 1046 | </td></tr></table><br /> |
| 1047 | |
| 1048 | Determine if the browser is Chrome or not.<br /><br /><br /><br /> |
| 1049 | <h4>Tags:</h4> |
| 1050 | <div class="tags"> |
| 1051 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1052 | <tr> |
| 1053 | <td><b>return:</b> </td><td>Returns true if the browser is Chrome, false otherwise.</td> |
| 1054 | </tr> |
| 1055 | <tr> |
| 1056 | <td><b>link:</b> </td><td><a href="https://www.google.com/chrome/">https://www.google.com/chrome/</a></td> |
| 1057 | </tr> |
| 1058 | <tr> |
| 1059 | <td><b>access:</b> </td><td>protected</td> |
| 1060 | </tr> |
| 1061 | </table> |
| 1062 | </div> |
| 1063 | <br /><br /> |
| 1064 | |
| 1065 | |
| 1066 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1067 | </div> |
| 1068 | <hr /> |
| 1069 | <a name="methodcheckBrowserCustom"></a> |
| 1070 | <h3>method checkBrowserCustom <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a879">879</a>]</span></h3> |
| 1071 | <div class="function"> |
| 1072 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1073 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1074 | <code>boolean checkBrowserCustom( |
| 1075 | )</code> |
| 1076 | </td></tr></table> |
| 1077 | </td></tr></table><br /> |
| 1078 | |
| 1079 | Determine if the browser is among the custom browser rules or not. Rules are checked in the order they were added.<br /><br /><br /><br /> |
| 1080 | <h4>Tags:</h4> |
| 1081 | <div class="tags"> |
| 1082 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1083 | <tr> |
| 1084 | <td><b>return:</b> </td><td>Returns true if we found the browser we were looking for in the custom rules, false otherwise.</td> |
| 1085 | </tr> |
| 1086 | <tr> |
| 1087 | <td><b>access:</b> </td><td>protected</td> |
| 1088 | </tr> |
| 1089 | </table> |
| 1090 | </div> |
| 1091 | <br /><br /> |
| 1092 | |
| 1093 | |
| 1094 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1095 | </div> |
| 1096 | <hr /> |
| 1097 | <a name="methodcheckBrowserEdge"></a> |
| 1098 | <h3>method checkBrowserEdge <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a898">898</a>]</span></h3> |
| 1099 | <div class="function"> |
| 1100 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1101 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1102 | <code>boolean checkBrowserEdge( |
| 1103 | )</code> |
| 1104 | </td></tr></table> |
| 1105 | </td></tr></table><br /> |
| 1106 | |
| 1107 | Determine if the browser is Edge or not.<br /><br /><br /><br /> |
| 1108 | <h4>Tags:</h4> |
| 1109 | <div class="tags"> |
| 1110 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1111 | <tr> |
| 1112 | <td><b>return:</b> </td><td>Returns true if the browser is Edge, false otherwise.</td> |
| 1113 | </tr> |
| 1114 | <tr> |
| 1115 | <td><b>access:</b> </td><td>protected</td> |
| 1116 | </tr> |
| 1117 | </table> |
| 1118 | </div> |
| 1119 | <br /><br /> |
| 1120 | |
| 1121 | |
| 1122 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1123 | </div> |
| 1124 | <hr /> |
| 1125 | <a name="methodcheckBrowserFirebird"></a> |
| 1126 | <h3>method checkBrowserFirebird <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a908">908</a>]</span></h3> |
| 1127 | <div class="function"> |
| 1128 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1129 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1130 | <code>boolean checkBrowserFirebird( |
| 1131 | )</code> |
| 1132 | </td></tr></table> |
| 1133 | </td></tr></table><br /> |
| 1134 | |
| 1135 | Determine if the browser is Firebird or not. Firebird was the name of Firefox from version 0.6 to 0.7.1.<br /><br /><br /><br /> |
| 1136 | <h4>Tags:</h4> |
| 1137 | <div class="tags"> |
| 1138 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1139 | <tr> |
| 1140 | <td><b>return:</b> </td><td>Returns true if the browser is Firebird, false otherwise.</td> |
| 1141 | </tr> |
| 1142 | <tr> |
| 1143 | <td><b>access:</b> </td><td>protected</td> |
| 1144 | </tr> |
| 1145 | </table> |
| 1146 | </div> |
| 1147 | <br /><br /> |
| 1148 | |
| 1149 | |
| 1150 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1151 | </div> |
| 1152 | <hr /> |
| 1153 | <a name="methodcheckBrowserFirefox"></a> |
| 1154 | <h3>method checkBrowserFirefox <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a919">919</a>]</span></h3> |
| 1155 | <div class="function"> |
| 1156 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1157 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1158 | <code>boolean checkBrowserFirefox( |
| 1159 | )</code> |
| 1160 | </td></tr></table> |
| 1161 | </td></tr></table><br /> |
| 1162 | |
| 1163 | Determine if the browser is Firefox or not.<br /><br /><br /><br /> |
| 1164 | <h4>Tags:</h4> |
| 1165 | <div class="tags"> |
| 1166 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1167 | <tr> |
| 1168 | <td><b>return:</b> </td><td>Returns true if the browser is Firefox, false otherwise.</td> |
| 1169 | </tr> |
| 1170 | <tr> |
| 1171 | <td><b>link:</b> </td><td><a href="https://www.mozilla.org/en-US/firefox/new/">https://www.mozilla.org/en-US/firefox/new/</a></td> |
| 1172 | </tr> |
| 1173 | <tr> |
| 1174 | <td><b>access:</b> </td><td>protected</td> |
| 1175 | </tr> |
| 1176 | </table> |
| 1177 | </div> |
| 1178 | <br /><br /> |
| 1179 | |
| 1180 | |
| 1181 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1182 | </div> |
| 1183 | <hr /> |
| 1184 | <a name="methodcheckBrowserIcab"></a> |
| 1185 | <h3>method checkBrowserIcab <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a941">941</a>]</span></h3> |
| 1186 | <div class="function"> |
| 1187 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1188 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1189 | <code>boolean checkBrowserIcab( |
| 1190 | )</code> |
| 1191 | </td></tr></table> |
| 1192 | </td></tr></table><br /> |
| 1193 | |
| 1194 | Determine if the browser is iCab or not.<br /><br /><br /><br /> |
| 1195 | <h4>Tags:</h4> |
| 1196 | <div class="tags"> |
| 1197 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1198 | <tr> |
| 1199 | <td><b>return:</b> </td><td>Returns true if the browser is iCab, false otherwise.</td> |
| 1200 | </tr> |
| 1201 | <tr> |
| 1202 | <td><b>link:</b> </td><td><a href="http://www.icab.de/">http://www.icab.de/</a></td> |
| 1203 | </tr> |
| 1204 | <tr> |
| 1205 | <td><b>access:</b> </td><td>protected</td> |
| 1206 | </tr> |
| 1207 | </table> |
| 1208 | </div> |
| 1209 | <br /><br /> |
| 1210 | |
| 1211 | |
| 1212 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1213 | </div> |
| 1214 | <hr /> |
| 1215 | <a name="methodcheckBrowserIceCat"></a> |
| 1216 | <h3>method checkBrowserIceCat <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a953">953</a>]</span></h3> |
| 1217 | <div class="function"> |
| 1218 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1219 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1220 | <code>boolean checkBrowserIceCat( |
| 1221 | )</code> |
| 1222 | </td></tr></table> |
| 1223 | </td></tr></table><br /> |
| 1224 | |
| 1225 | Determine if the browser is GNU IceCat (formerly known as GNU IceWeasel) or not.<br /><br /><br /><br /> |
| 1226 | <h4>Tags:</h4> |
| 1227 | <div class="tags"> |
| 1228 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1229 | <tr> |
| 1230 | <td><b>return:</b> </td><td>Returns true if the browser is GNU IceCat, false otherwise.</td> |
| 1231 | </tr> |
| 1232 | <tr> |
| 1233 | <td><b>link:</b> </td><td><a href="https://www.gnu.org/software/gnuzilla/">https://www.gnu.org/software/gnuzilla/</a></td> |
| 1234 | </tr> |
| 1235 | <tr> |
| 1236 | <td><b>access:</b> </td><td>protected</td> |
| 1237 | </tr> |
| 1238 | </table> |
| 1239 | </div> |
| 1240 | <br /><br /> |
| 1241 | |
| 1242 | |
| 1243 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1244 | </div> |
| 1245 | <hr /> |
| 1246 | <a name="methodcheckBrowserIceWeasel"></a> |
| 1247 | <h3>method checkBrowserIceWeasel <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a964">964</a>]</span></h3> |
| 1248 | <div class="function"> |
| 1249 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1250 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1251 | <code>boolean checkBrowserIceWeasel( |
| 1252 | )</code> |
| 1253 | </td></tr></table> |
| 1254 | </td></tr></table><br /> |
| 1255 | |
| 1256 | Determine if the browser is GNU IceWeasel (now know as GNU IceCat) or not.<br /><br /><br /><br /> |
| 1257 | <h4>Tags:</h4> |
| 1258 | <div class="tags"> |
| 1259 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1260 | <tr> |
| 1261 | <td><b>return:</b> </td><td>Returns true if the browser is GNU IceWeasel, false otherwise.</td> |
| 1262 | </tr> |
| 1263 | <tr> |
| 1264 | <td><b>see:</b> </td><td><a href="../Browser_Detection/BrowserDetection.html#methodcheckBrowserIceCat">BrowserDetection::checkBrowserIceCat()</a></td> |
| 1265 | </tr> |
| 1266 | <tr> |
| 1267 | <td><b>access:</b> </td><td>protected</td> |
| 1268 | </tr> |
| 1269 | </table> |
| 1270 | </div> |
| 1271 | <br /><br /> |
| 1272 | |
| 1273 | |
| 1274 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1275 | </div> |
| 1276 | <hr /> |
| 1277 | <a name="methodcheckBrowserInternetExplorer"></a> |
| 1278 | <h3>method checkBrowserInternetExplorer <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a976">976</a>]</span></h3> |
| 1279 | <div class="function"> |
| 1280 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1281 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1282 | <code>boolean checkBrowserInternetExplorer( |
| 1283 | )</code> |
| 1284 | </td></tr></table> |
| 1285 | </td></tr></table><br /> |
| 1286 | |
| 1287 | Determine if the browser is Internet Explorer or not.<br /><br /><br /><br /> |
| 1288 | <h4>Tags:</h4> |
| 1289 | <div class="tags"> |
| 1290 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1291 | <tr> |
| 1292 | <td><b>return:</b> </td><td>Returns true if the browser is Internet Explorer, false otherwise.</td> |
| 1293 | </tr> |
| 1294 | <tr> |
| 1295 | <td><b>link:</b> </td><td><a href="https://www.microsoft.com/ie/">https://www.microsoft.com/ie/</a></td> |
| 1296 | </tr> |
| 1297 | <tr> |
| 1298 | <td><b>link:</b> </td><td><a href="https://en.wikipedia.org/wiki/Internet_Explorer_Mobile">https://en.wikipedia.org/wiki/Internet_Explorer_Mobile</a></td> |
| 1299 | </tr> |
| 1300 | <tr> |
| 1301 | <td><b>access:</b> </td><td>protected</td> |
| 1302 | </tr> |
| 1303 | </table> |
| 1304 | </div> |
| 1305 | <br /><br /> |
| 1306 | |
| 1307 | |
| 1308 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1309 | </div> |
| 1310 | <hr /> |
| 1311 | <a name="methodcheckBrowserKonqueror"></a> |
| 1312 | <h3>method checkBrowserKonqueror <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1067">1067</a>]</span></h3> |
| 1313 | <div class="function"> |
| 1314 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1315 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1316 | <code>boolean checkBrowserKonqueror( |
| 1317 | )</code> |
| 1318 | </td></tr></table> |
| 1319 | </td></tr></table><br /> |
| 1320 | |
| 1321 | Determine if the browser is Konqueror or not.<br /><br /><br /><br /> |
| 1322 | <h4>Tags:</h4> |
| 1323 | <div class="tags"> |
| 1324 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1325 | <tr> |
| 1326 | <td><b>return:</b> </td><td>Returns true if the browser is Konqueror, false otherwise.</td> |
| 1327 | </tr> |
| 1328 | <tr> |
| 1329 | <td><b>link:</b> </td><td><a href="https://www.konqueror.org/">https://www.konqueror.org/</a></td> |
| 1330 | </tr> |
| 1331 | <tr> |
| 1332 | <td><b>access:</b> </td><td>protected</td> |
| 1333 | </tr> |
| 1334 | </table> |
| 1335 | </div> |
| 1336 | <br /><br /> |
| 1337 | |
| 1338 | |
| 1339 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1340 | </div> |
| 1341 | <hr /> |
| 1342 | <a name="methodcheckBrowserLynx"></a> |
| 1343 | <h3>method checkBrowserLynx <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1079">1079</a>]</span></h3> |
| 1344 | <div class="function"> |
| 1345 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1346 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1347 | <code>boolean checkBrowserLynx( |
| 1348 | )</code> |
| 1349 | </td></tr></table> |
| 1350 | </td></tr></table><br /> |
| 1351 | |
| 1352 | Determine if the browser is Lynx or not. It is the oldest web browser currently in general use and development.<br /><br /><p>It is a text-based only Web browser.</p><br /><br /><br /> |
| 1353 | <h4>Tags:</h4> |
| 1354 | <div class="tags"> |
| 1355 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1356 | <tr> |
| 1357 | <td><b>return:</b> </td><td>Returns true if the browser is Lynx, false otherwise.</td> |
| 1358 | </tr> |
| 1359 | <tr> |
| 1360 | <td><b>link:</b> </td><td><a href="https://en.wikipedia.org/wiki/Lynx_(web_browser)">https://en.wikipedia.org/wiki/Lynx_(web_browser)</a></td> |
| 1361 | </tr> |
| 1362 | <tr> |
| 1363 | <td><b>access:</b> </td><td>protected</td> |
| 1364 | </tr> |
| 1365 | </table> |
| 1366 | </div> |
| 1367 | <br /><br /> |
| 1368 | |
| 1369 | |
| 1370 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1371 | </div> |
| 1372 | <hr /> |
| 1373 | <a name="methodcheckBrowserMozilla"></a> |
| 1374 | <h3>method checkBrowserMozilla <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1089">1089</a>]</span></h3> |
| 1375 | <div class="function"> |
| 1376 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1377 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1378 | <code>boolean checkBrowserMozilla( |
| 1379 | )</code> |
| 1380 | </td></tr></table> |
| 1381 | </td></tr></table><br /> |
| 1382 | |
| 1383 | Determine if the browser is Mozilla or not.<br /><br /><br /><br /> |
| 1384 | <h4>Tags:</h4> |
| 1385 | <div class="tags"> |
| 1386 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1387 | <tr> |
| 1388 | <td><b>return:</b> </td><td>Returns true if the browser is Mozilla, false otherwise.</td> |
| 1389 | </tr> |
| 1390 | <tr> |
| 1391 | <td><b>access:</b> </td><td>protected</td> |
| 1392 | </tr> |
| 1393 | </table> |
| 1394 | </div> |
| 1395 | <br /><br /> |
| 1396 | |
| 1397 | |
| 1398 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1399 | </div> |
| 1400 | <hr /> |
| 1401 | <a name="methodcheckBrowserMsnTv"></a> |
| 1402 | <h3>method checkBrowserMsnTv <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1100">1100</a>]</span></h3> |
| 1403 | <div class="function"> |
| 1404 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1405 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1406 | <code>boolean checkBrowserMsnTv( |
| 1407 | )</code> |
| 1408 | </td></tr></table> |
| 1409 | </td></tr></table><br /> |
| 1410 | |
| 1411 | Determine if the browser is MSN TV (formerly WebTV) or not.<br /><br /><br /><br /> |
| 1412 | <h4>Tags:</h4> |
| 1413 | <div class="tags"> |
| 1414 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1415 | <tr> |
| 1416 | <td><b>return:</b> </td><td>Returns true if the browser is WebTv, false otherwise.</td> |
| 1417 | </tr> |
| 1418 | <tr> |
| 1419 | <td><b>link:</b> </td><td><a href="https://en.wikipedia.org/wiki/MSN_TV">https://en.wikipedia.org/wiki/MSN_TV</a></td> |
| 1420 | </tr> |
| 1421 | <tr> |
| 1422 | <td><b>access:</b> </td><td>protected</td> |
| 1423 | </tr> |
| 1424 | </table> |
| 1425 | </div> |
| 1426 | <br /><br /> |
| 1427 | |
| 1428 | |
| 1429 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1430 | </div> |
| 1431 | <hr /> |
| 1432 | <a name="methodcheckBrowserNetscape"></a> |
| 1433 | <h3>method checkBrowserNetscape <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1111">1111</a>]</span></h3> |
| 1434 | <div class="function"> |
| 1435 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1436 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1437 | <code>boolean checkBrowserNetscape( |
| 1438 | )</code> |
| 1439 | </td></tr></table> |
| 1440 | </td></tr></table><br /> |
| 1441 | |
| 1442 | Determine if the browser is Netscape or not. Official support for this browser ended on March 1st, 2008.<br /><br /><br /><br /> |
| 1443 | <h4>Tags:</h4> |
| 1444 | <div class="tags"> |
| 1445 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1446 | <tr> |
| 1447 | <td><b>return:</b> </td><td>Returns true if the browser is Netscape, false otherwise.</td> |
| 1448 | </tr> |
| 1449 | <tr> |
| 1450 | <td><b>link:</b> </td><td><a href="https://en.wikipedia.org/wiki/Netscape">https://en.wikipedia.org/wiki/Netscape</a></td> |
| 1451 | </tr> |
| 1452 | <tr> |
| 1453 | <td><b>access:</b> </td><td>protected</td> |
| 1454 | </tr> |
| 1455 | </table> |
| 1456 | </div> |
| 1457 | <br /><br /> |
| 1458 | |
| 1459 | |
| 1460 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1461 | </div> |
| 1462 | <hr /> |
| 1463 | <a name="methodcheckBrowserNokia"></a> |
| 1464 | <h3>method checkBrowserNokia <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1164">1164</a>]</span></h3> |
| 1465 | <div class="function"> |
| 1466 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1467 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1468 | <code>boolean checkBrowserNokia( |
| 1469 | )</code> |
| 1470 | </td></tr></table> |
| 1471 | </td></tr></table><br /> |
| 1472 | |
| 1473 | Determine if the browser is a Nokia browser or not.<br /><br /><br /><br /> |
| 1474 | <h4>Tags:</h4> |
| 1475 | <div class="tags"> |
| 1476 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1477 | <tr> |
| 1478 | <td><b>return:</b> </td><td>Returns true if the browser is a Nokia browser, false otherwise.</td> |
| 1479 | </tr> |
| 1480 | <tr> |
| 1481 | <td><b>link:</b> </td><td><a href="https://web.archive.org/web/20141012034159/http://www.developer.nokia.com/Community/Wiki/User-Agent_headers_for_Nokia_devices">https://web.archive.org/web/20141012034159/http://www.developer.nokia.com/Community/Wiki/User-Agent_headers_for_Nokia_devices</a></td> |
| 1482 | </tr> |
| 1483 | <tr> |
| 1484 | <td><b>access:</b> </td><td>protected</td> |
| 1485 | </tr> |
| 1486 | </table> |
| 1487 | </div> |
| 1488 | <br /><br /> |
| 1489 | |
| 1490 | |
| 1491 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1492 | </div> |
| 1493 | <hr /> |
| 1494 | <a name="methodcheckBrowserOpera"></a> |
| 1495 | <h3>method checkBrowserOpera <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1190">1190</a>]</span></h3> |
| 1496 | <div class="function"> |
| 1497 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1498 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1499 | <code>boolean checkBrowserOpera( |
| 1500 | )</code> |
| 1501 | </td></tr></table> |
| 1502 | </td></tr></table><br /> |
| 1503 | |
| 1504 | Determine if the browser is Opera or not.<br /><br /><br /><br /> |
| 1505 | <h4>Tags:</h4> |
| 1506 | <div class="tags"> |
| 1507 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1508 | <tr> |
| 1509 | <td><b>return:</b> </td><td>Returns true if the browser is Opera, false otherwise.</td> |
| 1510 | </tr> |
| 1511 | <tr> |
| 1512 | <td><b>link:</b> </td><td><a href="https://web.archive.org/web/20140220123653/http://my.opera.com/community/openweb/idopera/">https://web.archive.org/web/20140220123653/http://my.opera.com/community/openweb/idopera/</a></td> |
| 1513 | </tr> |
| 1514 | <tr> |
| 1515 | <td><b>link:</b> </td><td><a href="https://www.opera.com/mobile/">https://www.opera.com/mobile/</a></td> |
| 1516 | </tr> |
| 1517 | <tr> |
| 1518 | <td><b>link:</b> </td><td><a href="https://www.opera.com/">https://www.opera.com/</a></td> |
| 1519 | </tr> |
| 1520 | <tr> |
| 1521 | <td><b>access:</b> </td><td>protected</td> |
| 1522 | </tr> |
| 1523 | </table> |
| 1524 | </div> |
| 1525 | <br /><br /> |
| 1526 | |
| 1527 | |
| 1528 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1529 | </div> |
| 1530 | <hr /> |
| 1531 | <a name="methodcheckBrowserPhoenix"></a> |
| 1532 | <h3>method checkBrowserPhoenix <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1226">1226</a>]</span></h3> |
| 1533 | <div class="function"> |
| 1534 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1535 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1536 | <code>boolean checkBrowserPhoenix( |
| 1537 | )</code> |
| 1538 | </td></tr></table> |
| 1539 | </td></tr></table><br /> |
| 1540 | |
| 1541 | Determine if the browser is Phoenix or not. Phoenix was the name of Firefox from version 0.1 to 0.5.<br /><br /><br /><br /> |
| 1542 | <h4>Tags:</h4> |
| 1543 | <div class="tags"> |
| 1544 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1545 | <tr> |
| 1546 | <td><b>return:</b> </td><td>Returns true if the browser is Phoenix, false otherwise.</td> |
| 1547 | </tr> |
| 1548 | <tr> |
| 1549 | <td><b>access:</b> </td><td>protected</td> |
| 1550 | </tr> |
| 1551 | </table> |
| 1552 | </div> |
| 1553 | <br /><br /> |
| 1554 | |
| 1555 | |
| 1556 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1557 | </div> |
| 1558 | <hr /> |
| 1559 | <a name="methodcheckBrowserSafari"></a> |
| 1560 | <h3>method checkBrowserSafari <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1278">1278</a>]</span></h3> |
| 1561 | <div class="function"> |
| 1562 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1563 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1564 | <code>boolean checkBrowserSafari( |
| 1565 | )</code> |
| 1566 | </td></tr></table> |
| 1567 | </td></tr></table><br /> |
| 1568 | |
| 1569 | Determine if the browser is Safari or not.<br /><br /><br /><br /> |
| 1570 | <h4>Tags:</h4> |
| 1571 | <div class="tags"> |
| 1572 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1573 | <tr> |
| 1574 | <td><b>return:</b> </td><td>Returns true if the browser is Safari, false otherwise.</td> |
| 1575 | </tr> |
| 1576 | <tr> |
| 1577 | <td><b>link:</b> </td><td><a href="https://en.wikipedia.org/wiki/Safari_version_history#Release_history">https://en.wikipedia.org/wiki/Safari_version_history#Release_history</a></td> |
| 1578 | </tr> |
| 1579 | <tr> |
| 1580 | <td><b>link:</b> </td><td><a href="https://web.archive.org/web/20080514173941/http://developer.apple.com/internet/safari/uamatrix.html">https://web.archive.org/web/20080514173941/http://developer.apple.com/internet/safari/uamatrix.html</a></td> |
| 1581 | </tr> |
| 1582 | <tr> |
| 1583 | <td><b>link:</b> </td><td><a href="https://www.apple.com/safari/">https://www.apple.com/safari/</a></td> |
| 1584 | </tr> |
| 1585 | <tr> |
| 1586 | <td><b>access:</b> </td><td>protected</td> |
| 1587 | </tr> |
| 1588 | </table> |
| 1589 | </div> |
| 1590 | <br /><br /> |
| 1591 | |
| 1592 | |
| 1593 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1594 | </div> |
| 1595 | <hr /> |
| 1596 | <a name="methodcheckBrowserSamsung"></a> |
| 1597 | <h3>method checkBrowserSamsung <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1317">1317</a>]</span></h3> |
| 1598 | <div class="function"> |
| 1599 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1600 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1601 | <code>boolean checkBrowserSamsung( |
| 1602 | )</code> |
| 1603 | </td></tr></table> |
| 1604 | </td></tr></table><br /> |
| 1605 | |
| 1606 | Determine if the browser is the Samsung Internet browser or not.<br /><br /><br /><br /> |
| 1607 | <h4>Tags:</h4> |
| 1608 | <div class="tags"> |
| 1609 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1610 | <tr> |
| 1611 | <td><b>return:</b> </td><td>Returns true if the browser is the the Samsung Internet browser, false otherwise.</td> |
| 1612 | </tr> |
| 1613 | <tr> |
| 1614 | <td><b>access:</b> </td><td>protected</td> |
| 1615 | </tr> |
| 1616 | </table> |
| 1617 | </div> |
| 1618 | <br /><br /> |
| 1619 | |
| 1620 | |
| 1621 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1622 | </div> |
| 1623 | <hr /> |
| 1624 | <a name="methodcheckBrowserUAWithVersion"></a> |
| 1625 | <h3>method checkBrowserUAWithVersion <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1336">1336</a>]</span></h3> |
| 1626 | <div class="function"> |
| 1627 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1628 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1629 | <code>boolean checkBrowserUAWithVersion( |
| 1630 | mixed |
| 1631 | $uaNameToLookFor, string |
| 1632 | $userAgent, string |
| 1633 | $browserName, [boolean |
| 1634 | $isMobile = false], [boolean |
| 1635 | $findWords = true])</code> |
| 1636 | </td></tr></table> |
| 1637 | </td></tr></table><br /> |
| 1638 | |
| 1639 | Test the user agent for a specific browser that use a "Version" string (like Safari and Opera). The user agent should look like: "Version/1.0 Browser name/123.456" or "Browser name/123.456 Version/1.0".<br /><br /><br /><br /> |
| 1640 | <h4>Tags:</h4> |
| 1641 | <div class="tags"> |
| 1642 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1643 | <tr> |
| 1644 | <td><b>return:</b> </td><td>Returns true if we found the browser we were looking for, false otherwise.</td> |
| 1645 | </tr> |
| 1646 | <tr> |
| 1647 | <td><b>access:</b> </td><td>protected</td> |
| 1648 | </tr> |
| 1649 | </table> |
| 1650 | </div> |
| 1651 | <br /><br /> |
| 1652 | |
| 1653 | |
| 1654 | <h4>Parameters:</h4> |
| 1655 | <div class="tags"> |
| 1656 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1657 | <tr> |
| 1658 | <td class="type">mixed </td> |
| 1659 | <td><b>$uaNameToLookFor</b> </td> |
| 1660 | <td>The string (or array of strings) representing the browser name to find in the user agent.</td> |
| 1661 | </tr> |
| 1662 | <tr> |
| 1663 | <td class="type">string </td> |
| 1664 | <td><b>$userAgent</b> </td> |
| 1665 | <td>The user agent string to work with.</td> |
| 1666 | </tr> |
| 1667 | <tr> |
| 1668 | <td class="type">string </td> |
| 1669 | <td><b>$browserName</b> </td> |
| 1670 | <td>The literal browser name. Always use a class constant!</td> |
| 1671 | </tr> |
| 1672 | <tr> |
| 1673 | <td class="type">boolean </td> |
| 1674 | <td><b>$isMobile</b> </td> |
| 1675 | <td>(optional) Determines if the browser is from a mobile device.</td> |
| 1676 | </tr> |
| 1677 | <tr> |
| 1678 | <td class="type">boolean </td> |
| 1679 | <td><b>$findWords</b> </td> |
| 1680 | <td>(optional) Determines if the needle should match a word to be found. For example "Bar" would not be found in "FooBar" when true but would be found in "Foo Bar". When set to false, the needle can be found anywhere in the haystack.</td> |
| 1681 | </tr> |
| 1682 | </table> |
| 1683 | </div><br /> |
| 1684 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1685 | </div> |
| 1686 | <hr /> |
| 1687 | <a name="methodcheckBrowserUC"></a> |
| 1688 | <h3>method checkBrowserUC <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1368">1368</a>]</span></h3> |
| 1689 | <div class="function"> |
| 1690 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1691 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1692 | <code>boolean checkBrowserUC( |
| 1693 | )</code> |
| 1694 | </td></tr></table> |
| 1695 | </td></tr></table><br /> |
| 1696 | |
| 1697 | Determine if the browser is UC Browser or not.<br /><br /><br /><br /> |
| 1698 | <h4>Tags:</h4> |
| 1699 | <div class="tags"> |
| 1700 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1701 | <tr> |
| 1702 | <td><b>return:</b> </td><td>Returns true if the browser is UC Browser, false otherwise.</td> |
| 1703 | </tr> |
| 1704 | <tr> |
| 1705 | <td><b>access:</b> </td><td>protected</td> |
| 1706 | </tr> |
| 1707 | </table> |
| 1708 | </div> |
| 1709 | <br /><br /> |
| 1710 | |
| 1711 | |
| 1712 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1713 | </div> |
| 1714 | <hr /> |
| 1715 | <a name="methodcheckPlatform"></a> |
| 1716 | <h3>method checkPlatform <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1377">1377</a>]</span></h3> |
| 1717 | <div class="function"> |
| 1718 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1719 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1720 | <code>void checkPlatform( |
| 1721 | )</code> |
| 1722 | </td></tr></table> |
| 1723 | </td></tr></table><br /> |
| 1724 | |
| 1725 | Determine the user's platform.<br /><br /><br /><br /> |
| 1726 | <h4>Tags:</h4> |
| 1727 | <div class="tags"> |
| 1728 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1729 | <tr> |
| 1730 | <td><b>access:</b> </td><td>protected</td> |
| 1731 | </tr> |
| 1732 | </table> |
| 1733 | </div> |
| 1734 | <br /><br /> |
| 1735 | |
| 1736 | |
| 1737 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1738 | </div> |
| 1739 | <hr /> |
| 1740 | <a name="methodcheckPlatformCustom"></a> |
| 1741 | <h3>method checkPlatformCustom <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1447">1447</a>]</span></h3> |
| 1742 | <div class="function"> |
| 1743 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1744 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1745 | <code>boolean checkPlatformCustom( |
| 1746 | )</code> |
| 1747 | </td></tr></table> |
| 1748 | </td></tr></table><br /> |
| 1749 | |
| 1750 | Determine if the platform is among the custom platform rules or not. Rules are checked in the order they were added.<br /><br /><br /><br /> |
| 1751 | <h4>Tags:</h4> |
| 1752 | <div class="tags"> |
| 1753 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1754 | <tr> |
| 1755 | <td><b>return:</b> </td><td>Returns true if we found the platform we were looking for in the custom rules, false otherwise.</td> |
| 1756 | </tr> |
| 1757 | <tr> |
| 1758 | <td><b>access:</b> </td><td>protected</td> |
| 1759 | </tr> |
| 1760 | </table> |
| 1761 | </div> |
| 1762 | <br /><br /> |
| 1763 | |
| 1764 | |
| 1765 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1766 | </div> |
| 1767 | <hr /> |
| 1768 | <a name="methodcheckPlatformVersion"></a> |
| 1769 | <h3>method checkPlatformVersion <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1469">1469</a>]</span></h3> |
| 1770 | <div class="function"> |
| 1771 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1772 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1773 | <code>void checkPlatformVersion( |
| 1774 | )</code> |
| 1775 | </td></tr></table> |
| 1776 | </td></tr></table><br /> |
| 1777 | |
| 1778 | Determine the user's platform version.<br /><br /><br /><br /> |
| 1779 | <h4>Tags:</h4> |
| 1780 | <div class="tags"> |
| 1781 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1782 | <tr> |
| 1783 | <td><b>access:</b> </td><td>protected</td> |
| 1784 | </tr> |
| 1785 | </table> |
| 1786 | </div> |
| 1787 | <br /><br /> |
| 1788 | |
| 1789 | |
| 1790 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1791 | </div> |
| 1792 | <hr /> |
| 1793 | <a name="methodcheckRobot"></a> |
| 1794 | <h3>method checkRobot <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1580">1580</a>]</span></h3> |
| 1795 | <div class="function"> |
| 1796 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1797 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1798 | <code>void checkRobot( |
| 1799 | )</code> |
| 1800 | </td></tr></table> |
| 1801 | </td></tr></table><br /> |
| 1802 | |
| 1803 | Determine if it's a robot crawling the page and find it's name and version.<br /><br /><br /><br /> |
| 1804 | <h4>Tags:</h4> |
| 1805 | <div class="tags"> |
| 1806 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1807 | <tr> |
| 1808 | <td><b>access:</b> </td><td>protected</td> |
| 1809 | </tr> |
| 1810 | </table> |
| 1811 | </div> |
| 1812 | <br /><br /> |
| 1813 | |
| 1814 | |
| 1815 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1816 | </div> |
| 1817 | <hr /> |
| 1818 | <a name="methodcheckRobotBingbot"></a> |
| 1819 | <h3>method checkRobotBingbot <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1542">1542</a>]</span></h3> |
| 1820 | <div class="function"> |
| 1821 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1822 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1823 | <code>boolean checkRobotBingbot( |
| 1824 | )</code> |
| 1825 | </td></tr></table> |
| 1826 | </td></tr></table><br /> |
| 1827 | |
| 1828 | Determine if the robot is the Bingbot crawler or not.<br /><br /><br /><br /> |
| 1829 | <h4>Tags:</h4> |
| 1830 | <div class="tags"> |
| 1831 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1832 | <tr> |
| 1833 | <td><b>return:</b> </td><td>Returns true if the robot is Bingbot, false otherwise.</td> |
| 1834 | </tr> |
| 1835 | <tr> |
| 1836 | <td><b>link:</b> </td><td><a href="https://www.bing.com/webmaster/help/which-crawlers-does-bing-use-8c184ec0">https://www.bing.com/webmaster/help/which-crawlers-does-bing-use-8c184ec0</a></td> |
| 1837 | </tr> |
| 1838 | <tr> |
| 1839 | <td><b>access:</b> </td><td>protected</td> |
| 1840 | </tr> |
| 1841 | </table> |
| 1842 | </div> |
| 1843 | <br /><br /> |
| 1844 | |
| 1845 | |
| 1846 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1847 | </div> |
| 1848 | <hr /> |
| 1849 | <a name="methodcheckRobotCustom"></a> |
| 1850 | <h3>method checkRobotCustom <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1596">1596</a>]</span></h3> |
| 1851 | <div class="function"> |
| 1852 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1853 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1854 | <code>boolean checkRobotCustom( |
| 1855 | )</code> |
| 1856 | </td></tr></table> |
| 1857 | </td></tr></table><br /> |
| 1858 | |
| 1859 | Determine if the robot is among the custom robot rules or not. Rules are checked in the order they were added.<br /><br /><br /><br /> |
| 1860 | <h4>Tags:</h4> |
| 1861 | <div class="tags"> |
| 1862 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1863 | <tr> |
| 1864 | <td><b>return:</b> </td><td>Returns true if we found the robot we were looking for in the custom rules, false otherwise.</td> |
| 1865 | </tr> |
| 1866 | <tr> |
| 1867 | <td><b>access:</b> </td><td>protected</td> |
| 1868 | </tr> |
| 1869 | </table> |
| 1870 | </div> |
| 1871 | <br /><br /> |
| 1872 | |
| 1873 | |
| 1874 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1875 | </div> |
| 1876 | <hr /> |
| 1877 | <a name="methodcheckRobotGooglebot"></a> |
| 1878 | <h3>method checkRobotGooglebot <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1552">1552</a>]</span></h3> |
| 1879 | <div class="function"> |
| 1880 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1881 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1882 | <code>boolean checkRobotGooglebot( |
| 1883 | )</code> |
| 1884 | </td></tr></table> |
| 1885 | </td></tr></table><br /> |
| 1886 | |
| 1887 | Determine if the robot is the Googlebot crawler or not.<br /><br /><br /><br /> |
| 1888 | <h4>Tags:</h4> |
| 1889 | <div class="tags"> |
| 1890 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1891 | <tr> |
| 1892 | <td><b>return:</b> </td><td>Returns true if the robot is Googlebot, false otherwise.</td> |
| 1893 | </tr> |
| 1894 | <tr> |
| 1895 | <td><b>access:</b> </td><td>protected</td> |
| 1896 | </tr> |
| 1897 | </table> |
| 1898 | </div> |
| 1899 | <br /><br /> |
| 1900 | |
| 1901 | |
| 1902 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1903 | </div> |
| 1904 | <hr /> |
| 1905 | <a name="methodcheckRobotMsnBot"></a> |
| 1906 | <h3>method checkRobotMsnBot <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1571">1571</a>]</span></h3> |
| 1907 | <div class="function"> |
| 1908 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1909 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1910 | <code>boolean checkRobotMsnBot( |
| 1911 | )</code> |
| 1912 | </td></tr></table> |
| 1913 | </td></tr></table><br /> |
| 1914 | |
| 1915 | Determine if the robot is the MSNBot crawler or not. In October 2010 it was replaced by the Bingbot robot.<br /><br /><br /><br /> |
| 1916 | <h4>Tags:</h4> |
| 1917 | <div class="tags"> |
| 1918 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1919 | <tr> |
| 1920 | <td><b>return:</b> </td><td>Returns true if the robot is MSNBot, false otherwise.</td> |
| 1921 | </tr> |
| 1922 | <tr> |
| 1923 | <td><b>see:</b> </td><td><a href="../Browser_Detection/BrowserDetection.html#methodcheckRobotBingbot">BrowserDetection::checkRobotBingbot()</a></td> |
| 1924 | </tr> |
| 1925 | <tr> |
| 1926 | <td><b>access:</b> </td><td>protected</td> |
| 1927 | </tr> |
| 1928 | </table> |
| 1929 | </div> |
| 1930 | <br /><br /> |
| 1931 | |
| 1932 | |
| 1933 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1934 | </div> |
| 1935 | <hr /> |
| 1936 | <a name="methodcheckRobotSlurp"></a> |
| 1937 | <h3>method checkRobotSlurp <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1616">1616</a>]</span></h3> |
| 1938 | <div class="function"> |
| 1939 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1940 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1941 | <code>boolean checkRobotSlurp( |
| 1942 | )</code> |
| 1943 | </td></tr></table> |
| 1944 | </td></tr></table><br /> |
| 1945 | |
| 1946 | Determine if the robot is the Yahoo! Slurp crawler or not.<br /><br /><br /><br /> |
| 1947 | <h4>Tags:</h4> |
| 1948 | <div class="tags"> |
| 1949 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1950 | <tr> |
| 1951 | <td><b>return:</b> </td><td>Returns true if the robot is Yahoo! Slurp, false otherwise.</td> |
| 1952 | </tr> |
| 1953 | <tr> |
| 1954 | <td><b>access:</b> </td><td>protected</td> |
| 1955 | </tr> |
| 1956 | </table> |
| 1957 | </div> |
| 1958 | <br /><br /> |
| 1959 | |
| 1960 | |
| 1961 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1962 | </div> |
| 1963 | <hr /> |
| 1964 | <a name="methodcheckRobotW3CValidator"></a> |
| 1965 | <h3>method checkRobotW3CValidator <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1627">1627</a>]</span></h3> |
| 1966 | <div class="function"> |
| 1967 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1968 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 1969 | <code>boolean checkRobotW3CValidator( |
| 1970 | )</code> |
| 1971 | </td></tr></table> |
| 1972 | </td></tr></table><br /> |
| 1973 | |
| 1974 | Determine if the robot is the W3C Validator or not.<br /><br /><br /><br /> |
| 1975 | <h4>Tags:</h4> |
| 1976 | <div class="tags"> |
| 1977 | <table border="0" cellspacing="0" cellpadding="0"> |
| 1978 | <tr> |
| 1979 | <td><b>return:</b> </td><td>Returns true if the robot is the W3C Validator, false otherwise.</td> |
| 1980 | </tr> |
| 1981 | <tr> |
| 1982 | <td><b>link:</b> </td><td><a href="https://validator.w3.org/">https://validator.w3.org/</a></td> |
| 1983 | </tr> |
| 1984 | <tr> |
| 1985 | <td><b>access:</b> </td><td>protected</td> |
| 1986 | </tr> |
| 1987 | </table> |
| 1988 | </div> |
| 1989 | <br /><br /> |
| 1990 | |
| 1991 | |
| 1992 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 1993 | </div> |
| 1994 | <hr /> |
| 1995 | <a name="methodcheckRobotYahooMultimedia"></a> |
| 1996 | <h3>method checkRobotYahooMultimedia <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1664">1664</a>]</span></h3> |
| 1997 | <div class="function"> |
| 1998 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 1999 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2000 | <code>boolean checkRobotYahooMultimedia( |
| 2001 | )</code> |
| 2002 | </td></tr></table> |
| 2003 | </td></tr></table><br /> |
| 2004 | |
| 2005 | Determine if the robot is the Yahoo! multimedia crawler or not.<br /><br /><br /><br /> |
| 2006 | <h4>Tags:</h4> |
| 2007 | <div class="tags"> |
| 2008 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2009 | <tr> |
| 2010 | <td><b>return:</b> </td><td>Returns true if the robot is the Yahoo! multimedia crawler, false otherwise.</td> |
| 2011 | </tr> |
| 2012 | <tr> |
| 2013 | <td><b>access:</b> </td><td>protected</td> |
| 2014 | </tr> |
| 2015 | </table> |
| 2016 | </div> |
| 2017 | <br /><br /> |
| 2018 | |
| 2019 | |
| 2020 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2021 | </div> |
| 2022 | <hr /> |
| 2023 | <a name="methodcheckSimpleBrowserUA"></a> |
| 2024 | <h3>method checkSimpleBrowserUA <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1685">1685</a>]</span></h3> |
| 2025 | <div class="function"> |
| 2026 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2027 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2028 | <code>boolean checkSimpleBrowserUA( |
| 2029 | mixed |
| 2030 | $uaNameToLookFor, string |
| 2031 | $userAgent, string |
| 2032 | $browserName, [boolean |
| 2033 | $isMobile = false], [string |
| 2034 | $separator = '/'], [boolean |
| 2035 | $uaNameFindWords = true])</code> |
| 2036 | </td></tr></table> |
| 2037 | </td></tr></table><br /> |
| 2038 | |
| 2039 | Test the user agent for a specific browser where the browser name is immediately followed by the version number.<br /><br /><p>The user agent should look like: "Browser name/1.0" or "Browser 1.0;".</p><br /><br /><br /> |
| 2040 | <h4>Tags:</h4> |
| 2041 | <div class="tags"> |
| 2042 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2043 | <tr> |
| 2044 | <td><b>return:</b> </td><td>Returns true if we found the browser we were looking for, false otherwise.</td> |
| 2045 | </tr> |
| 2046 | <tr> |
| 2047 | <td><b>access:</b> </td><td>protected</td> |
| 2048 | </tr> |
| 2049 | </table> |
| 2050 | </div> |
| 2051 | <br /><br /> |
| 2052 | |
| 2053 | |
| 2054 | <h4>Parameters:</h4> |
| 2055 | <div class="tags"> |
| 2056 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2057 | <tr> |
| 2058 | <td class="type">mixed </td> |
| 2059 | <td><b>$uaNameToLookFor</b> </td> |
| 2060 | <td>The string (or array of strings) representing the browser name to find in the user agent.</td> |
| 2061 | </tr> |
| 2062 | <tr> |
| 2063 | <td class="type">string </td> |
| 2064 | <td><b>$userAgent</b> </td> |
| 2065 | <td>The user agent string to work with.</td> |
| 2066 | </tr> |
| 2067 | <tr> |
| 2068 | <td class="type">string </td> |
| 2069 | <td><b>$browserName</b> </td> |
| 2070 | <td>The literal browser name. Always use a class constant!</td> |
| 2071 | </tr> |
| 2072 | <tr> |
| 2073 | <td class="type">boolean </td> |
| 2074 | <td><b>$isMobile</b> </td> |
| 2075 | <td>(optional) Determines if the browser is from a mobile device.</td> |
| 2076 | </tr> |
| 2077 | <tr> |
| 2078 | <td class="type">string </td> |
| 2079 | <td><b>$separator</b> </td> |
| 2080 | <td>(optional) The separator string used to split the browser name and the version number in the user agent.</td> |
| 2081 | </tr> |
| 2082 | <tr> |
| 2083 | <td class="type">boolean </td> |
| 2084 | <td><b>$uaNameFindWords</b> </td> |
| 2085 | <td>(optional) Determines if the browser name to find should match a word instead of a part of a word. For example "Bar" would not be found in "FooBar" when true but would be found in "Foo Bar". When set to false, the browser name can be found anywhere in the user agent string.</td> |
| 2086 | </tr> |
| 2087 | </table> |
| 2088 | </div><br /> |
| 2089 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2090 | </div> |
| 2091 | <hr /> |
| 2092 | <a name="methodcheckSimpleRobot"></a> |
| 2093 | <h3>method checkSimpleRobot <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1714">1714</a>]</span></h3> |
| 2094 | <div class="function"> |
| 2095 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2096 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2097 | <code>boolean checkSimpleRobot( |
| 2098 | mixed |
| 2099 | $uaNameToLookFor, string |
| 2100 | $userAgent, string |
| 2101 | $robotName, [string |
| 2102 | $separator = '/'], [boolean |
| 2103 | $uaNameFindWords = true])</code> |
| 2104 | </td></tr></table> |
| 2105 | </td></tr></table><br /> |
| 2106 | |
| 2107 | Test the user agent for a specific robot where the robot name is immediately followed by the version number.<br /><br /><p>The user agent should look like: "Robot name/1.0" or "Robot 1.0;".</p><br /><br /><br /> |
| 2108 | <h4>Tags:</h4> |
| 2109 | <div class="tags"> |
| 2110 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2111 | <tr> |
| 2112 | <td><b>return:</b> </td><td>Returns true if we found the robot we were looking for, false otherwise.</td> |
| 2113 | </tr> |
| 2114 | <tr> |
| 2115 | <td><b>access:</b> </td><td>protected</td> |
| 2116 | </tr> |
| 2117 | </table> |
| 2118 | </div> |
| 2119 | <br /><br /> |
| 2120 | |
| 2121 | |
| 2122 | <h4>Parameters:</h4> |
| 2123 | <div class="tags"> |
| 2124 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2125 | <tr> |
| 2126 | <td class="type">mixed </td> |
| 2127 | <td><b>$uaNameToLookFor</b> </td> |
| 2128 | <td>The string (or array of strings) representing the robot name to find in the user agent.</td> |
| 2129 | </tr> |
| 2130 | <tr> |
| 2131 | <td class="type">string </td> |
| 2132 | <td><b>$userAgent</b> </td> |
| 2133 | <td>The user agent string to work with.</td> |
| 2134 | </tr> |
| 2135 | <tr> |
| 2136 | <td class="type">string </td> |
| 2137 | <td><b>$robotName</b> </td> |
| 2138 | <td>The literal robot name. Always use a class constant!</td> |
| 2139 | </tr> |
| 2140 | <tr> |
| 2141 | <td class="type">string </td> |
| 2142 | <td><b>$separator</b> </td> |
| 2143 | <td>(optional) The separator string used to split the robot name and the version number in the user agent.</td> |
| 2144 | </tr> |
| 2145 | <tr> |
| 2146 | <td class="type">boolean </td> |
| 2147 | <td><b>$uaNameFindWords</b> </td> |
| 2148 | <td>(optional) Determines if the robot name to find should match a word instead of a part of a word. For example "Bar" would not be found in "FooBar" when true but would be found in "Foo Bar". When set to false, the robot name can be found anywhere in the user agent string.</td> |
| 2149 | </tr> |
| 2150 | </table> |
| 2151 | </div><br /> |
| 2152 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2153 | </div> |
| 2154 | <hr /> |
| 2155 | <a name="methodcleanVersion"></a> |
| 2156 | <h3>method cleanVersion <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1734">1734</a>]</span></h3> |
| 2157 | <div class="function"> |
| 2158 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2159 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2160 | <code>string cleanVersion( |
| 2161 | string |
| 2162 | $version, [mixed |
| 2163 | $toRemove = NULL])</code> |
| 2164 | </td></tr></table> |
| 2165 | </td></tr></table><br /> |
| 2166 | |
| 2167 | Clean a version string from unwanted characters.<br /><br /><br /><br /> |
| 2168 | <h4>Tags:</h4> |
| 2169 | <div class="tags"> |
| 2170 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2171 | <tr> |
| 2172 | <td><b>return:</b> </td><td>Returns the cleaned version number string.</td> |
| 2173 | </tr> |
| 2174 | <tr> |
| 2175 | <td><b>access:</b> </td><td>protected</td> |
| 2176 | </tr> |
| 2177 | </table> |
| 2178 | </div> |
| 2179 | <br /><br /> |
| 2180 | |
| 2181 | |
| 2182 | <h4>Parameters:</h4> |
| 2183 | <div class="tags"> |
| 2184 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2185 | <tr> |
| 2186 | <td class="type">string </td> |
| 2187 | <td><b>$version</b> </td> |
| 2188 | <td>The version string to clean.</td> |
| 2189 | </tr> |
| 2190 | <tr> |
| 2191 | <td class="type">mixed </td> |
| 2192 | <td><b>$toRemove</b> </td> |
| 2193 | <td>(optional) String or array of strings representing additional string(s) to remove.</td> |
| 2194 | </tr> |
| 2195 | </table> |
| 2196 | </div><br /> |
| 2197 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2198 | </div> |
| 2199 | <hr /> |
| 2200 | <a name="methodcompareVersions"></a> |
| 2201 | <h3>method compareVersions <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a467">467</a>]</span></h3> |
| 2202 | <div class="function"> |
| 2203 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2204 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2205 | <code>int compareVersions( |
| 2206 | string |
| 2207 | $sourceVer, string |
| 2208 | $compareVer)</code> |
| 2209 | </td></tr></table> |
| 2210 | </td></tr></table><br /> |
| 2211 | |
| 2212 | Compare two version number strings.<br /><br /><br /><br /> |
| 2213 | <h4>Tags:</h4> |
| 2214 | <div class="tags"> |
| 2215 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2216 | <tr> |
| 2217 | <td><b>return:</b> </td><td>Returns -1 if $sourceVer < $compareVer, 0 if $sourceVer == $compareVer or 1 if $sourceVer > $compareVer.</td> |
| 2218 | </tr> |
| 2219 | <tr> |
| 2220 | <td><b>access:</b> </td><td>public</td> |
| 2221 | </tr> |
| 2222 | </table> |
| 2223 | </div> |
| 2224 | <br /><br /> |
| 2225 | |
| 2226 | |
| 2227 | <h4>Parameters:</h4> |
| 2228 | <div class="tags"> |
| 2229 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2230 | <tr> |
| 2231 | <td class="type">string </td> |
| 2232 | <td><b>$sourceVer</b> </td> |
| 2233 | <td>The source version number.</td> |
| 2234 | </tr> |
| 2235 | <tr> |
| 2236 | <td class="type">string </td> |
| 2237 | <td><b>$compareVer</b> </td> |
| 2238 | <td>The version number to compare with the source version number.</td> |
| 2239 | </tr> |
| 2240 | </table> |
| 2241 | </div><br /> |
| 2242 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2243 | </div> |
| 2244 | <hr /> |
| 2245 | <a name="methodcontainString"></a> |
| 2246 | <h3>method containString <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1782">1782</a>]</span></h3> |
| 2247 | <div class="function"> |
| 2248 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2249 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2250 | <code>boolean containString( |
| 2251 | string |
| 2252 | $haystack, mixed |
| 2253 | $needle, [boolean |
| 2254 | $insensitive = true], [boolean |
| 2255 | $findWords = true], [ |
| 2256 | &$foundPos = NULL], int |
| 2257 | $foundPos)</code> |
| 2258 | </td></tr></table> |
| 2259 | </td></tr></table><br /> |
| 2260 | |
| 2261 | Find if one or more substring is contained in a string.<br /><br /><br /><br /> |
| 2262 | <h4>Tags:</h4> |
| 2263 | <div class="tags"> |
| 2264 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2265 | <tr> |
| 2266 | <td><b>return:</b> </td><td>Returns true if the needle (or one of the needles) has been found in the haystack, false otherwise.</td> |
| 2267 | </tr> |
| 2268 | <tr> |
| 2269 | <td><b>access:</b> </td><td>protected</td> |
| 2270 | </tr> |
| 2271 | </table> |
| 2272 | </div> |
| 2273 | <br /><br /> |
| 2274 | |
| 2275 | |
| 2276 | <h4>Parameters:</h4> |
| 2277 | <div class="tags"> |
| 2278 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2279 | <tr> |
| 2280 | <td class="type">string </td> |
| 2281 | <td><b>$haystack</b> </td> |
| 2282 | <td>The string to search in.</td> |
| 2283 | </tr> |
| 2284 | <tr> |
| 2285 | <td class="type">mixed </td> |
| 2286 | <td><b>$needle</b> </td> |
| 2287 | <td>The string to search for. Can be a string or an array of strings if multiples values are to be searched.</td> |
| 2288 | </tr> |
| 2289 | <tr> |
| 2290 | <td class="type">boolean </td> |
| 2291 | <td><b>$insensitive</b> </td> |
| 2292 | <td>(optional) Determines if we do a case-sensitive search (false) or a case-insensitive one (true).</td> |
| 2293 | </tr> |
| 2294 | <tr> |
| 2295 | <td class="type">boolean </td> |
| 2296 | <td><b>$findWords</b> </td> |
| 2297 | <td>(optional) Determines if the needle should match a word to be found. For example "Bar" would not be found in "FooBar" when true but would be found in "Foo Bar". When set to false, the needle can be found anywhere in the haystack.</td> |
| 2298 | </tr> |
| 2299 | <tr> |
| 2300 | <td class="type">int </td> |
| 2301 | <td><b>$foundPos</b> </td> |
| 2302 | <td>(optional) Integer buffer that will contain the position of the needle (if found and if a non NULL variable has been passed).</td> |
| 2303 | </tr> |
| 2304 | <tr> |
| 2305 | <td class="type"> </td> |
| 2306 | <td><b>&$foundPos</b> </td> |
| 2307 | <td></td> |
| 2308 | </tr> |
| 2309 | </table> |
| 2310 | </div><br /> |
| 2311 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2312 | </div> |
| 2313 | <hr /> |
| 2314 | <a name="methoddetect"></a> |
| 2315 | <h3>method detect <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1814">1814</a>]</span></h3> |
| 2316 | <div class="function"> |
| 2317 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2318 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2319 | <code>void detect( |
| 2320 | )</code> |
| 2321 | </td></tr></table> |
| 2322 | </td></tr></table><br /> |
| 2323 | |
| 2324 | Detect the user environment from the details in the user agent string.<br /><br /><br /><br /> |
| 2325 | <h4>Tags:</h4> |
| 2326 | <div class="tags"> |
| 2327 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2328 | <tr> |
| 2329 | <td><b>access:</b> </td><td>protected</td> |
| 2330 | </tr> |
| 2331 | </table> |
| 2332 | </div> |
| 2333 | <br /><br /> |
| 2334 | |
| 2335 | |
| 2336 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2337 | </div> |
| 2338 | <hr /> |
| 2339 | <a name="methodfindAndGetVersion"></a> |
| 2340 | <h3>method findAndGetVersion <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1835">1835</a>]</span></h3> |
| 2341 | <div class="function"> |
| 2342 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2343 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2344 | <code>boolean findAndGetVersion( |
| 2345 | type |
| 2346 | $uaNameToLookFor, type |
| 2347 | $userAgent, |
| 2348 | &$version, [type |
| 2349 | $separator = '/'], [type |
| 2350 | $uaNameFindWords = true], type |
| 2351 | $version)</code> |
| 2352 | </td></tr></table> |
| 2353 | </td></tr></table><br /> |
| 2354 | |
| 2355 | Test the user agent for a specific browser and extract it's version.<br /><br /><br /><br /> |
| 2356 | <h4>Tags:</h4> |
| 2357 | <div class="tags"> |
| 2358 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2359 | <tr> |
| 2360 | <td><b>return:</b> </td><td>Returns true if we found the browser we were looking for, false otherwise.</td> |
| 2361 | </tr> |
| 2362 | <tr> |
| 2363 | <td><b>access:</b> </td><td>protected</td> |
| 2364 | </tr> |
| 2365 | </table> |
| 2366 | </div> |
| 2367 | <br /><br /> |
| 2368 | |
| 2369 | |
| 2370 | <h4>Parameters:</h4> |
| 2371 | <div class="tags"> |
| 2372 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2373 | <tr> |
| 2374 | <td class="type">type </td> |
| 2375 | <td><b>$uaNameToLookFor</b> </td> |
| 2376 | <td>The string (or array of strings) representing the browser name to find in the user agent.</td> |
| 2377 | </tr> |
| 2378 | <tr> |
| 2379 | <td class="type">type </td> |
| 2380 | <td><b>$userAgent</b> </td> |
| 2381 | <td>The user agent string to work with.</td> |
| 2382 | </tr> |
| 2383 | <tr> |
| 2384 | <td class="type">type </td> |
| 2385 | <td><b>$version</b> </td> |
| 2386 | <td>String buffer that will contain the version found (if any).</td> |
| 2387 | </tr> |
| 2388 | <tr> |
| 2389 | <td class="type">type </td> |
| 2390 | <td><b>$separator</b> </td> |
| 2391 | <td>(optional) The separator string used to split the browser name and the version number in the user agent.</td> |
| 2392 | </tr> |
| 2393 | <tr> |
| 2394 | <td class="type">type </td> |
| 2395 | <td><b>$uaNameFindWords</b> </td> |
| 2396 | <td>(optional) Determines if the browser name to find should match a word instead of a part of a word. For example "Bar" would not be found in "FooBar" when true but would be found in "Foo Bar". When set to false, the browser name can be found anywhere in the user agent string.</td> |
| 2397 | </tr> |
| 2398 | <tr> |
| 2399 | <td class="type"> </td> |
| 2400 | <td><b>&$version</b> </td> |
| 2401 | <td></td> |
| 2402 | </tr> |
| 2403 | </table> |
| 2404 | </div><br /> |
| 2405 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2406 | </div> |
| 2407 | <hr /> |
| 2408 | <a name="methodgetIECompatibilityView"></a> |
| 2409 | <h3>method getIECompatibilityView <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a514">514</a>]</span></h3> |
| 2410 | <div class="function"> |
| 2411 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2412 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2413 | <code>mixed getIECompatibilityView( |
| 2414 | [boolean |
| 2415 | $asArray = false])</code> |
| 2416 | </td></tr></table> |
| 2417 | </td></tr></table><br /> |
| 2418 | |
| 2419 | Get the name and version of the browser emulated in the compatibility view mode (if any). Since Internet Explorer 8, IE can be put in compatibility mode to make websites that were created for older browsers, especially IE 6 and 7, look better in IE 8+ which renders web pages closer to the standards and thus differently from those older versions of IE.<br /><br /><br /><br /> |
| 2420 | <h4>Tags:</h4> |
| 2421 | <div class="tags"> |
| 2422 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2423 | <tr> |
| 2424 | <td><b>return:</b> </td><td>If a string was requested, the function returns the name and version of the browser emulated in the compatibility view mode or an empty string if the browser is not in compatibility view mode. If an array was requested, an array with the keys 'browser' and 'version' is returned.</td> |
| 2425 | </tr> |
| 2426 | <tr> |
| 2427 | <td><b>access:</b> </td><td>public</td> |
| 2428 | </tr> |
| 2429 | </table> |
| 2430 | </div> |
| 2431 | <br /><br /> |
| 2432 | |
| 2433 | |
| 2434 | <h4>Parameters:</h4> |
| 2435 | <div class="tags"> |
| 2436 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2437 | <tr> |
| 2438 | <td class="type">boolean </td> |
| 2439 | <td><b>$asArray</b> </td> |
| 2440 | <td>(optional) Determines if the return value must be an array (true) or a string (false).</td> |
| 2441 | </tr> |
| 2442 | </table> |
| 2443 | </div><br /> |
| 2444 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2445 | </div> |
| 2446 | <hr /> |
| 2447 | <a name="methodgetLibVersion"></a> |
| 2448 | <h3>method getLibVersion <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a527">527</a>]</span></h3> |
| 2449 | <div class="function"> |
| 2450 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2451 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2452 | <code>string getLibVersion( |
| 2453 | )</code> |
| 2454 | </td></tr></table> |
| 2455 | </td></tr></table><br /> |
| 2456 | |
| 2457 | Return the BrowserDetection class version.<br /><br /><br /><br /> |
| 2458 | <h4>Tags:</h4> |
| 2459 | <div class="tags"> |
| 2460 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2461 | <tr> |
| 2462 | <td><b>return:</b> </td><td>Returns the version as a sting with the #.#.# format.</td> |
| 2463 | </tr> |
| 2464 | <tr> |
| 2465 | <td><b>access:</b> </td><td>public</td> |
| 2466 | </tr> |
| 2467 | </table> |
| 2468 | </div> |
| 2469 | <br /><br /> |
| 2470 | |
| 2471 | |
| 2472 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2473 | </div> |
| 2474 | <hr /> |
| 2475 | <a name="methodgetName"></a> |
| 2476 | <h3>method getName <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a537">537</a>]</span></h3> |
| 2477 | <div class="function"> |
| 2478 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2479 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2480 | <code>string getName( |
| 2481 | )</code> |
| 2482 | </td></tr></table> |
| 2483 | </td></tr></table><br /> |
| 2484 | |
| 2485 | Get the name of the browser. All of the return values are class constants. You can compare them like this: $myBrowserInstance->getName() == BrowserDetection::BROWSER_FIREFOX.<br /><br /><br /><br /> |
| 2486 | <h4>Tags:</h4> |
| 2487 | <div class="tags"> |
| 2488 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2489 | <tr> |
| 2490 | <td><b>return:</b> </td><td>Returns the name of the browser or BrowserDetection::BROWSER_UNKNOWN if unknown.</td> |
| 2491 | </tr> |
| 2492 | <tr> |
| 2493 | <td><b>access:</b> </td><td>public</td> |
| 2494 | </tr> |
| 2495 | </table> |
| 2496 | </div> |
| 2497 | <br /><br /> |
| 2498 | |
| 2499 | |
| 2500 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2501 | </div> |
| 2502 | <hr /> |
| 2503 | <a name="methodgetPlatform"></a> |
| 2504 | <h3>method getPlatform <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a548">548</a>]</span></h3> |
| 2505 | <div class="function"> |
| 2506 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2507 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2508 | <code>string getPlatform( |
| 2509 | )</code> |
| 2510 | </td></tr></table> |
| 2511 | </td></tr></table><br /> |
| 2512 | |
| 2513 | Get the name of the platform family on which the browser is run on (such as Windows, Apple, etc.). All of the return values are class constants. You can compare them like this: $myBrowserInstance->getPlatform() == BrowserDetection::PLATFORM_ANDROID.<br /><br /><br /><br /> |
| 2514 | <h4>Tags:</h4> |
| 2515 | <div class="tags"> |
| 2516 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2517 | <tr> |
| 2518 | <td><b>return:</b> </td><td>Returns the name of the platform or BrowserDetection::PLATFORM_UNKNOWN if unknown.</td> |
| 2519 | </tr> |
| 2520 | <tr> |
| 2521 | <td><b>access:</b> </td><td>public</td> |
| 2522 | </tr> |
| 2523 | </table> |
| 2524 | </div> |
| 2525 | <br /><br /> |
| 2526 | |
| 2527 | |
| 2528 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2529 | </div> |
| 2530 | <hr /> |
| 2531 | <a name="methodgetPlatformVersion"></a> |
| 2532 | <h3>method getPlatformVersion <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a566">566</a>]</span></h3> |
| 2533 | <div class="function"> |
| 2534 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2535 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2536 | <code>string getPlatformVersion( |
| 2537 | [boolean |
| 2538 | $returnVersionNumbers = false], [boolean |
| 2539 | $returnServerFlavor = false])</code> |
| 2540 | </td></tr></table> |
| 2541 | </td></tr></table><br /> |
| 2542 | |
| 2543 | Get the platform version on which the browser is run on. It can be returned as a string number like 'NT 6.3' or as a name like 'Windows 8.1'. When returning version string numbers for Windows NT OS families the number is prefixed by 'NT ' to differentiate from older Windows 3.x & 9x release. At the moment only the Windows and Android operating systems are supported.<br /><br /><br /><br /> |
| 2544 | <h4>Tags:</h4> |
| 2545 | <div class="tags"> |
| 2546 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2547 | <tr> |
| 2548 | <td><b>return:</b> </td><td>Returns the version name/version numbers of the platform or the constant PLATFORM_VERSION_UNKNOWN if unknown.</td> |
| 2549 | </tr> |
| 2550 | <tr> |
| 2551 | <td><b>access:</b> </td><td>public</td> |
| 2552 | </tr> |
| 2553 | </table> |
| 2554 | </div> |
| 2555 | <br /><br /> |
| 2556 | |
| 2557 | |
| 2558 | <h4>Parameters:</h4> |
| 2559 | <div class="tags"> |
| 2560 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2561 | <tr> |
| 2562 | <td class="type">boolean </td> |
| 2563 | <td><b>$returnVersionNumbers</b> </td> |
| 2564 | <td>(optional) Determines if the return value must be versions numbers as a string (true) or the version name (false).</td> |
| 2565 | </tr> |
| 2566 | <tr> |
| 2567 | <td class="type">boolean </td> |
| 2568 | <td><b>$returnServerFlavor</b> </td> |
| 2569 | <td>(optional) Since some Windows NT versions have the same values, this flag determines if the Server flavor is returned or not. For instance Windows 8.1 and Windows Server 2012 R2 both use version 6.3. This parameter is only useful when testing for Windows.</td> |
| 2570 | </tr> |
| 2571 | </table> |
| 2572 | </div><br /> |
| 2573 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2574 | </div> |
| 2575 | <hr /> |
| 2576 | <a name="methodgetRobotName"></a> |
| 2577 | <h3>method getRobotName <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a603">603</a>]</span></h3> |
| 2578 | <div class="function"> |
| 2579 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2580 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2581 | <code>string getRobotName( |
| 2582 | )</code> |
| 2583 | </td></tr></table> |
| 2584 | </td></tr></table><br /> |
| 2585 | |
| 2586 | Get the name of the robot. All of the return values are class constants. You can compare them like this: $myBrowserInstance->getRobotName() == BrowserDetection::ROBOT_GOOGLEBOT.<br /><br /><br /><br /> |
| 2587 | <h4>Tags:</h4> |
| 2588 | <div class="tags"> |
| 2589 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2590 | <tr> |
| 2591 | <td><b>return:</b> </td><td>Returns the name of the robot or BrowserDetection::ROBOT_UNKNOWN if unknown.</td> |
| 2592 | </tr> |
| 2593 | <tr> |
| 2594 | <td><b>access:</b> </td><td>public</td> |
| 2595 | </tr> |
| 2596 | </table> |
| 2597 | </div> |
| 2598 | <br /><br /> |
| 2599 | |
| 2600 | |
| 2601 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2602 | </div> |
| 2603 | <hr /> |
| 2604 | <a name="methodgetRobotVersion"></a> |
| 2605 | <h3>method getRobotVersion <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a612">612</a>]</span></h3> |
| 2606 | <div class="function"> |
| 2607 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2608 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2609 | <code>string getRobotVersion( |
| 2610 | )</code> |
| 2611 | </td></tr></table> |
| 2612 | </td></tr></table><br /> |
| 2613 | |
| 2614 | Get the version of the robot.<br /><br /><br /><br /> |
| 2615 | <h4>Tags:</h4> |
| 2616 | <div class="tags"> |
| 2617 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2618 | <tr> |
| 2619 | <td><b>return:</b> </td><td>Returns the version of the robot or BrowserDetection::ROBOT_VERSION_UNKNOWN if unknown.</td> |
| 2620 | </tr> |
| 2621 | <tr> |
| 2622 | <td><b>access:</b> </td><td>public</td> |
| 2623 | </tr> |
| 2624 | </table> |
| 2625 | </div> |
| 2626 | <br /><br /> |
| 2627 | |
| 2628 | |
| 2629 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2630 | </div> |
| 2631 | <hr /> |
| 2632 | <a name="methodgetUserAgent"></a> |
| 2633 | <h3>method getUserAgent <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a621">621</a>]</span></h3> |
| 2634 | <div class="function"> |
| 2635 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2636 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2637 | <code>string getUserAgent( |
| 2638 | )</code> |
| 2639 | </td></tr></table> |
| 2640 | </td></tr></table><br /> |
| 2641 | |
| 2642 | Get the user agent value used by the class to determine the browser details.<br /><br /><br /><br /> |
| 2643 | <h4>Tags:</h4> |
| 2644 | <div class="tags"> |
| 2645 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2646 | <tr> |
| 2647 | <td><b>return:</b> </td><td>The user agent string.</td> |
| 2648 | </tr> |
| 2649 | <tr> |
| 2650 | <td><b>access:</b> </td><td>public</td> |
| 2651 | </tr> |
| 2652 | </table> |
| 2653 | </div> |
| 2654 | <br /><br /> |
| 2655 | |
| 2656 | |
| 2657 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2658 | </div> |
| 2659 | <hr /> |
| 2660 | <a name="methodgetVersion"></a> |
| 2661 | <h3>method getVersion <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a630">630</a>]</span></h3> |
| 2662 | <div class="function"> |
| 2663 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2664 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2665 | <code>string getVersion( |
| 2666 | )</code> |
| 2667 | </td></tr></table> |
| 2668 | </td></tr></table><br /> |
| 2669 | |
| 2670 | Get the version of the browser.<br /><br /><br /><br /> |
| 2671 | <h4>Tags:</h4> |
| 2672 | <div class="tags"> |
| 2673 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2674 | <tr> |
| 2675 | <td><b>return:</b> </td><td>Returns the version of the browser or BrowserDetection::VERSION_UNKNOWN if unknown.</td> |
| 2676 | </tr> |
| 2677 | <tr> |
| 2678 | <td><b>access:</b> </td><td>public</td> |
| 2679 | </tr> |
| 2680 | </table> |
| 2681 | </div> |
| 2682 | <br /><br /> |
| 2683 | |
| 2684 | |
| 2685 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2686 | </div> |
| 2687 | <hr /> |
| 2688 | <a name="methodiOSVerToStr"></a> |
| 2689 | <h3>method iOSVerToStr <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1869">1869</a>]</span></h3> |
| 2690 | <div class="function"> |
| 2691 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2692 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2693 | <code>string iOSVerToStr( |
| 2694 | string |
| 2695 | $iOSVer)</code> |
| 2696 | </td></tr></table> |
| 2697 | </td></tr></table><br /> |
| 2698 | |
| 2699 | Convert the iOS version numbers to the operating system name. For instance '2.0' returns 'iPhone OS 2.0'.<br /><br /><br /><br /> |
| 2700 | <h4>Tags:</h4> |
| 2701 | <div class="tags"> |
| 2702 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2703 | <tr> |
| 2704 | <td><b>return:</b> </td><td>The operating system name.</td> |
| 2705 | </tr> |
| 2706 | <tr> |
| 2707 | <td><b>access:</b> </td><td>protected</td> |
| 2708 | </tr> |
| 2709 | </table> |
| 2710 | </div> |
| 2711 | <br /><br /> |
| 2712 | |
| 2713 | |
| 2714 | <h4>Parameters:</h4> |
| 2715 | <div class="tags"> |
| 2716 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2717 | <tr> |
| 2718 | <td class="type">string </td> |
| 2719 | <td><b>$iOSVer</b> </td> |
| 2720 | <td>The iOS version numbers as a string.</td> |
| 2721 | </tr> |
| 2722 | </table> |
| 2723 | </div><br /> |
| 2724 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2725 | </div> |
| 2726 | <hr /> |
| 2727 | <a name="methodis64bitPlatform"></a> |
| 2728 | <h3>method is64bitPlatform <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a640">640</a>]</span></h3> |
| 2729 | <div class="function"> |
| 2730 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2731 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2732 | <code>boolean is64bitPlatform( |
| 2733 | )</code> |
| 2734 | </td></tr></table> |
| 2735 | </td></tr></table><br /> |
| 2736 | |
| 2737 | Determine if the browser is executed from a 64-bit platform. Keep in mind that not all platforms/browsers report this and the result may not always be accurate.<br /><br /><br /><br /> |
| 2738 | <h4>Tags:</h4> |
| 2739 | <div class="tags"> |
| 2740 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2741 | <tr> |
| 2742 | <td><b>return:</b> </td><td>Returns true if the browser is executed from a 64-bit platform.</td> |
| 2743 | </tr> |
| 2744 | <tr> |
| 2745 | <td><b>access:</b> </td><td>public</td> |
| 2746 | </tr> |
| 2747 | </table> |
| 2748 | </div> |
| 2749 | <br /><br /> |
| 2750 | |
| 2751 | |
| 2752 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2753 | </div> |
| 2754 | <hr /> |
| 2755 | <a name="methodisChromeFrame"></a> |
| 2756 | <h3>method isChromeFrame <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a650">650</a>]</span></h3> |
| 2757 | <div class="function"> |
| 2758 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2759 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2760 | <code>boolean isChromeFrame( |
| 2761 | )</code> |
| 2762 | </td></tr></table> |
| 2763 | </td></tr></table><br /> |
| 2764 | |
| 2765 | Determine if the browser runs Google Chrome Frame (it's a plug-in designed for Internet Explorer 6+ based on the open-source Chromium project - it's like a Chrome browser within IE).<br /><br /><br /><br /> |
| 2766 | <h4>Tags:</h4> |
| 2767 | <div class="tags"> |
| 2768 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2769 | <tr> |
| 2770 | <td><b>return:</b> </td><td>Returns true if the browser is using Google Chrome Frame, false otherwise.</td> |
| 2771 | </tr> |
| 2772 | <tr> |
| 2773 | <td><b>access:</b> </td><td>public</td> |
| 2774 | </tr> |
| 2775 | </table> |
| 2776 | </div> |
| 2777 | <br /><br /> |
| 2778 | |
| 2779 | |
| 2780 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2781 | </div> |
| 2782 | <hr /> |
| 2783 | <a name="methodisInIECompatibilityView"></a> |
| 2784 | <h3>method isInIECompatibilityView <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a661">661</a>]</span></h3> |
| 2785 | <div class="function"> |
| 2786 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2787 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2788 | <code>boolean isInIECompatibilityView( |
| 2789 | )</code> |
| 2790 | </td></tr></table> |
| 2791 | </td></tr></table><br /> |
| 2792 | |
| 2793 | Determine if the browser is in compatibility view or not. Since Internet Explorer 8, IE can be put in compatibility mode to make websites that were created for older browsers, especially IE 6 and 7, look better in IE 8+ which renders web pages closer to the standards and thus differently from those older versions of IE.<br /><br /><br /><br /> |
| 2794 | <h4>Tags:</h4> |
| 2795 | <div class="tags"> |
| 2796 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2797 | <tr> |
| 2798 | <td><b>return:</b> </td><td>Returns true if the browser is in compatibility view, false otherwise.</td> |
| 2799 | </tr> |
| 2800 | <tr> |
| 2801 | <td><b>access:</b> </td><td>public</td> |
| 2802 | </tr> |
| 2803 | </table> |
| 2804 | </div> |
| 2805 | <br /><br /> |
| 2806 | |
| 2807 | |
| 2808 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2809 | </div> |
| 2810 | <hr /> |
| 2811 | <a name="methodisMobile"></a> |
| 2812 | <h3>method isMobile <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a670">670</a>]</span></h3> |
| 2813 | <div class="function"> |
| 2814 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2815 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2816 | <code>boolean isMobile( |
| 2817 | )</code> |
| 2818 | </td></tr></table> |
| 2819 | </td></tr></table><br /> |
| 2820 | |
| 2821 | Determine if the browser is from a mobile device or not.<br /><br /><br /><br /> |
| 2822 | <h4>Tags:</h4> |
| 2823 | <div class="tags"> |
| 2824 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2825 | <tr> |
| 2826 | <td><b>return:</b> </td><td>Returns true if the browser is from a mobile device, false otherwise.</td> |
| 2827 | </tr> |
| 2828 | <tr> |
| 2829 | <td><b>access:</b> </td><td>public</td> |
| 2830 | </tr> |
| 2831 | </table> |
| 2832 | </div> |
| 2833 | <br /><br /> |
| 2834 | |
| 2835 | |
| 2836 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2837 | </div> |
| 2838 | <hr /> |
| 2839 | <a name="methodisRobot"></a> |
| 2840 | <h3>method isRobot <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a679">679</a>]</span></h3> |
| 2841 | <div class="function"> |
| 2842 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2843 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2844 | <code>boolean isRobot( |
| 2845 | )</code> |
| 2846 | </td></tr></table> |
| 2847 | </td></tr></table><br /> |
| 2848 | |
| 2849 | Determine if the browser is a robot (Googlebot, Bingbot, Yahoo! Slurp...) or not.<br /><br /><br /><br /> |
| 2850 | <h4>Tags:</h4> |
| 2851 | <div class="tags"> |
| 2852 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2853 | <tr> |
| 2854 | <td><b>return:</b> </td><td>Returns true if the browser is a robot, false otherwise.</td> |
| 2855 | </tr> |
| 2856 | <tr> |
| 2857 | <td><b>access:</b> </td><td>public</td> |
| 2858 | </tr> |
| 2859 | </table> |
| 2860 | </div> |
| 2861 | <br /><br /> |
| 2862 | |
| 2863 | |
| 2864 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2865 | </div> |
| 2866 | <hr /> |
| 2867 | <a name="methodmacVerToStr"></a> |
| 2868 | <h3>method macVerToStr <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1885">1885</a>]</span></h3> |
| 2869 | <div class="function"> |
| 2870 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2871 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2872 | <code>string macVerToStr( |
| 2873 | string |
| 2874 | $macVer)</code> |
| 2875 | </td></tr></table> |
| 2876 | </td></tr></table><br /> |
| 2877 | |
| 2878 | Convert the macOS version numbers to the operating system name. For instance '10.7' returns 'Mac OS X Lion'.<br /><br /><br /><br /> |
| 2879 | <h4>Tags:</h4> |
| 2880 | <div class="tags"> |
| 2881 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2882 | <tr> |
| 2883 | <td><b>return:</b> </td><td>The operating system name or the constant PLATFORM_VERSION_UNKNOWN if nothing match the version numbers.</td> |
| 2884 | </tr> |
| 2885 | <tr> |
| 2886 | <td><b>access:</b> </td><td>protected</td> |
| 2887 | </tr> |
| 2888 | </table> |
| 2889 | </div> |
| 2890 | <br /><br /> |
| 2891 | |
| 2892 | |
| 2893 | <h4>Parameters:</h4> |
| 2894 | <div class="tags"> |
| 2895 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2896 | <tr> |
| 2897 | <td class="type">string </td> |
| 2898 | <td><b>$macVer</b> </td> |
| 2899 | <td>The macOS version numbers as a string.</td> |
| 2900 | </tr> |
| 2901 | </table> |
| 2902 | </div><br /> |
| 2903 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2904 | </div> |
| 2905 | <hr /> |
| 2906 | <a name="methodparseInt"></a> |
| 2907 | <h3>method parseInt <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1938">1938</a>]</span></h3> |
| 2908 | <div class="function"> |
| 2909 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2910 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2911 | <code>int parseInt( |
| 2912 | string |
| 2913 | $intStr)</code> |
| 2914 | </td></tr></table> |
| 2915 | </td></tr></table><br /> |
| 2916 | |
| 2917 | Get the integer value of a string variable.<br /><br /><br /><br /> |
| 2918 | <h4>Tags:</h4> |
| 2919 | <div class="tags"> |
| 2920 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2921 | <tr> |
| 2922 | <td><b>return:</b> </td><td>The integer value of $intStr on success, or 0 on failure.</td> |
| 2923 | </tr> |
| 2924 | <tr> |
| 2925 | <td><b>access:</b> </td><td>protected</td> |
| 2926 | </tr> |
| 2927 | </table> |
| 2928 | </div> |
| 2929 | <br /><br /> |
| 2930 | |
| 2931 | |
| 2932 | <h4>Parameters:</h4> |
| 2933 | <div class="tags"> |
| 2934 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2935 | <tr> |
| 2936 | <td class="type">string </td> |
| 2937 | <td><b>$intStr</b> </td> |
| 2938 | <td>The scalar value being converted to an integer.</td> |
| 2939 | </tr> |
| 2940 | </table> |
| 2941 | </div><br /> |
| 2942 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2943 | </div> |
| 2944 | <hr /> |
| 2945 | <a name="methodremoveCustomBrowserDetection"></a> |
| 2946 | <h3>method removeCustomBrowserDetection <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a690">690</a>]</span></h3> |
| 2947 | <div class="function"> |
| 2948 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2949 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2950 | <code>boolean removeCustomBrowserDetection( |
| 2951 | string |
| 2952 | $browserName)</code> |
| 2953 | </td></tr></table> |
| 2954 | </td></tr></table><br /> |
| 2955 | |
| 2956 | Remove support for a previously added Web browser.<br /><br /><br /><br /> |
| 2957 | <h4>Tags:</h4> |
| 2958 | <div class="tags"> |
| 2959 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2960 | <tr> |
| 2961 | <td><b>return:</b> </td><td>Returns true if the custom rule has been found and removed, false otherwise.</td> |
| 2962 | </tr> |
| 2963 | <tr> |
| 2964 | <td><b>see:</b> </td><td><a href="../Browser_Detection/BrowserDetection.html#methodaddCustomBrowserDetection">BrowserDetection::addCustomBrowserDetection()</a></td> |
| 2965 | </tr> |
| 2966 | <tr> |
| 2967 | <td><b>access:</b> </td><td>public</td> |
| 2968 | </tr> |
| 2969 | </table> |
| 2970 | </div> |
| 2971 | <br /><br /> |
| 2972 | |
| 2973 | |
| 2974 | <h4>Parameters:</h4> |
| 2975 | <div class="tags"> |
| 2976 | <table border="0" cellspacing="0" cellpadding="0"> |
| 2977 | <tr> |
| 2978 | <td class="type">string </td> |
| 2979 | <td><b>$browserName</b> </td> |
| 2980 | <td>The Web browser name as used when added.</td> |
| 2981 | </tr> |
| 2982 | </table> |
| 2983 | </div><br /> |
| 2984 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 2985 | </div> |
| 2986 | <hr /> |
| 2987 | <a name="methodremoveCustomPlatformDetection"></a> |
| 2988 | <h3>method removeCustomPlatformDetection <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a706">706</a>]</span></h3> |
| 2989 | <div class="function"> |
| 2990 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 2991 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 2992 | <code>boolean removeCustomPlatformDetection( |
| 2993 | string |
| 2994 | $platformName)</code> |
| 2995 | </td></tr></table> |
| 2996 | </td></tr></table><br /> |
| 2997 | |
| 2998 | Remove support for a previously added platform.<br /><br /><br /><br /> |
| 2999 | <h4>Tags:</h4> |
| 3000 | <div class="tags"> |
| 3001 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3002 | <tr> |
| 3003 | <td><b>return:</b> </td><td>Returns true if the custom rule has been found and removed, false otherwise.</td> |
| 3004 | </tr> |
| 3005 | <tr> |
| 3006 | <td><b>see:</b> </td><td><a href="../Browser_Detection/BrowserDetection.html#methodaddCustomPlatformDetection">BrowserDetection::addCustomPlatformDetection()</a></td> |
| 3007 | </tr> |
| 3008 | <tr> |
| 3009 | <td><b>access:</b> </td><td>public</td> |
| 3010 | </tr> |
| 3011 | </table> |
| 3012 | </div> |
| 3013 | <br /><br /> |
| 3014 | |
| 3015 | |
| 3016 | <h4>Parameters:</h4> |
| 3017 | <div class="tags"> |
| 3018 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3019 | <tr> |
| 3020 | <td class="type">string </td> |
| 3021 | <td><b>$platformName</b> </td> |
| 3022 | <td>The platform name as used when added.</td> |
| 3023 | </tr> |
| 3024 | </table> |
| 3025 | </div><br /> |
| 3026 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 3027 | </div> |
| 3028 | <hr /> |
| 3029 | <a name="methodremoveCustomRobotDetection"></a> |
| 3030 | <h3>method removeCustomRobotDetection <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a722">722</a>]</span></h3> |
| 3031 | <div class="function"> |
| 3032 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 3033 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 3034 | <code>boolean removeCustomRobotDetection( |
| 3035 | string |
| 3036 | $robotName)</code> |
| 3037 | </td></tr></table> |
| 3038 | </td></tr></table><br /> |
| 3039 | |
| 3040 | Remove support for a previously added robot.<br /><br /><br /><br /> |
| 3041 | <h4>Tags:</h4> |
| 3042 | <div class="tags"> |
| 3043 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3044 | <tr> |
| 3045 | <td><b>return:</b> </td><td>Returns true if the custom rule has been found and removed, false otherwise.</td> |
| 3046 | </tr> |
| 3047 | <tr> |
| 3048 | <td><b>see:</b> </td><td><a href="../Browser_Detection/BrowserDetection.html#methodaddCustomRobotDetection">BrowserDetection::addCustomRobotDetection()</a></td> |
| 3049 | </tr> |
| 3050 | <tr> |
| 3051 | <td><b>access:</b> </td><td>public</td> |
| 3052 | </tr> |
| 3053 | </table> |
| 3054 | </div> |
| 3055 | <br /><br /> |
| 3056 | |
| 3057 | |
| 3058 | <h4>Parameters:</h4> |
| 3059 | <div class="tags"> |
| 3060 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3061 | <tr> |
| 3062 | <td class="type">string </td> |
| 3063 | <td><b>$robotName</b> </td> |
| 3064 | <td>The robot name as used when added.</td> |
| 3065 | </tr> |
| 3066 | </table> |
| 3067 | </div><br /> |
| 3068 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 3069 | </div> |
| 3070 | <hr /> |
| 3071 | <a name="methodreset"></a> |
| 3072 | <h3>method reset <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1947">1947</a>]</span></h3> |
| 3073 | <div class="function"> |
| 3074 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 3075 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 3076 | <code>void reset( |
| 3077 | )</code> |
| 3078 | </td></tr></table> |
| 3079 | </td></tr></table><br /> |
| 3080 | |
| 3081 | Reset all the properties of the class.<br /><br /><br /><br /> |
| 3082 | <h4>Tags:</h4> |
| 3083 | <div class="tags"> |
| 3084 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3085 | <tr> |
| 3086 | <td><b>access:</b> </td><td>protected</td> |
| 3087 | </tr> |
| 3088 | </table> |
| 3089 | </div> |
| 3090 | <br /><br /> |
| 3091 | |
| 3092 | |
| 3093 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 3094 | </div> |
| 3095 | <hr /> |
| 3096 | <a name="methodsafariBuildToSafariVer"></a> |
| 3097 | <h3>method safariBuildToSafariVer <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a1971">1971</a>]</span></h3> |
| 3098 | <div class="function"> |
| 3099 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 3100 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 3101 | <code>string safariBuildToSafariVer( |
| 3102 | string |
| 3103 | $version)</code> |
| 3104 | </td></tr></table> |
| 3105 | </td></tr></table><br /> |
| 3106 | |
| 3107 | Convert a Safari build number to a Safari version number.<br /><br /><br /><br /> |
| 3108 | <h4>Tags:</h4> |
| 3109 | <div class="tags"> |
| 3110 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3111 | <tr> |
| 3112 | <td><b>return:</b> </td><td>Returns the Safari version string. If the version can't be determined, an empty string is returned.</td> |
| 3113 | </tr> |
| 3114 | <tr> |
| 3115 | <td><b>link:</b> </td><td><a href="https://web.archive.org/web/20080514173941/http://developer.apple.com/internet/safari/uamatrix.html">https://web.archive.org/web/20080514173941/http://developer.apple.com/internet/safari/uamatrix.html</a></td> |
| 3116 | </tr> |
| 3117 | <tr> |
| 3118 | <td><b>access:</b> </td><td>protected</td> |
| 3119 | </tr> |
| 3120 | </table> |
| 3121 | </div> |
| 3122 | <br /><br /> |
| 3123 | |
| 3124 | |
| 3125 | <h4>Parameters:</h4> |
| 3126 | <div class="tags"> |
| 3127 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3128 | <tr> |
| 3129 | <td class="type">string </td> |
| 3130 | <td><b>$version</b> </td> |
| 3131 | <td>A string representing the version number.</td> |
| 3132 | </tr> |
| 3133 | </table> |
| 3134 | </div><br /> |
| 3135 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 3136 | </div> |
| 3137 | <hr /> |
| 3138 | <a name="methodset64bit"></a> |
| 3139 | <h3>method set64bit <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a2065">2065</a>]</span></h3> |
| 3140 | <div class="function"> |
| 3141 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 3142 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 3143 | <code>void set64bit( |
| 3144 | boolean |
| 3145 | $is64bit)</code> |
| 3146 | </td></tr></table> |
| 3147 | </td></tr></table><br /> |
| 3148 | |
| 3149 | Set if the browser is executed from a 64-bit platform.<br /><br /><br /><br /> |
| 3150 | <h4>Tags:</h4> |
| 3151 | <div class="tags"> |
| 3152 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3153 | <tr> |
| 3154 | <td><b>access:</b> </td><td>protected</td> |
| 3155 | </tr> |
| 3156 | </table> |
| 3157 | </div> |
| 3158 | <br /><br /> |
| 3159 | |
| 3160 | |
| 3161 | <h4>Parameters:</h4> |
| 3162 | <div class="tags"> |
| 3163 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3164 | <tr> |
| 3165 | <td class="type">boolean </td> |
| 3166 | <td><b>$is64bit</b> </td> |
| 3167 | <td>Value that tells if the browser is executed from a 64-bit platform.</td> |
| 3168 | </tr> |
| 3169 | </table> |
| 3170 | </div><br /> |
| 3171 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 3172 | </div> |
| 3173 | <hr /> |
| 3174 | <a name="methodsetBrowser"></a> |
| 3175 | <h3>method setBrowser <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a2075">2075</a>]</span></h3> |
| 3176 | <div class="function"> |
| 3177 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 3178 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 3179 | <code>void setBrowser( |
| 3180 | string |
| 3181 | $browserName)</code> |
| 3182 | </td></tr></table> |
| 3183 | </td></tr></table><br /> |
| 3184 | |
| 3185 | Set the name of the browser.<br /><br /><br /><br /> |
| 3186 | <h4>Tags:</h4> |
| 3187 | <div class="tags"> |
| 3188 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3189 | <tr> |
| 3190 | <td><b>access:</b> </td><td>protected</td> |
| 3191 | </tr> |
| 3192 | </table> |
| 3193 | </div> |
| 3194 | <br /><br /> |
| 3195 | |
| 3196 | |
| 3197 | <h4>Parameters:</h4> |
| 3198 | <div class="tags"> |
| 3199 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3200 | <tr> |
| 3201 | <td class="type">string </td> |
| 3202 | <td><b>$browserName</b> </td> |
| 3203 | <td>The name of the browser.</td> |
| 3204 | </tr> |
| 3205 | </table> |
| 3206 | </div><br /> |
| 3207 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 3208 | </div> |
| 3209 | <hr /> |
| 3210 | <a name="methodsetMobile"></a> |
| 3211 | <h3>method setMobile <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a2085">2085</a>]</span></h3> |
| 3212 | <div class="function"> |
| 3213 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 3214 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 3215 | <code>void setMobile( |
| 3216 | [boolean |
| 3217 | $isMobile = true])</code> |
| 3218 | </td></tr></table> |
| 3219 | </td></tr></table><br /> |
| 3220 | |
| 3221 | Set the browser to be from a mobile device or not.<br /><br /><br /><br /> |
| 3222 | <h4>Tags:</h4> |
| 3223 | <div class="tags"> |
| 3224 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3225 | <tr> |
| 3226 | <td><b>access:</b> </td><td>protected</td> |
| 3227 | </tr> |
| 3228 | </table> |
| 3229 | </div> |
| 3230 | <br /><br /> |
| 3231 | |
| 3232 | |
| 3233 | <h4>Parameters:</h4> |
| 3234 | <div class="tags"> |
| 3235 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3236 | <tr> |
| 3237 | <td class="type">boolean </td> |
| 3238 | <td><b>$isMobile</b> </td> |
| 3239 | <td>(optional) Value that tells if the browser is on a mobile device or not.</td> |
| 3240 | </tr> |
| 3241 | </table> |
| 3242 | </div><br /> |
| 3243 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 3244 | </div> |
| 3245 | <hr /> |
| 3246 | <a name="methodsetPlatform"></a> |
| 3247 | <h3>method setPlatform <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a2095">2095</a>]</span></h3> |
| 3248 | <div class="function"> |
| 3249 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 3250 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 3251 | <code>void setPlatform( |
| 3252 | string |
| 3253 | $platform)</code> |
| 3254 | </td></tr></table> |
| 3255 | </td></tr></table><br /> |
| 3256 | |
| 3257 | Set the platform on which the browser is on.<br /><br /><br /><br /> |
| 3258 | <h4>Tags:</h4> |
| 3259 | <div class="tags"> |
| 3260 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3261 | <tr> |
| 3262 | <td><b>access:</b> </td><td>protected</td> |
| 3263 | </tr> |
| 3264 | </table> |
| 3265 | </div> |
| 3266 | <br /><br /> |
| 3267 | |
| 3268 | |
| 3269 | <h4>Parameters:</h4> |
| 3270 | <div class="tags"> |
| 3271 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3272 | <tr> |
| 3273 | <td class="type">string </td> |
| 3274 | <td><b>$platform</b> </td> |
| 3275 | <td>The name of the platform.</td> |
| 3276 | </tr> |
| 3277 | </table> |
| 3278 | </div><br /> |
| 3279 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 3280 | </div> |
| 3281 | <hr /> |
| 3282 | <a name="methodsetPlatformVersion"></a> |
| 3283 | <h3>method setPlatformVersion <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a2105">2105</a>]</span></h3> |
| 3284 | <div class="function"> |
| 3285 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 3286 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 3287 | <code>void setPlatformVersion( |
| 3288 | string |
| 3289 | $platformVer)</code> |
| 3290 | </td></tr></table> |
| 3291 | </td></tr></table><br /> |
| 3292 | |
| 3293 | Set the platform version on which the browser is on.<br /><br /><br /><br /> |
| 3294 | <h4>Tags:</h4> |
| 3295 | <div class="tags"> |
| 3296 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3297 | <tr> |
| 3298 | <td><b>access:</b> </td><td>protected</td> |
| 3299 | </tr> |
| 3300 | </table> |
| 3301 | </div> |
| 3302 | <br /><br /> |
| 3303 | |
| 3304 | |
| 3305 | <h4>Parameters:</h4> |
| 3306 | <div class="tags"> |
| 3307 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3308 | <tr> |
| 3309 | <td class="type">string </td> |
| 3310 | <td><b>$platformVer</b> </td> |
| 3311 | <td>The version numbers of the platform.</td> |
| 3312 | </tr> |
| 3313 | </table> |
| 3314 | </div><br /> |
| 3315 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 3316 | </div> |
| 3317 | <hr /> |
| 3318 | <a name="methodsetRobot"></a> |
| 3319 | <h3>method setRobot <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a2115">2115</a>]</span></h3> |
| 3320 | <div class="function"> |
| 3321 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 3322 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 3323 | <code>void setRobot( |
| 3324 | [boolean |
| 3325 | $isRobot = true])</code> |
| 3326 | </td></tr></table> |
| 3327 | </td></tr></table><br /> |
| 3328 | |
| 3329 | Set the browser to be a robot (crawler) or not.<br /><br /><br /><br /> |
| 3330 | <h4>Tags:</h4> |
| 3331 | <div class="tags"> |
| 3332 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3333 | <tr> |
| 3334 | <td><b>access:</b> </td><td>protected</td> |
| 3335 | </tr> |
| 3336 | </table> |
| 3337 | </div> |
| 3338 | <br /><br /> |
| 3339 | |
| 3340 | |
| 3341 | <h4>Parameters:</h4> |
| 3342 | <div class="tags"> |
| 3343 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3344 | <tr> |
| 3345 | <td class="type">boolean </td> |
| 3346 | <td><b>$isRobot</b> </td> |
| 3347 | <td>(optional) Value that tells if the browser is a robot or not.</td> |
| 3348 | </tr> |
| 3349 | </table> |
| 3350 | </div><br /> |
| 3351 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 3352 | </div> |
| 3353 | <hr /> |
| 3354 | <a name="methodsetRobotName"></a> |
| 3355 | <h3>method setRobotName <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a2125">2125</a>]</span></h3> |
| 3356 | <div class="function"> |
| 3357 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 3358 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 3359 | <code>void setRobotName( |
| 3360 | string |
| 3361 | $robotName)</code> |
| 3362 | </td></tr></table> |
| 3363 | </td></tr></table><br /> |
| 3364 | |
| 3365 | Set the name of the robot.<br /><br /><br /><br /> |
| 3366 | <h4>Tags:</h4> |
| 3367 | <div class="tags"> |
| 3368 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3369 | <tr> |
| 3370 | <td><b>access:</b> </td><td>protected</td> |
| 3371 | </tr> |
| 3372 | </table> |
| 3373 | </div> |
| 3374 | <br /><br /> |
| 3375 | |
| 3376 | |
| 3377 | <h4>Parameters:</h4> |
| 3378 | <div class="tags"> |
| 3379 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3380 | <tr> |
| 3381 | <td class="type">string </td> |
| 3382 | <td><b>$robotName</b> </td> |
| 3383 | <td>The name of the robot.</td> |
| 3384 | </tr> |
| 3385 | </table> |
| 3386 | </div><br /> |
| 3387 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 3388 | </div> |
| 3389 | <hr /> |
| 3390 | <a name="methodsetRobotVersion"></a> |
| 3391 | <h3>method setRobotVersion <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a2135">2135</a>]</span></h3> |
| 3392 | <div class="function"> |
| 3393 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 3394 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 3395 | <code>void setRobotVersion( |
| 3396 | string |
| 3397 | $robotVersion)</code> |
| 3398 | </td></tr></table> |
| 3399 | </td></tr></table><br /> |
| 3400 | |
| 3401 | Set the version of the robot.<br /><br /><br /><br /> |
| 3402 | <h4>Tags:</h4> |
| 3403 | <div class="tags"> |
| 3404 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3405 | <tr> |
| 3406 | <td><b>access:</b> </td><td>protected</td> |
| 3407 | </tr> |
| 3408 | </table> |
| 3409 | </div> |
| 3410 | <br /><br /> |
| 3411 | |
| 3412 | |
| 3413 | <h4>Parameters:</h4> |
| 3414 | <div class="tags"> |
| 3415 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3416 | <tr> |
| 3417 | <td class="type">string </td> |
| 3418 | <td><b>$robotVersion</b> </td> |
| 3419 | <td>The version of the robot.</td> |
| 3420 | </tr> |
| 3421 | </table> |
| 3422 | </div><br /> |
| 3423 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 3424 | </div> |
| 3425 | <hr /> |
| 3426 | <a name="methodsetUserAgent"></a> |
| 3427 | <h3>method setUserAgent <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a737">737</a>]</span></h3> |
| 3428 | <div class="function"> |
| 3429 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 3430 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 3431 | <code>void setUserAgent( |
| 3432 | [string |
| 3433 | $agentString = ''])</code> |
| 3434 | </td></tr></table> |
| 3435 | </td></tr></table><br /> |
| 3436 | |
| 3437 | Set the user agent to use with the class.<br /><br /><br /><br /> |
| 3438 | <h4>Tags:</h4> |
| 3439 | <div class="tags"> |
| 3440 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3441 | <tr> |
| 3442 | <td><b>access:</b> </td><td>public</td> |
| 3443 | </tr> |
| 3444 | </table> |
| 3445 | </div> |
| 3446 | <br /><br /> |
| 3447 | |
| 3448 | |
| 3449 | <h4>Parameters:</h4> |
| 3450 | <div class="tags"> |
| 3451 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3452 | <tr> |
| 3453 | <td class="type">string </td> |
| 3454 | <td><b>$agentString</b> </td> |
| 3455 | <td>(optional) The value of the user agent. If an empty string is sent (default), $_SERVER['HTTP_USER_AGENT'] will be used.</td> |
| 3456 | </tr> |
| 3457 | </table> |
| 3458 | </div><br /> |
| 3459 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 3460 | </div> |
| 3461 | <hr /> |
| 3462 | <a name="methodsetVersion"></a> |
| 3463 | <h3>method setVersion <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a2151">2151</a>]</span></h3> |
| 3464 | <div class="function"> |
| 3465 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 3466 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 3467 | <code>void setVersion( |
| 3468 | string |
| 3469 | $version)</code> |
| 3470 | </td></tr></table> |
| 3471 | </td></tr></table><br /> |
| 3472 | |
| 3473 | Set the version of the browser.<br /><br /><br /><br /> |
| 3474 | <h4>Tags:</h4> |
| 3475 | <div class="tags"> |
| 3476 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3477 | <tr> |
| 3478 | <td><b>access:</b> </td><td>protected</td> |
| 3479 | </tr> |
| 3480 | </table> |
| 3481 | </div> |
| 3482 | <br /><br /> |
| 3483 | |
| 3484 | |
| 3485 | <h4>Parameters:</h4> |
| 3486 | <div class="tags"> |
| 3487 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3488 | <tr> |
| 3489 | <td class="type">string </td> |
| 3490 | <td><b>$version</b> </td> |
| 3491 | <td>The version of the browser.</td> |
| 3492 | </tr> |
| 3493 | </table> |
| 3494 | </div><br /> |
| 3495 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 3496 | </div> |
| 3497 | <hr /> |
| 3498 | <a name="methodwebKitBuildToSafariVer"></a> |
| 3499 | <h3>method webKitBuildToSafariVer <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a2170">2170</a>]</span></h3> |
| 3500 | <div class="function"> |
| 3501 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 3502 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 3503 | <code>string webKitBuildToSafariVer( |
| 3504 | string |
| 3505 | $version)</code> |
| 3506 | </td></tr></table> |
| 3507 | </td></tr></table><br /> |
| 3508 | |
| 3509 | Convert a WebKit build number to a Safari version number.<br /><br /><br /><br /> |
| 3510 | <h4>Tags:</h4> |
| 3511 | <div class="tags"> |
| 3512 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3513 | <tr> |
| 3514 | <td><b>return:</b> </td><td>Returns the Safari version string. If the version can't be determined, an empty string is returned.</td> |
| 3515 | </tr> |
| 3516 | <tr> |
| 3517 | <td><b>link:</b> </td><td><a href="https://web.archive.org/web/20080514173941/http://developer.apple.com/internet/safari/uamatrix.html">https://web.archive.org/web/20080514173941/http://developer.apple.com/internet/safari/uamatrix.html</a></td> |
| 3518 | </tr> |
| 3519 | <tr> |
| 3520 | <td><b>access:</b> </td><td>protected</td> |
| 3521 | </tr> |
| 3522 | </table> |
| 3523 | </div> |
| 3524 | <br /><br /> |
| 3525 | |
| 3526 | |
| 3527 | <h4>Parameters:</h4> |
| 3528 | <div class="tags"> |
| 3529 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3530 | <tr> |
| 3531 | <td class="type">string </td> |
| 3532 | <td><b>$version</b> </td> |
| 3533 | <td>A string representing the version number.</td> |
| 3534 | </tr> |
| 3535 | </table> |
| 3536 | </div><br /> |
| 3537 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 3538 | </div> |
| 3539 | <hr /> |
| 3540 | <a name="methodwindowsNTVerToStr"></a> |
| 3541 | <h3>method windowsNTVerToStr <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a2279">2279</a>]</span></h3> |
| 3542 | <div class="function"> |
| 3543 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 3544 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 3545 | <code>string windowsNTVerToStr( |
| 3546 | string |
| 3547 | $winVer, [boolean |
| 3548 | $returnServerFlavor = false])</code> |
| 3549 | </td></tr></table> |
| 3550 | </td></tr></table><br /> |
| 3551 | |
| 3552 | Convert the Windows NT family version numbers to the operating system name. For instance '5.1' returns 'Windows XP'.<br /><br /><br /><br /> |
| 3553 | <h4>Tags:</h4> |
| 3554 | <div class="tags"> |
| 3555 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3556 | <tr> |
| 3557 | <td><b>return:</b> </td><td>The operating system name or the constant PLATFORM_VERSION_UNKNOWN if nothing match the version numbers.</td> |
| 3558 | </tr> |
| 3559 | <tr> |
| 3560 | <td><b>access:</b> </td><td>protected</td> |
| 3561 | </tr> |
| 3562 | </table> |
| 3563 | </div> |
| 3564 | <br /><br /> |
| 3565 | |
| 3566 | |
| 3567 | <h4>Parameters:</h4> |
| 3568 | <div class="tags"> |
| 3569 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3570 | <tr> |
| 3571 | <td class="type">string </td> |
| 3572 | <td><b>$winVer</b> </td> |
| 3573 | <td>The Windows NT family version numbers as a string.</td> |
| 3574 | </tr> |
| 3575 | <tr> |
| 3576 | <td class="type">boolean </td> |
| 3577 | <td><b>$returnServerFlavor</b> </td> |
| 3578 | <td>(optional) Since some Windows NT versions have the same values, this flag determines if the Server flavor is returned or not. For instance Windows 8.1 and Windows Server 2012 R2 both use version 6.3.</td> |
| 3579 | </tr> |
| 3580 | </table> |
| 3581 | </div><br /> |
| 3582 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 3583 | </div> |
| 3584 | <hr /> |
| 3585 | <a name="methodwindowsVerToStr"></a> |
| 3586 | <h3>method windowsVerToStr <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a2325">2325</a>]</span></h3> |
| 3587 | <div class="function"> |
| 3588 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 3589 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 3590 | <code>string windowsVerToStr( |
| 3591 | string |
| 3592 | $winVer)</code> |
| 3593 | </td></tr></table> |
| 3594 | </td></tr></table><br /> |
| 3595 | |
| 3596 | Convert the Windows 3.x & 9x family version numbers to the operating system name. For instance '4.10.1998' returns 'Windows 98'.<br /><br /><br /><br /> |
| 3597 | <h4>Tags:</h4> |
| 3598 | <div class="tags"> |
| 3599 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3600 | <tr> |
| 3601 | <td><b>return:</b> </td><td>The operating system name or the constant PLATFORM_VERSION_UNKNOWN if nothing match the version numbers.</td> |
| 3602 | </tr> |
| 3603 | <tr> |
| 3604 | <td><b>access:</b> </td><td>protected</td> |
| 3605 | </tr> |
| 3606 | </table> |
| 3607 | </div> |
| 3608 | <br /><br /> |
| 3609 | |
| 3610 | |
| 3611 | <h4>Parameters:</h4> |
| 3612 | <div class="tags"> |
| 3613 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3614 | <tr> |
| 3615 | <td class="type">string </td> |
| 3616 | <td><b>$winVer</b> </td> |
| 3617 | <td>The Windows 3.x or 9x family version numbers as a string.</td> |
| 3618 | </tr> |
| 3619 | </table> |
| 3620 | </div><br /> |
| 3621 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 3622 | </div> |
| 3623 | <hr /> |
| 3624 | <a name="methodwordPos"></a> |
| 3625 | <h3>method wordPos <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a2359">2359</a>]</span></h3> |
| 3626 | <div class="function"> |
| 3627 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 3628 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 3629 | <code>mixed wordPos( |
| 3630 | string |
| 3631 | $haystack, string |
| 3632 | $needle, [boolean |
| 3633 | $insensitive = true], [int |
| 3634 | $offset = 0], [ |
| 3635 | &$foundString = NULL], string |
| 3636 | $foundString)</code> |
| 3637 | </td></tr></table> |
| 3638 | </td></tr></table><br /> |
| 3639 | |
| 3640 | Find the position of the first occurrence of a word in a string.<br /><br /><br /><br /> |
| 3641 | <h4>Tags:</h4> |
| 3642 | <div class="tags"> |
| 3643 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3644 | <tr> |
| 3645 | <td><b>return:</b> </td><td>Returns the position of the needle (int) if found, false otherwise. Warning this function may return Boolean false, but may also return a non-Boolean value which evaluates to false.</td> |
| 3646 | </tr> |
| 3647 | <tr> |
| 3648 | <td><b>access:</b> </td><td>protected</td> |
| 3649 | </tr> |
| 3650 | </table> |
| 3651 | </div> |
| 3652 | <br /><br /> |
| 3653 | |
| 3654 | |
| 3655 | <h4>Parameters:</h4> |
| 3656 | <div class="tags"> |
| 3657 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3658 | <tr> |
| 3659 | <td class="type">string </td> |
| 3660 | <td><b>$haystack</b> </td> |
| 3661 | <td>The string to search in.</td> |
| 3662 | </tr> |
| 3663 | <tr> |
| 3664 | <td class="type">string </td> |
| 3665 | <td><b>$needle</b> </td> |
| 3666 | <td>The string to search for.</td> |
| 3667 | </tr> |
| 3668 | <tr> |
| 3669 | <td class="type">boolean </td> |
| 3670 | <td><b>$insensitive</b> </td> |
| 3671 | <td>(optional) Determines if we do a case-sensitive search (false) or a case-insensitive one (true).</td> |
| 3672 | </tr> |
| 3673 | <tr> |
| 3674 | <td class="type">int </td> |
| 3675 | <td><b>$offset</b> </td> |
| 3676 | <td>If specified, search will start this number of characters counted from the beginning of the string. If the offset is negative, the search will start this number of characters counted from the end of the string.</td> |
| 3677 | </tr> |
| 3678 | <tr> |
| 3679 | <td class="type">string </td> |
| 3680 | <td><b>$foundString</b> </td> |
| 3681 | <td>String buffer that will contain the exact matching needle found. Set to NULL when return value of the function is false.</td> |
| 3682 | </tr> |
| 3683 | <tr> |
| 3684 | <td class="type"> </td> |
| 3685 | <td><b>&$foundString</b> </td> |
| 3686 | <td></td> |
| 3687 | </tr> |
| 3688 | </table> |
| 3689 | </div><br /> |
| 3690 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 3691 | </div> |
| 3692 | <hr /> |
| 3693 | <a name="method__toString"></a> |
| 3694 | <h3>method __toString <span class="smalllinenumber">[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a341">341</a>]</span></h3> |
| 3695 | <div class="function"> |
| 3696 | <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
| 3697 | <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
| 3698 | <code>string __toString( |
| 3699 | )</code> |
| 3700 | </td></tr></table> |
| 3701 | </td></tr></table><br /> |
| 3702 | |
| 3703 | Determine how the class will react when it is treated like a string.<br /><br /><br /><br /> |
| 3704 | <h4>Tags:</h4> |
| 3705 | <div class="tags"> |
| 3706 | <table border="0" cellspacing="0" cellpadding="0"> |
| 3707 | <tr> |
| 3708 | <td><b>return:</b> </td><td>Returns an HTML formatted string with a summary of the browser informations.</td> |
| 3709 | </tr> |
| 3710 | <tr> |
| 3711 | <td><b>access:</b> </td><td>public</td> |
| 3712 | </tr> |
| 3713 | </table> |
| 3714 | </div> |
| 3715 | <br /><br /> |
| 3716 | |
| 3717 | |
| 3718 | <div class="top">[ <a href="#top">Top</a> ]</div> |
| 3719 | </div> |
| 3720 | </div><br /> |
| 3721 | |
| 3722 | <hr /> |
| 3723 | <a name="class_consts"></a> |
| 3724 | <h3>Class Constants</h3> |
| 3725 | <div class="tags"> |
| 3726 | <a name="constBROWSER_ANDROID"></a> |
| 3727 | <p></p> |
| 3728 | <h4>BROWSER_ANDROID = <span class="value"> 'Android'</span></h4> |
| 3729 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a164">164</a>]</p> |
| 3730 | Constant for the name of the Web browser.<br /><br /> |
| 3731 | <br /> |
| 3732 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3733 | <a name="constBROWSER_BLACKBERRY"></a> |
| 3734 | <p></p> |
| 3735 | <h4>BROWSER_BLACKBERRY = <span class="value"> 'BlackBerry'</span></h4> |
| 3736 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a165">165</a>]</p> |
| 3737 | Constant for the name of the Web browser.<br /><br /> |
| 3738 | <br /> |
| 3739 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3740 | <a name="constBROWSER_CHROME"></a> |
| 3741 | <p></p> |
| 3742 | <h4>BROWSER_CHROME = <span class="value"> 'Chrome'</span></h4> |
| 3743 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a166">166</a>]</p> |
| 3744 | Constant for the name of the Web browser.<br /><br /> |
| 3745 | <br /> |
| 3746 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3747 | <a name="constBROWSER_EDGE"></a> |
| 3748 | <p></p> |
| 3749 | <h4>BROWSER_EDGE = <span class="value"> 'Edge'</span></h4> |
| 3750 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a167">167</a>]</p> |
| 3751 | Constant for the name of the Web browser.<br /><br /> |
| 3752 | <br /> |
| 3753 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3754 | <a name="constBROWSER_FIREBIRD"></a> |
| 3755 | <p></p> |
| 3756 | <h4>BROWSER_FIREBIRD = <span class="value"> 'Firebird'</span></h4> |
| 3757 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a168">168</a>]</p> |
| 3758 | Constant for the name of the Web browser.<br /><br /> |
| 3759 | <br /> |
| 3760 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3761 | <a name="constBROWSER_FIREFOX"></a> |
| 3762 | <p></p> |
| 3763 | <h4>BROWSER_FIREFOX = <span class="value"> 'Firefox'</span></h4> |
| 3764 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a169">169</a>]</p> |
| 3765 | Constant for the name of the Web browser.<br /><br /> |
| 3766 | <br /> |
| 3767 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3768 | <a name="constBROWSER_ICAB"></a> |
| 3769 | <p></p> |
| 3770 | <h4>BROWSER_ICAB = <span class="value"> 'iCab'</span></h4> |
| 3771 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a170">170</a>]</p> |
| 3772 | Constant for the name of the Web browser.<br /><br /> |
| 3773 | <br /> |
| 3774 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3775 | <a name="constBROWSER_ICECAT"></a> |
| 3776 | <p></p> |
| 3777 | <h4>BROWSER_ICECAT = <span class="value"> 'GNU IceCat'</span></h4> |
| 3778 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a171">171</a>]</p> |
| 3779 | Constant for the name of the Web browser.<br /><br /> |
| 3780 | <br /> |
| 3781 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3782 | <a name="constBROWSER_ICEWEASEL"></a> |
| 3783 | <p></p> |
| 3784 | <h4>BROWSER_ICEWEASEL = <span class="value"> 'GNU IceWeasel'</span></h4> |
| 3785 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a172">172</a>]</p> |
| 3786 | Constant for the name of the Web browser.<br /><br /> |
| 3787 | <br /> |
| 3788 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3789 | <a name="constBROWSER_IE"></a> |
| 3790 | <p></p> |
| 3791 | <h4>BROWSER_IE = <span class="value"> 'Internet Explorer'</span></h4> |
| 3792 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a173">173</a>]</p> |
| 3793 | Constant for the name of the Web browser.<br /><br /> |
| 3794 | <br /> |
| 3795 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3796 | <a name="constBROWSER_IE_MOBILE"></a> |
| 3797 | <p></p> |
| 3798 | <h4>BROWSER_IE_MOBILE = <span class="value"> 'Internet Explorer Mobile'</span></h4> |
| 3799 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a174">174</a>]</p> |
| 3800 | Constant for the name of the Web browser.<br /><br /> |
| 3801 | <br /> |
| 3802 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3803 | <a name="constBROWSER_KONQUEROR"></a> |
| 3804 | <p></p> |
| 3805 | <h4>BROWSER_KONQUEROR = <span class="value"> 'Konqueror'</span></h4> |
| 3806 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a175">175</a>]</p> |
| 3807 | Constant for the name of the Web browser.<br /><br /> |
| 3808 | <br /> |
| 3809 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3810 | <a name="constBROWSER_LYNX"></a> |
| 3811 | <p></p> |
| 3812 | <h4>BROWSER_LYNX = <span class="value"> 'Lynx'</span></h4> |
| 3813 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a176">176</a>]</p> |
| 3814 | Constant for the name of the Web browser.<br /><br /> |
| 3815 | <br /> |
| 3816 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3817 | <a name="constBROWSER_MOZILLA"></a> |
| 3818 | <p></p> |
| 3819 | <h4>BROWSER_MOZILLA = <span class="value"> 'Mozilla'</span></h4> |
| 3820 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a177">177</a>]</p> |
| 3821 | Constant for the name of the Web browser.<br /><br /> |
| 3822 | <br /> |
| 3823 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3824 | <a name="constBROWSER_MSNTV"></a> |
| 3825 | <p></p> |
| 3826 | <h4>BROWSER_MSNTV = <span class="value"> 'MSN TV'</span></h4> |
| 3827 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a178">178</a>]</p> |
| 3828 | Constant for the name of the Web browser.<br /><br /> |
| 3829 | <br /> |
| 3830 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3831 | <a name="constBROWSER_NETSCAPE"></a> |
| 3832 | <p></p> |
| 3833 | <h4>BROWSER_NETSCAPE = <span class="value"> 'Netscape'</span></h4> |
| 3834 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a179">179</a>]</p> |
| 3835 | Constant for the name of the Web browser.<br /><br /> |
| 3836 | <br /> |
| 3837 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3838 | <a name="constBROWSER_NOKIA"></a> |
| 3839 | <p></p> |
| 3840 | <h4>BROWSER_NOKIA = <span class="value"> 'Nokia Browser'</span></h4> |
| 3841 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a180">180</a>]</p> |
| 3842 | Constant for the name of the Web browser.<br /><br /> |
| 3843 | <br /> |
| 3844 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3845 | <a name="constBROWSER_OPERA"></a> |
| 3846 | <p></p> |
| 3847 | <h4>BROWSER_OPERA = <span class="value"> 'Opera'</span></h4> |
| 3848 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a181">181</a>]</p> |
| 3849 | Constant for the name of the Web browser.<br /><br /> |
| 3850 | <br /> |
| 3851 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3852 | <a name="constBROWSER_OPERA_MINI"></a> |
| 3853 | <p></p> |
| 3854 | <h4>BROWSER_OPERA_MINI = <span class="value"> 'Opera Mini'</span></h4> |
| 3855 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a182">182</a>]</p> |
| 3856 | Constant for the name of the Web browser.<br /><br /> |
| 3857 | <br /> |
| 3858 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3859 | <a name="constBROWSER_OPERA_MOBILE"></a> |
| 3860 | <p></p> |
| 3861 | <h4>BROWSER_OPERA_MOBILE = <span class="value"> 'Opera Mobile'</span></h4> |
| 3862 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a183">183</a>]</p> |
| 3863 | Constant for the name of the Web browser.<br /><br /> |
| 3864 | <br /> |
| 3865 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3866 | <a name="constBROWSER_PHOENIX"></a> |
| 3867 | <p></p> |
| 3868 | <h4>BROWSER_PHOENIX = <span class="value"> 'Phoenix'</span></h4> |
| 3869 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a184">184</a>]</p> |
| 3870 | Constant for the name of the Web browser.<br /><br /> |
| 3871 | <br /> |
| 3872 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3873 | <a name="constBROWSER_SAFARI"></a> |
| 3874 | <p></p> |
| 3875 | <h4>BROWSER_SAFARI = <span class="value"> 'Safari'</span></h4> |
| 3876 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a185">185</a>]</p> |
| 3877 | Constant for the name of the Web browser.<br /><br /> |
| 3878 | <br /> |
| 3879 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3880 | <a name="constBROWSER_SAMSUNG"></a> |
| 3881 | <p></p> |
| 3882 | <h4>BROWSER_SAMSUNG = <span class="value"> 'Samsung Internet'</span></h4> |
| 3883 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a186">186</a>]</p> |
| 3884 | Constant for the name of the Web browser.<br /><br /> |
| 3885 | <br /> |
| 3886 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3887 | <a name="constBROWSER_TABLET_OS"></a> |
| 3888 | <p></p> |
| 3889 | <h4>BROWSER_TABLET_OS = <span class="value"> 'BlackBerry Tablet OS'</span></h4> |
| 3890 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a187">187</a>]</p> |
| 3891 | Constant for the name of the Web browser.<br /><br /> |
| 3892 | <br /> |
| 3893 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3894 | <a name="constBROWSER_UC"></a> |
| 3895 | <p></p> |
| 3896 | <h4>BROWSER_UC = <span class="value"> 'UC Browser'</span></h4> |
| 3897 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a188">188</a>]</p> |
| 3898 | Constant for the name of the Web browser.<br /><br /> |
| 3899 | <br /> |
| 3900 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3901 | <a name="constBROWSER_UNKNOWN"></a> |
| 3902 | <p></p> |
| 3903 | <h4>BROWSER_UNKNOWN = <span class="value"> 'unknown'</span></h4> |
| 3904 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a189">189</a>]</p> |
| 3905 | Constant for the name of the Web browser.<br /><br /> |
| 3906 | <br /> |
| 3907 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3908 | <a name="constPLATFORM_ANDROID"></a> |
| 3909 | <p></p> |
| 3910 | <h4>PLATFORM_ANDROID = <span class="value"> 'Android'</span></h4> |
| 3911 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a195">195</a>]</p> |
| 3912 | Constant for the name of the platform on which the Web browser runs.<br /><br /> |
| 3913 | <br /> |
| 3914 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3915 | <a name="constPLATFORM_BLACKBERRY"></a> |
| 3916 | <p></p> |
| 3917 | <h4>PLATFORM_BLACKBERRY = <span class="value"> 'BlackBerry'</span></h4> |
| 3918 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a196">196</a>]</p> |
| 3919 | Constant for the name of the platform on which the Web browser runs.<br /><br /> |
| 3920 | <br /> |
| 3921 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3922 | <a name="constPLATFORM_CHROME_OS"></a> |
| 3923 | <p></p> |
| 3924 | <h4>PLATFORM_CHROME_OS = <span class="value"> 'Chrome OS'</span></h4> |
| 3925 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a197">197</a>]</p> |
| 3926 | Constant for the name of the platform on which the Web browser runs.<br /><br /> |
| 3927 | <br /> |
| 3928 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3929 | <a name="constPLATFORM_FREEBSD"></a> |
| 3930 | <p></p> |
| 3931 | <h4>PLATFORM_FREEBSD = <span class="value"> 'FreeBSD'</span></h4> |
| 3932 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a198">198</a>]</p> |
| 3933 | Constant for the name of the platform on which the Web browser runs.<br /><br /> |
| 3934 | <br /> |
| 3935 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3936 | <a name="constPLATFORM_IOS"></a> |
| 3937 | <p></p> |
| 3938 | <h4>PLATFORM_IOS = <span class="value"> 'iOS'</span></h4> |
| 3939 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a199">199</a>]</p> |
| 3940 | Constant for the name of the platform on which the Web browser runs.<br /><br /> |
| 3941 | <br /> |
| 3942 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3943 | <a name="constPLATFORM_LINUX"></a> |
| 3944 | <p></p> |
| 3945 | <h4>PLATFORM_LINUX = <span class="value"> 'Linux'</span></h4> |
| 3946 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a200">200</a>]</p> |
| 3947 | Constant for the name of the platform on which the Web browser runs.<br /><br /> |
| 3948 | <br /> |
| 3949 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3950 | <a name="constPLATFORM_MACINTOSH"></a> |
| 3951 | <p></p> |
| 3952 | <h4>PLATFORM_MACINTOSH = <span class="value"> 'Macintosh'</span></h4> |
| 3953 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a201">201</a>]</p> |
| 3954 | Constant for the name of the platform on which the Web browser runs.<br /><br /> |
| 3955 | <br /> |
| 3956 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3957 | <a name="constPLATFORM_NETBSD"></a> |
| 3958 | <p></p> |
| 3959 | <h4>PLATFORM_NETBSD = <span class="value"> 'NetBSD'</span></h4> |
| 3960 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a202">202</a>]</p> |
| 3961 | Constant for the name of the platform on which the Web browser runs.<br /><br /> |
| 3962 | <br /> |
| 3963 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3964 | <a name="constPLATFORM_NOKIA"></a> |
| 3965 | <p></p> |
| 3966 | <h4>PLATFORM_NOKIA = <span class="value"> 'Nokia'</span></h4> |
| 3967 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a203">203</a>]</p> |
| 3968 | Constant for the name of the platform on which the Web browser runs.<br /><br /> |
| 3969 | <br /> |
| 3970 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3971 | <a name="constPLATFORM_OPENBSD"></a> |
| 3972 | <p></p> |
| 3973 | <h4>PLATFORM_OPENBSD = <span class="value"> 'OpenBSD'</span></h4> |
| 3974 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a204">204</a>]</p> |
| 3975 | Constant for the name of the platform on which the Web browser runs.<br /><br /> |
| 3976 | <br /> |
| 3977 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3978 | <a name="constPLATFORM_OPENSOLARIS"></a> |
| 3979 | <p></p> |
| 3980 | <h4>PLATFORM_OPENSOLARIS = <span class="value"> 'OpenSolaris'</span></h4> |
| 3981 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a205">205</a>]</p> |
| 3982 | Constant for the name of the platform on which the Web browser runs.<br /><br /> |
| 3983 | <br /> |
| 3984 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3985 | <a name="constPLATFORM_SYMBIAN"></a> |
| 3986 | <p></p> |
| 3987 | <h4>PLATFORM_SYMBIAN = <span class="value"> 'Symbian'</span></h4> |
| 3988 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a206">206</a>]</p> |
| 3989 | Constant for the name of the platform on which the Web browser runs.<br /><br /> |
| 3990 | <br /> |
| 3991 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3992 | <a name="constPLATFORM_UNKNOWN"></a> |
| 3993 | <p></p> |
| 3994 | <h4>PLATFORM_UNKNOWN = <span class="value"> 'unknown'</span></h4> |
| 3995 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a207">207</a>]</p> |
| 3996 | Constant for the name of the platform on which the Web browser runs.<br /><br /> |
| 3997 | <br /> |
| 3998 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 3999 | <a name="constPLATFORM_VERSION_UNKNOWN"></a> |
| 4000 | <p></p> |
| 4001 | <h4>PLATFORM_VERSION_UNKNOWN = <span class="value"> 'unknown'</span></h4> |
| 4002 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a208">208</a>]</p> |
| 4003 | Constant for the name of the platform on which the Web browser runs.<br /><br /> |
| 4004 | <br /> |
| 4005 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 4006 | <a name="constPLATFORM_WINDOWS"></a> |
| 4007 | <p></p> |
| 4008 | <h4>PLATFORM_WINDOWS = <span class="value"> 'Windows'</span></h4> |
| 4009 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a209">209</a>]</p> |
| 4010 | Constant for the name of the platform on which the Web browser runs.<br /><br /> |
| 4011 | <br /> |
| 4012 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 4013 | <a name="constPLATFORM_WINDOWS_CE"></a> |
| 4014 | <p></p> |
| 4015 | <h4>PLATFORM_WINDOWS_CE = <span class="value"> 'Windows CE'</span></h4> |
| 4016 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a210">210</a>]</p> |
| 4017 | Constant for the name of the platform on which the Web browser runs.<br /><br /> |
| 4018 | <br /> |
| 4019 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 4020 | <a name="constPLATFORM_WINDOWS_PHONE"></a> |
| 4021 | <p></p> |
| 4022 | <h4>PLATFORM_WINDOWS_PHONE = <span class="value"> 'Windows Phone'</span></h4> |
| 4023 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a211">211</a>]</p> |
| 4024 | Constant for the name of the platform on which the Web browser runs.<br /><br /> |
| 4025 | <br /> |
| 4026 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 4027 | <a name="constROBOT_BINGBOT"></a> |
| 4028 | <p></p> |
| 4029 | <h4>ROBOT_BINGBOT = <span class="value"> 'Bingbot'</span></h4> |
| 4030 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a217">217</a>]</p> |
| 4031 | Constant for the name of the robot.<br /><br /> |
| 4032 | <br /> |
| 4033 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 4034 | <a name="constROBOT_GOOGLEBOT"></a> |
| 4035 | <p></p> |
| 4036 | <h4>ROBOT_GOOGLEBOT = <span class="value"> 'Googlebot'</span></h4> |
| 4037 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a218">218</a>]</p> |
| 4038 | Constant for the name of the robot.<br /><br /> |
| 4039 | <br /> |
| 4040 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 4041 | <a name="constROBOT_MSNBOT"></a> |
| 4042 | <p></p> |
| 4043 | <h4>ROBOT_MSNBOT = <span class="value"> 'MSNBot'</span></h4> |
| 4044 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a219">219</a>]</p> |
| 4045 | Constant for the name of the robot.<br /><br /> |
| 4046 | <br /> |
| 4047 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 4048 | <a name="constROBOT_SLURP"></a> |
| 4049 | <p></p> |
| 4050 | <h4>ROBOT_SLURP = <span class="value"> 'Yahoo! Slurp'</span></h4> |
| 4051 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a220">220</a>]</p> |
| 4052 | Constant for the name of the robot.<br /><br /> |
| 4053 | <br /> |
| 4054 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 4055 | <a name="constROBOT_UNKNOWN"></a> |
| 4056 | <p></p> |
| 4057 | <h4>ROBOT_UNKNOWN = <span class="value"> ''</span></h4> |
| 4058 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a221">221</a>]</p> |
| 4059 | Constant for the name of the robot.<br /><br /> |
| 4060 | <br /> |
| 4061 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 4062 | <a name="constROBOT_VERSION_UNKNOWN"></a> |
| 4063 | <p></p> |
| 4064 | <h4>ROBOT_VERSION_UNKNOWN = <span class="value"> ''</span></h4> |
| 4065 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a222">222</a>]</p> |
| 4066 | Constant for the name of the robot.<br /><br /> |
| 4067 | <br /> |
| 4068 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 4069 | <a name="constROBOT_W3CVALIDATOR"></a> |
| 4070 | <p></p> |
| 4071 | <h4>ROBOT_W3CVALIDATOR = <span class="value"> 'W3C Validator'</span></h4> |
| 4072 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a223">223</a>]</p> |
| 4073 | Constant for the name of the robot.<br /><br /> |
| 4074 | <br /> |
| 4075 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 4076 | <a name="constROBOT_YAHOO_MM"></a> |
| 4077 | <p></p> |
| 4078 | <h4>ROBOT_YAHOO_MM = <span class="value"> 'Yahoo! Multimedia'</span></h4> |
| 4079 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a224">224</a>]</p> |
| 4080 | Constant for the name of the robot.<br /><br /> |
| 4081 | <br /> |
| 4082 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 4083 | <a name="constVERSION_UNKNOWN"></a> |
| 4084 | <p></p> |
| 4085 | <h4>VERSION_UNKNOWN = <span class="value"> 'unknown'</span></h4> |
| 4086 | <p>[line <a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html#a230">230</a>]</p> |
| 4087 | Version unknown constant.<br /><br /> |
| 4088 | <br /> |
| 4089 | <div class="top">[ <a href="#top">Top</a> ]</div><br /> |
| 4090 | </div><br /> |
| 4091 | |
| 4092 | <div class="credit"> |
| 4093 | <hr /> |
| 4094 | Documentation generated on Tue, 20 Sep 2022 23:35:16 -0400 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
| 4095 | </div> |
| 4096 | </td></tr></table> |
| 4097 | </td> |
| 4098 | </tr> |
| 4099 | </table> |
| 4100 | |
| 4101 | </body> |
| 4102 | </html> |