Changeset 21963
- Timestamp:
- 2012/07/09 10:57:24 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_Display.php
r21962 r21963 32 32 var $response; 33 33 34 var $device; 34 /** 端末種別を保持する */ 35 // XXX プロパティとして保持する必要があるのか疑問。 36 static $device; 35 37 36 38 /** SC_View インスタンス */ … … 130 132 131 133 /** 132 * Detect the viewing device.134 * 端末種別を判別する。 133 135 * 134 * SC_Display::MOBILE = k-tai= 1135 * SC_Display::SMARTPHONE = smart phone= 2136 * SC_Display::MOBILE = ガラケー = 1 137 * SC_Display::SMARTPHONE = スマホ = 2 136 138 * SC_Display::PC = PC = 10 137 139 * 138 140 * @static 139 141 * @param $reset boolean 140 * @return integer Device TypeID142 * @return integer 端末種別ID 141 143 */ 142 144 public static function detectDevice($reset = FALSE) { 143 if ( empty(SC_Display_Ex::$device) || $reset) {145 if (is_null(SC_Display_Ex::$device) || $reset) { 144 146 $nu = new Net_UserAgent_Mobile(); 145 147 $su = new SC_SmartphoneUserAgent_Ex();
Note: See TracChangeset
for help on using the changeset viewer.