| @@ 1042-1052 (lines=11) @@ | ||
| 1039 | * Detect Version for the Safari browser on iOS devices |
|
| 1040 | * @return boolean True if it detects the version correctly otherwise false |
|
| 1041 | */ |
|
| 1042 | protected function getSafariVersionOnIos() |
|
| 1043 | { |
|
| 1044 | $aresult = explode('/',stristr($this->_agent,'Version')); |
|
| 1045 | if( isset($aresult[1]) ) |
|
| 1046 | { |
|
| 1047 | $aversion = explode(' ',$aresult[1]); |
|
| 1048 | $this->setVersion($aversion[0]); |
|
| 1049 | return true; |
|
| 1050 | } |
|
| 1051 | return false; |
|
| 1052 | } |
|
| 1053 | ||
| 1054 | /** |
|
| 1055 | * Detect Version for the Chrome browser on iOS devices |
|
| @@ 1058-1069 (lines=12) @@ | ||
| 1055 | * Detect Version for the Chrome browser on iOS devices |
|
| 1056 | * @return boolean True if it detects the version correctly otherwise false |
|
| 1057 | */ |
|
| 1058 | protected function getChromeVersionOnIos() |
|
| 1059 | { |
|
| 1060 | $aresult = explode('/',stristr($this->_agent,'CriOS')); |
|
| 1061 | if( isset($aresult[1]) ) |
|
| 1062 | { |
|
| 1063 | $aversion = explode(' ',$aresult[1]); |
|
| 1064 | $this->setVersion($aversion[0]); |
|
| 1065 | $this->setBrowser(self::BROWSER_CHROME); |
|
| 1066 | return true; |
|
| 1067 | } |
|
| 1068 | return false; |
|
| 1069 | } |
|
| 1070 | ||
| 1071 | /** |
|
| 1072 | * Determine if the browser is iPhone or not (last updated 1.7) |
|