|
@@ 1075-1086 (lines=12) @@
|
| 1072 |
|
* Determine if the browser is iPhone or not (last updated 1.7) |
| 1073 |
|
* @return boolean True if the browser is iPhone otherwise false |
| 1074 |
|
*/ |
| 1075 |
|
protected function checkBrowseriPhone() { |
| 1076 |
|
if( stripos($this->_agent,'iPhone') !== false ) { |
| 1077 |
|
$this->setVersion(self::VERSION_UNKNOWN); |
| 1078 |
|
$this->setBrowser(self::BROWSER_IPHONE); |
| 1079 |
|
$this->getSafariVersionOnIos(); |
| 1080 |
|
$this->getChromeVersionOnIos(); |
| 1081 |
|
$this->checkForFacebookIos(); |
| 1082 |
|
$this->setMobile(true); |
| 1083 |
|
return true; |
| 1084 |
|
} |
| 1085 |
|
return false; |
| 1086 |
|
} |
| 1087 |
|
|
| 1088 |
|
/** |
| 1089 |
|
* Determine if the browser is iPad or not (last updated 1.7) |
|
@@ 1092-1103 (lines=12) @@
|
| 1089 |
|
* Determine if the browser is iPad or not (last updated 1.7) |
| 1090 |
|
* @return boolean True if the browser is iPad otherwise false |
| 1091 |
|
*/ |
| 1092 |
|
protected function checkBrowseriPad() { |
| 1093 |
|
if( stripos($this->_agent,'iPad') !== false ) { |
| 1094 |
|
$this->setVersion(self::VERSION_UNKNOWN); |
| 1095 |
|
$this->setBrowser(self::BROWSER_IPAD); |
| 1096 |
|
$this->getSafariVersionOnIos(); |
| 1097 |
|
$this->getChromeVersionOnIos(); |
| 1098 |
|
$this->checkForFacebookIos(); |
| 1099 |
|
$this->setTablet(true); |
| 1100 |
|
return true; |
| 1101 |
|
} |
| 1102 |
|
return false; |
| 1103 |
|
} |
| 1104 |
|
|
| 1105 |
|
/** |
| 1106 |
|
* Determine if the browser is iPod or not (last updated 1.7) |
|
@@ 1109-1120 (lines=12) @@
|
| 1106 |
|
* Determine if the browser is iPod or not (last updated 1.7) |
| 1107 |
|
* @return boolean True if the browser is iPod otherwise false |
| 1108 |
|
*/ |
| 1109 |
|
protected function checkBrowseriPod() { |
| 1110 |
|
if( stripos($this->_agent,'iPod') !== false ) { |
| 1111 |
|
$this->setVersion(self::VERSION_UNKNOWN); |
| 1112 |
|
$this->setBrowser(self::BROWSER_IPOD); |
| 1113 |
|
$this->getSafariVersionOnIos(); |
| 1114 |
|
$this->getChromeVersionOnIos(); |
| 1115 |
|
$this->checkForFacebookIos(); |
| 1116 |
|
$this->setMobile(true); |
| 1117 |
|
return true; |
| 1118 |
|
} |
| 1119 |
|
return false; |
| 1120 |
|
} |
| 1121 |
|
|
| 1122 |
|
/** |
| 1123 |
|
* Determine if the browser is Android or not (last updated 1.7) |