當前位置: 首頁>>代碼示例>>PHP>>正文


PHP DeviceModels::identifyAndroid方法代碼示例

本文整理匯總了PHP中DeviceModels::identifyAndroid方法的典型用法代碼示例。如果您正苦於以下問題:PHP DeviceModels::identifyAndroid方法的具體用法?PHP DeviceModels::identifyAndroid怎麽用?PHP DeviceModels::identifyAndroid使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在DeviceModels的用法示例。


在下文中一共展示了DeviceModels::identifyAndroid方法的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::identifyAndroid方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。