本文整理汇总了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'));
}