Lines Matching refs:is

6  * Mobile_Detect is a lightweight PHP class for detecting mobile devices (including tablets).
83 * The User-Agent HTTP header is stored in here.
102 * This is good for debug.
109 * This is good for debug.
195 // Wolfgang - a brand that is sold by Aldi supermarkets.
204 // @Tapatalk is a mobile app; http://support.tapatalk.com/threads/smf-2-0-2-os-and-browser-detection-plugin-and-tapatalk.15565/#post-79039
228 // http://shopping1.hp.com/is-bin/INTERSHOP.enfinity/WFS/WW-USSMBPublicStore-Site/en_US/-/USD/ViewStandardCatalog-Browse?CatalogCategoryID=JfIQ7EN5lqMAAAEyDcJUDwMT
238 // http://www.packardbell.co.uk/pb/en/GB/content/download (Packard Bell is part of Acer)
510 * IMPORTANT: This is a list of only mobile browsers.
641 // @note: Safari 7534.48.3 is actually Version 5.1.
642 // @note: On BlackBerry the Version is overwriten by the OS.
690 * This is useful for the demo.php file,
705 * the headers. The default null is left for backwards compatibility.
740 * Retrieves a particular header. If it doesn't exist, no exception/error is caused.
741 * Simply null is returned.
882 * self::DETECTION_TYPE_EXTENDED. Otherwise, nothing is set.
887 * parameter is null which will default to self::DETECTION_TYPE_MOBILE.
963 * Method gets the mobile detection rules. This method is used for the magic methods $detect->is*().
988 * The reason this is separate is because utilities rules
989 * don't necessary imply mobile. This method is used inside
990 * the new $detect->is('stuff') method.
1042 * This is the fastest mobile check possible; it's used
1073 * @method boolean is[...]()
1077 * @throws BadMethodCallException when the method doesn't exist and doesn't start with 'is'
1081 // make sure the name starts with 'is', otherwise
1082 if (substr($name, 0, 2) !== 'is') {
1117 * If the key is found then try to match the corresponding
1146 * Check if the device is mobile.
1182 * Check if the device is a tablet.
1183 * Return true if any type of tablet device is detected.
1213 * @todo: The httpHeaders part is not yet used.
1220 public function is($key, $userAgent = null, $httpHeaders = null)
1253 $match = (bool) preg_match(sprintf('#%s#is', $regex), (false === empty($userAgent) ? $userAgent : $this->userAgent), $matches);
1254 // If positive match is found, store the results for debug.
1302 * is optional and defaults to self::VERSION_TYPE_STRING. Passing an
1324 // Make sure we always deal with an array (string is converted).
1332 preg_match(sprintf('#%s#is', $propertyPattern), $this->userAgent, $match);
1358 $this->is('iOS') && $this->version('iPad', self::VERSION_TYPE_FLOAT) >= 4.3 ||
1359 $this->is('iOS') && $this->version('iPhone', self::VERSION_TYPE_FLOAT) >= 4.3 ||
1360 $this->is('iOS') && $this->version('iPod', self::VERSION_TYPE_FLOAT) >= 4.3 ||
1366 ( $this->version('Android', self::VERSION_TYPE_FLOAT)>2.1 && $this->is('Webkit') ) ||
1372 $this->is('BlackBerry') && $this->version('BlackBerry', self::VERSION_TYPE_FLOAT) >= 6.0 ||
1382 ( $this->is('Firefox') && $this->version('Firefox', self::VERSION_TYPE_FLOAT) >= 18 ) ||
1385 ( $this->is('Chrome') && $this->is('AndroidOS') && $this->version('Android', self::VERSION_TYPE_FLOAT) >= 4.0 ) ||
1388 ( $this->is('Skyfire') && $this->version('Skyfire', self::VERSION_TYPE_FLOAT) >= 4.1 && $this->is('AndroidOS') && $this->version('Android', self::VERSION_TYPE_FLOAT) >= 2.3 ) ||
1391 ( $this->is('Opera') && $this->version('Opera Mobi', self::VERSION_TYPE_FLOAT) >= 11.5 && $this->is('AndroidOS') ) ||
1394 $this->is('MeeGoOS') ||
1397 $this->is('Tizen') ||
1401 $this->is('Dolfin') && $this->version('Bada', self::VERSION_TYPE_FLOAT) >= 2.0 ||
1404 ( ($this->is('UC Browser') || $this->is('Dolfin')) && $this->version('Android', self::VERSION_TYPE_FLOAT) >= 2.3 ) ||
1408 $this->is('Kindle') && $this->version('Kindle', self::VERSION_TYPE_FLOAT) >= 3.0 ) ||
1411 $this->is('AndroidOS') && $this->is('NookTablet') ||
1432 $this->is('iOS') && $this->version('iPad', self::VERSION_TYPE_FLOAT)<4.3 ||
1433 $this->is('iOS') && $this->version('iPhone', self::VERSION_TYPE_FLOAT)<4.3 ||
1434 $this->is('iOS') && $this->version('iPod', self::VERSION_TYPE_FLOAT)<4.3 ||
1437 $this->is('Blackberry') && $this->version('BlackBerry', self::VERSION_TYPE_FLOAT) >= 5 && $this->version('BlackBerry', self::VERSION_TYPE_FLOAT)<6 ||
1441 ($this->version('Android', self::VERSION_TYPE_FLOAT) >= 2.3 || $this->is('iOS')) ) ||
1447 $this->version('Opera Mobi', self::VERSION_TYPE_FLOAT) >= 11 && $this->is('SymbianOS')
1459 $this->is('iOS') && $this->version('iPad', self::VERSION_TYPE_FLOAT) <= 3.2 ||
1460 $this->is('iOS') && $this->version('iPhone', self::VERSION_TYPE_FLOAT) <= 3.2 ||
1461 $this->is('iOS') && $this->version('iPod', self::VERSION_TYPE_FLOAT) <= 3.2 ||