本文整理匯總了PHP中Utils::isDesktopBrowser方法的典型用法代碼示例。如果您正苦於以下問題:PHP Utils::isDesktopBrowser方法的具體用法?PHP Utils::isDesktopBrowser怎麽用?PHP Utils::isDesktopBrowser使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Utils
的用法示例。
在下文中一共展示了Utils::isDesktopBrowser方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: canHandle
public function canHandle($userAgent)
{
if (Utils::isDesktopBrowser($userAgent)) {
return false;
}
return Utils::checkIfStartsWithAnyOf($userAgent, array('Grundig', 'GRUNDIG'));
}
示例2: canHandle
/**
* @param string $userAgent
*
* @return bool
*/
public function canHandle($userAgent)
{
if (Utils::isDesktopBrowser($userAgent)) {
return false;
}
return Utils::checkIfStartsWithAnyOf($userAgent, array('kyocera', 'QC-', 'KWC-'));
}
示例3: canHandle
/**
* @param string $userAgent
*
* @return bool
*/
public function canHandle($userAgent)
{
if (Utils::isDesktopBrowser($userAgent)) {
return false;
}
return Utils::checkIfStartsWith($userAgent, 'Vodafone');
}
示例4: canHandle
/**
* @param string $userAgent
*
* @return bool
*/
public function canHandle($userAgent)
{
if (Utils::isDesktopBrowser($userAgent)) {
return false;
}
return Utils::checkIfStartsWithCaseInsensitive($userAgent, 'philips');
}
示例5: canHandle
/**
* @param string $userAgent
*
* @return bool
*/
public function canHandle($userAgent)
{
if (Utils::isDesktopBrowser($userAgent)) {
return false;
}
return Utils::checkIfStartsWithAnyOf($userAgent, array('Sharp', 'SHARP'));
}
示例6: canHandle
/**
* @param string $userAgent
*
* @return bool
*/
public function canHandle($userAgent)
{
if (Utils::isDesktopBrowser($userAgent)) {
return false;
}
return Utils::checkIfContainsAnyOf($userAgent, array('Opera Mini', 'OperaMini', 'Opera Mobi', 'OperaMobi'));
}
示例7: canHandle
/**
* @param string $userAgent
*
* @return bool
*/
public function canHandle($userAgent)
{
if (Utils::isDesktopBrowser($userAgent)) {
return false;
}
return Utils::checkIfContainsAll($userAgent, array('Android', 'NetFrontLifeBrowser/2.2'));
}
示例8: canHandle
/**
* @param string $userAgent
*
* @return bool
*/
public function canHandle($userAgent)
{
if (Utils::isDesktopBrowser($userAgent)) {
return false;
}
return Utils::checkIfContainsCaseInsensitive($userAgent, 'samsung') || Utils::checkIfStartsWithAnyOf($userAgent, array('SEC-', 'SPH', 'SGH', 'SCH'));
}
示例9: canHandle
/**
* @param string $userAgent
*
* @return bool
*/
public function canHandle($userAgent)
{
if (Utils::isDesktopBrowser($userAgent)) {
return false;
}
return Utils::checkIfStartsWithAnyOf($userAgent, array('Pantech', 'PT-', 'PANTECH', 'PG-'));
}
示例10: canHandle
/**
* @param string $userAgent
*
* @return bool
*/
public function canHandle($userAgent)
{
if (Utils::isDesktopBrowser($userAgent)) {
return false;
}
return Utils::checkIfStartsWithAnyOf($userAgent, array('Sanyo', 'SANYO')) || Utils::checkIfContains($userAgent, 'MobilePhone');
}
示例11: canHandle
/**
* @param string $userAgent
*
* @return bool
*/
public function canHandle($userAgent)
{
if (Utils::isDesktopBrowser($userAgent)) {
return false;
}
return Utils::checkIfContains($userAgent, 'KDDI-');
}
示例12: canHandle
/**
* @param string $userAgent
*
* @return bool
*/
public function canHandle($userAgent)
{
if (Utils::isDesktopBrowser($userAgent)) {
return false;
}
if (Utils::checkIfContains($userAgent, 'Nintendo')) {
return true;
}
return Utils::checkIfStartsWith($userAgent, 'Mozilla/') && Utils::checkIfContainsAll($userAgent, array('Nitro', 'Opera'));
}