@@ 1107-1116 (lines=10) @@ | ||
1104 | * Detect Version for the Safari browser on iOS devices |
|
1105 | * @return boolean True if it detects the version correctly otherwise false |
|
1106 | */ |
|
1107 | protected function getSafariVersionOnIos() |
|
1108 | { |
|
1109 | $aresult = explode('/', stristr($this->_agent, 'Version')); |
|
1110 | if (isset($aresult[1])) { |
|
1111 | $aversion = explode(' ', $aresult[1]); |
|
1112 | $this->setVersion($aversion[0]); |
|
1113 | return true; |
|
1114 | } |
|
1115 | return false; |
|
1116 | } |
|
1117 | ||
1118 | /** |
|
1119 | * Detect Version for the Chrome browser on iOS devices |
|
@@ 1122-1132 (lines=11) @@ | ||
1119 | * Detect Version for the Chrome browser on iOS devices |
|
1120 | * @return boolean True if it detects the version correctly otherwise false |
|
1121 | */ |
|
1122 | protected function getChromeVersionOnIos() |
|
1123 | { |
|
1124 | $aresult = explode('/', stristr($this->_agent, 'CriOS')); |
|
1125 | if (isset($aresult[1])) { |
|
1126 | $aversion = explode(' ', $aresult[1]); |
|
1127 | $this->setVersion($aversion[0]); |
|
1128 | $this->setBrowser(self::BROWSER_CHROME); |
|
1129 | return true; |
|
1130 | } |
|
1131 | return false; |
|
1132 | } |
|
1133 | ||
1134 | /** |
|
1135 | * Determine if the browser is iPhone or not (last updated 1.7) |