当前位置: 首页>>代码示例>>PHP>>正文


PHP DeviceModels::identifyIOS方法代码示例

本文整理汇总了PHP中DeviceModels::identifyIOS方法的典型用法代码示例。如果您正苦于以下问题:PHP DeviceModels::identifyIOS方法的具体用法?PHP DeviceModels::identifyIOS怎么用?PHP DeviceModels::identifyIOS使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DeviceModels的用法示例。


在下文中一共展示了DeviceModels::identifyIOS方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: identify

 static function identify($type, $model)
 {
     require_once _BASEPATH_ . '../data/models-' . $type . '.php';
     switch ($type) {
         case 'android':
             return DeviceModels::identifyAndroid($model);
         case 'asha':
             return DeviceModels::identifyList(DeviceModels::$ASHA_MODELS, $model);
         case 'bada':
             return DeviceModels::identifyList(DeviceModels::$BADA_MODELS, $model);
         case 'blackberry':
             return DeviceModels::identifyBlackBerry($model);
         case 'brew':
             return DeviceModels::identifyList(DeviceModels::$BREW_MODELS, $model);
         case 'firefoxos':
             return DeviceModels::identifyList(DeviceModels::$FIREFOXOS_MODELS, $model, false);
         case 'ios':
             return DeviceModels::identifyIOS($model);
         case 'tizen':
             return DeviceModels::identifyList(DeviceModels::$TIZEN_MODELS, $model);
         case 'touchwiz':
             return DeviceModels::identifyList(DeviceModels::$TOUCHWIZ_MODELS, $model);
         case 'wm':
             return DeviceModels::identifyList(DeviceModels::$WINDOWS_MOBILE_MODELS, $model);
         case 'wp':
             return DeviceModels::identifyList(DeviceModels::$WINDOWS_PHONE_MODELS, $model);
         case 's30':
             return DeviceModels::identifyList(DeviceModels::$S30_MODELS, $model);
         case 's40':
             return DeviceModels::identifyList(DeviceModels::$S40_MODELS, $model);
         case 's60':
             return DeviceModels::identifyList(DeviceModels::$S60_MODELS, $model);
         case 'palmos':
             return DeviceModels::identifyList(DeviceModels::$PALMOS_MODELS, $model);
         case 'feature':
             return DeviceModels::identifyList(DeviceModels::$FEATURE_MODELS, $model);
     }
     return (object) array('type' => '', 'model' => $model, 'identified' => ID_NONE);
 }
开发者ID:nimble,项目名称:WhichBrowser,代码行数:39,代码来源:whichbrowser.php


注:本文中的DeviceModels::identifyIOS方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。