本文整理匯總了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);
}