|
@@ 1138-1150 (lines=13) @@
|
| 1135 |
|
* Determine if the browser is iPhone or not (last updated 1.7) |
| 1136 |
|
* @return boolean True if the browser is iPhone otherwise false |
| 1137 |
|
*/ |
| 1138 |
|
protected function checkBrowseriPhone() |
| 1139 |
|
{ |
| 1140 |
|
if (stripos($this->_agent, 'iPhone') !== false) { |
| 1141 |
|
$this->setVersion(self::VERSION_UNKNOWN); |
| 1142 |
|
$this->setBrowser(self::BROWSER_IPHONE); |
| 1143 |
|
$this->getSafariVersionOnIos(); |
| 1144 |
|
$this->getChromeVersionOnIos(); |
| 1145 |
|
$this->checkForFacebookIos(); |
| 1146 |
|
$this->setMobile(true); |
| 1147 |
|
return true; |
| 1148 |
|
} |
| 1149 |
|
return false; |
| 1150 |
|
} |
| 1151 |
|
|
| 1152 |
|
/** |
| 1153 |
|
* Determine if the browser is iPad or not (last updated 1.7) |
|
@@ 1156-1168 (lines=13) @@
|
| 1153 |
|
* Determine if the browser is iPad or not (last updated 1.7) |
| 1154 |
|
* @return boolean True if the browser is iPad otherwise false |
| 1155 |
|
*/ |
| 1156 |
|
protected function checkBrowseriPad() |
| 1157 |
|
{ |
| 1158 |
|
if (stripos($this->_agent, 'iPad') !== false) { |
| 1159 |
|
$this->setVersion(self::VERSION_UNKNOWN); |
| 1160 |
|
$this->setBrowser(self::BROWSER_IPAD); |
| 1161 |
|
$this->getSafariVersionOnIos(); |
| 1162 |
|
$this->getChromeVersionOnIos(); |
| 1163 |
|
$this->checkForFacebookIos(); |
| 1164 |
|
$this->setTablet(true); |
| 1165 |
|
return true; |
| 1166 |
|
} |
| 1167 |
|
return false; |
| 1168 |
|
} |
| 1169 |
|
|
| 1170 |
|
/** |
| 1171 |
|
* Determine if the browser is iPod or not (last updated 1.7) |
|
@@ 1174-1186 (lines=13) @@
|
| 1171 |
|
* Determine if the browser is iPod or not (last updated 1.7) |
| 1172 |
|
* @return boolean True if the browser is iPod otherwise false |
| 1173 |
|
*/ |
| 1174 |
|
protected function checkBrowseriPod() |
| 1175 |
|
{ |
| 1176 |
|
if (stripos($this->_agent, 'iPod') !== false) { |
| 1177 |
|
$this->setVersion(self::VERSION_UNKNOWN); |
| 1178 |
|
$this->setBrowser(self::BROWSER_IPOD); |
| 1179 |
|
$this->getSafariVersionOnIos(); |
| 1180 |
|
$this->getChromeVersionOnIos(); |
| 1181 |
|
$this->checkForFacebookIos(); |
| 1182 |
|
$this->setMobile(true); |
| 1183 |
|
return true; |
| 1184 |
|
} |
| 1185 |
|
return false; |
| 1186 |
|
} |
| 1187 |
|
|
| 1188 |
|
/** |
| 1189 |
|
* Determine if the browser is Android or not (last updated 1.7) |