protected function checkPlatform()
{
if (stripos($this->_agent, 'windows') !== false) {
$this->_platform = self::PLATFORM_WINDOWS;
} else {
if (stripos($this->_agent, 'iPad') !== false) {
$this->_platform = self::PLATFORM_IPAD;
} else {
if (stripos($this->_agent, 'iPod') !== false) {
$this->_platform = self::PLATFORM_IPOD;
} else {
if (stripos($this->_agent, 'iPhone') !== false) {
$this->_platform = self::PLATFORM_IPHONE;
} elseif (stripos($this->_agent, 'mac') !== false) {
$this->_platform = self::PLATFORM_APPLE;
} elseif (stripos($this->_agent, 'android') !== false) {
$this->_platform = self::PLATFORM_ANDROID;
} elseif (stripos($this->_agent, 'linux') !== false) {
$this->_platform = self::PLATFORM_LINUX;
} else {
if (stripos($this->_agent, 'Nokia') !== false) {
$this->_platform = self::PLATFORM_NOKIA;
} else {
if (stripos($this->_agent, 'BlackBerry') !== false) {
$this->_platform = self::PLATFORM_BLACKBERRY;
} elseif (stripos($this->_agent, 'FreeBSD') !== false) {
$this->_platform = self::PLATFORM_FREEBSD;
} elseif (stripos($this->_agent, 'OpenBSD') !== false) {
$this->_platform = self::PLATFORM_OPENBSD;
} elseif (stripos($this->_agent, 'NetBSD') !== false) {
$this->_platform = self::PLATFORM_NETBSD;
} elseif (stripos($this->_agent, 'OpenSolaris') !== false) {
$this->_platform = self::PLATFORM_OPENSOLARIS;
} elseif (stripos($this->_agent, 'SunOS') !== false) {
$this->_platform = self::PLATFORM_SUNOS;
} elseif (stripos($this->_agent, 'OS\\/2') !== false) {
$this->_platform = self::PLATFORM_OS2;
} elseif (stripos($this->_agent, 'BeOS') !== false) {
$this->_platform = self::PLATFORM_BEOS;
} elseif (stripos($this->_agent, 'win') !== false) {
$this->_platform = self::PLATFORM_WINDOWS;
} elseif (stripos($this->_agent, 'Playstation') !== false) {
$this->_platform = self::PLATFORM_PLAYSTATION;
}
}
}
}
}
}
}