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